MCPcopy Create free account
hub / github.com/ElementsProject/elements / TopUp

Method TopUp

src/wallet/scriptpubkeyman.cpp:1269–1285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1267}
1268
1269bool LegacyScriptPubKeyMan::TopUp(unsigned int kpSize)
1270{
1271 if (!CanGenerateKeys()) {
1272 return false;
1273 }
1274
1275 if (!TopUpChain(m_hd_chain, kpSize)) {
1276 return false;
1277 }
1278 for (auto& [chain_id, chain] : m_inactive_hd_chains) {
1279 if (!TopUpChain(chain, kpSize)) {
1280 return false;
1281 }
1282 }
1283 NotifyCanGetAddressesChanged();
1284 return true;
1285}
1286
1287bool LegacyScriptPubKeyMan::TopUpChain(CHDChain& chain, unsigned int kpSize)
1288{

Callers 4

TopUpKeyPoolMethod · 0.45
GetNewDestinationMethod · 0.45
AddWalletDescriptorMethod · 0.45

Calls 9

GetIntArgMethod · 0.80
ExpandFromCacheMethod · 0.80
ExpandMethod · 0.80
countMethod · 0.80
MergeAndDiffMethod · 0.80
IsRangeMethod · 0.45
WriteDescriptorMethod · 0.45

Tested by

no test coverage detected