upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/rpc.cpp
diff options
context:
space:
mode:
authormtg0001 <106211915+mtg0001@users.noreply.github.com>2026-08-01 21:43:45 -0300
committerGitHub <noreply@github.com>2026-08-01 21:43:45 -0300
commit5a5478669c487963e99491112abc065c59973966 (patch)
treee2e73a4e2283c5dae4fa342ec98cdf8d719017ca /src/rpc.cpp
parentfc071066c9de259795a210e449b364ac126416ad (diff)
Keep new phrase addresses recoverable (#102)
-newphrase installed a seed but left the wallet's visible address as the pre-seed random key and the old random pool intact, so the next address handed out -- a mining payout included -- could be one the twelve words cannot reproduce, while the window said a recovery phrase existed. Installing a phrase now clears the stale pool records (private keys stay in wallet.dat), reserves a derived default receiving key, tolerates already-stored derived keys so repeated installs do not stall the pool, and -restorephrase reports what it recovered rather than the wallet's total transaction count. Self-test covers installing a phrase over a pre-existing random pool.
Diffstat (limited to 'src/rpc.cpp')
0 files changed, 0 insertions, 0 deletions