upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-14 09:08:29 -0300
committerNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-14 09:08:29 -0300
commit95bd9cbcb1d17f4bc6223e6bfe3a92bfb8c3067d (patch)
tree1ca90f11685b47aaa6a36e3677d0a3dfed072136 /src/db.h
parentcf597ca37aec53b0dd7016399fee73e1959dc604 (diff)
wallet: add read-only record scan boundary
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/db.h b/src/db.h
index 4fb5cfd..2816957 100644
--- a/src/db.h
+++ b/src/db.h
@@ -524,6 +524,17 @@ public:
524 bool LoadWallet(vector<unsigned char>& vchDefaultKeyRet); 524 bool LoadWallet(vector<unsigned char>& vchDefaultKeyRet);
525}; 525};
526 526
527class CWalletRecordVisitor
528{
529public:
530 virtual ~CWalletRecordVisitor() { }
531 virtual bool VisitWalletRecord(const CDataStream& ssKey,
532 const CDataStream& ssValue,
533 string& strErrorRet) = 0;
534};
535
536bool ScanWalletRecords(CWalletRecordVisitor& visitor, string& strErrorRet);
537
527bool LoadWallet(); 538bool LoadWallet();
528 539
529// Writes a wallet.dat that opens on its own, anywhere -- see the definition in 540// Writes a wallet.dat that opens on its own, anywhere -- see the definition in