upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/fuzz_net_message.cpp
diff options
context:
space:
mode:
authorBitflash <btf01@proton.me>2026-08-01 14:48:27 -0300
committerGitHub <noreply@github.com>2026-08-01 14:48:27 -0300
commitb65c19e559e2fec511f40a4d5481bcf6a35c311c (patch)
treee54c0c58d44c46befae58924b1df913816b569e9 /src/fuzz_net_message.cpp
parentae81fa37123730982c4e054d7433c9d0c944a373 (diff)
wallet: walk the chain for coins a key owns but the wallet never saw (#88)
A transaction only entered the wallet when its block arrived over the network, so a key added afterwards was invisible: coins on the chain, private key in wallet.dat, balance zero. /importwallet has always ended that way -- it writes the keys and the money never shows up, which looks exactly like a failed import. ScanForWalletTransactions walks the main chain and hands every transaction that IsMine() to AddToWalletIfMine, the same two primitives the live path uses. Wired into /importwallet, and offered as /rescan. It is also the half that any recovery-phrase feature has to stand on: deriving keys from twelve words is easy, and without this a restore restores nothing.
Diffstat (limited to 'src/fuzz_net_message.cpp')
0 files changed, 0 insertions, 0 deletions