diff options
| author | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-14 09:08:29 -0300 |
|---|---|---|
| committer | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-14 09:08:29 -0300 |
| commit | 95bd9cbcb1d17f4bc6223e6bfe3a92bfb8c3067d (patch) | |
| tree | 1ca90f11685b47aaa6a36e3677d0a3dfed072136 /src/db.h | |
| parent | cf597ca37aec53b0dd7016399fee73e1959dc604 (diff) | |
wallet: add read-only record scan boundary
Diffstat (limited to 'src/db.h')
| -rw-r--r-- | src/db.h | 11 |
1 files changed, 11 insertions, 0 deletions
| @@ -524,6 +524,17 @@ public: | |||
| 524 | bool LoadWallet(vector<unsigned char>& vchDefaultKeyRet); | 524 | bool LoadWallet(vector<unsigned char>& vchDefaultKeyRet); |
| 525 | }; | 525 | }; |
| 526 | 526 | ||
| 527 | class CWalletRecordVisitor | ||
| 528 | { | ||
| 529 | public: | ||
| 530 | virtual ~CWalletRecordVisitor() { } | ||
| 531 | virtual bool VisitWalletRecord(const CDataStream& ssKey, | ||
| 532 | const CDataStream& ssValue, | ||
| 533 | string& strErrorRet) = 0; | ||
| 534 | }; | ||
| 535 | |||
| 536 | bool ScanWalletRecords(CWalletRecordVisitor& visitor, string& strErrorRet); | ||
| 537 | |||
| 527 | bool LoadWallet(); | 538 | bool 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 |