MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetBlocksToMaturity

Method GetBlocksToMaturity

src/wallet/wallet.cpp:4410–4417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4408}
4409
4410int CMerkleTx::GetBlocksToMaturity() const
4411{
4412 if (!IsCoinBase())
4413 return 0;
4414 int chain_depth = GetDepthInMainChain();
4415 assert(chain_depth >= 0); // coinbase tx should not be conflicted
4416 return std::max(0, (COINBASE_MATURITY+1) - chain_depth);
4417}
4418
4419
4420bool CWalletTx::AcceptToMemoryPool(const CAmount& nAbsurdFee, CValidationState& state)

Callers 6

ListTransactionsFunction · 0.80
listaccountsFunction · 0.80
GetLegacyBalanceMethod · 0.80
AvailableCoinsMethod · 0.80
GetAddressBalancesMethod · 0.80
MakeWalletTxStatusFunction · 0.80

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected