Changeset View
Changeset View
Standalone View
Standalone View
src/miner.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | int64_t UpdateTime(CBlockHeader *pblock, const Consensus::Params ¶ms, | ||||
return nNewTime - nOldTime; | return nNewTime - nOldTime; | ||||
} | } | ||||
uint64_t CTxMemPoolModifiedEntry::GetVirtualSizeWithAncestors() const { | uint64_t CTxMemPoolModifiedEntry::GetVirtualSizeWithAncestors() const { | ||||
return GetVirtualTransactionSize(nSizeWithAncestors, | return GetVirtualTransactionSize(nSizeWithAncestors, | ||||
nSigOpCountWithAncestors); | nSigOpCountWithAncestors); | ||||
} | } | ||||
uint64_t CTxMemPoolModifiedEntry::GetIncrementalVirtualSize() const { | |||||
auto vsize_with_ancestors = GetVirtualSizeWithAncestors(); | |||||
auto vsize_only_ancestors = GetVirtualTransactionSize( | |||||
nSizeWithAncestors - iter->GetTxSize(), | |||||
nSigOpCountWithAncestors - iter->GetSigOpCount()); | |||||
return vsize_with_ancestors - vsize_only_ancestors; | |||||
} | |||||
BlockAssembler::Options::Options() | BlockAssembler::Options::Options() | ||||
: nExcessiveBlockSize(DEFAULT_MAX_BLOCK_SIZE), | : nExcessiveBlockSize(DEFAULT_MAX_BLOCK_SIZE), | ||||
nMaxGeneratedBlockSize(DEFAULT_MAX_GENERATED_BLOCK_SIZE), | nMaxGeneratedBlockSize(DEFAULT_MAX_GENERATED_BLOCK_SIZE), | ||||
blockMinFeeRate(DEFAULT_BLOCK_MIN_TX_FEE_PER_KB) {} | blockMinFeeRate(DEFAULT_BLOCK_MIN_TX_FEE_PER_KB) {} | ||||
BlockAssembler::BlockAssembler(const CChainParams ¶ms, | BlockAssembler::BlockAssembler(const CChainParams ¶ms, | ||||
const CTxMemPool &_mempool, | const CTxMemPool &_mempool, | ||||
const Options &options) | const Options &options) | ||||
▲ Show 20 Lines • Show All 499 Lines • Show Last 20 Lines |