Implement LegacyScriptPubKeyMan::DeleteRecords

This commit is contained in:
Andrew Chow
2022-08-25 14:35:28 -04:00
parent 35f428fae6
commit 22401f17e0
4 changed files with 55 additions and 0 deletions

View File

@@ -517,6 +517,8 @@ public:
/** Get the DescriptorScriptPubKeyMans (with private keys) that have the same scriptPubKeys as this LegacyScriptPubKeyMan.
* Does not modify this ScriptPubKeyMan. */
std::optional<MigrationData> MigrateToDescriptor();
/** Delete all the records ofthis LegacyScriptPubKeyMan from disk*/
bool DeleteRecords();
};
/** Wraps a LegacyScriptPubKeyMan so that it can be returned in a new unique_ptr. Does not provide privkeys */