. #31791

issue BartzZin openend this issue on February 3, 2025
  1. BartzZin commented at 8:03 pm on February 3, 2025: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    static void RescanWallet(CWallet& wallet, const WalletRescanReserver& reserver, int64_t time_begin = TIMESTAMP_MIN, bool update = true) { int64_t scanned_time = wallet.RescanFromTime(time_begin, reserver, update); if (wallet.IsAbortingRescan()) { throw JSONRPCError(RPC_MISC_ERROR, “Rescan aborted by user.”); } else if (scanned_time > time_begin) { throw JSONRPCError(RPC_WALLET_ERROR, “Rescan was unable to fully rescan the blockchain. Some transactions may be missing.”); } }

    Expected behaviour

    static void RescanWallet(CWallet& wallet, const WalletRescanReserver& reserver, int64_t time_begin = TIMESTAMP_MIN, bool update = true) { if (!reserver.isReserved()) { throw JSONRPCError(RPC_WALLET_ERROR, “Rescan reservation failed. Wallet is currently rescanning or reservation was not acquired.”); } int64_t scanned_time = wallet.RescanFromTime(time_begin, reserver, update); if (wallet.IsAbortingRescan()) { throw JSONRPCError(RPC_MISC_ERROR, “Rescan aborted by user.”); } else if (scanned_time > time_begin) { throw JSONRPCError(RPC_WALLET_ERROR, “Rescan was unable to fully rescan the blockchain. Some transactions may be missing.”); } }

    Steps to reproduce

    None

    Relevant log output

    None

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    Current

    Operating system and version

    Ubuntu 22.04

    Machine specifications

    none

  2. pinheadmz commented at 8:51 pm on February 3, 2025: member
    @BartzZin Can you please rewrite the “current behavior” and “expected behavior” fields in your issue in English so we can understand what you are experiencing? Otherwise this issue may be closed as off-topic.
  3. maflcko commented at 7:39 am on February 4, 2025: member
    ai slop
  4. maflcko closed this on Feb 4, 2025

  5. bitcoin locked this on Feb 4, 2025
  6. fanquake renamed this:
    Bug Report RescanWallet backup.cpp
    .
    on Feb 5, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-02-07 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me