Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,251 Lines • ▼ Show 20 Lines | int CMerkleTx::GetBlocksToMaturity() const { | ||||
} | } | ||||
return std::max(0, (COINBASE_MATURITY + 1) - GetDepthInMainChain()); | return std::max(0, (COINBASE_MATURITY + 1) - GetDepthInMainChain()); | ||||
} | } | ||||
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()); | ||||
} | } |