MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / TopUp

Method TopUp

src/wallet/scriptpubkeyman.cpp:1042–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040}
1041
1042bool DescriptorScriptPubKeyMan::TopUp(unsigned int size)
1043{
1044 WalletBatch batch(m_storage.GetDatabase());
1045 if (!batch.TxnBegin()) return false;
1046 bool res = TopUpWithDB(batch, size);
1047 if (!batch.TxnCommit()) throw std::runtime_error(strprintf("Error during descriptors keypool top up. Cannot commit changes for wallet [%s]", m_storage.LogName()));
1048 return res;
1049}
1050
1051bool DescriptorScriptPubKeyMan::TopUpWithDB(WalletBatch& batch, unsigned int size)
1052{

Callers 1

TopUpKeyPoolMethod · 0.45

Calls 3

TxnBeginMethod · 0.45
TxnCommitMethod · 0.45
LogNameMethod · 0.45

Tested by

no test coverage detected