Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,256 Lines • ▼ Show 20 Lines | |||||
bool CMerkleTx::IsImmatureCoinBase() const { | bool CMerkleTx::IsImmatureCoinBase() const { | ||||
// note GetBlocksToMaturity is 0 for non-coinbase tx | // note GetBlocksToMaturity is 0 for non-coinbase tx | ||||
return GetBlocksToMaturity() > 0; | return GetBlocksToMaturity() > 0; | ||||
} | } | ||||
bool CMerkleTx::AcceptToMemoryPool(CValidationState &state) { | bool CMerkleTx::AcceptToMemoryPool(CValidationState &state) { | ||||
const Config &config = GetConfig(); | const Config &config = GetConfig(); | ||||
return ::AcceptToMemoryPool(config, mempool, state, tx, true, nullptr, | return ::AcceptToMemoryPool(config, mempool, state, tx, true, nullptr, | ||||
false, config.GetMaxFee()); | false, config.GetMaxFeePerKB()); | ||||
} | } |