Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,290 Lines • ▼ Show 20 Lines | assert(txNew.nLockTime < LOCKTIME_THRESHOLD); | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
if (gArgs.GetBoolArg("-walletrejectlongchains", | if (gArgs.GetBoolArg("-walletrejectlongchains", | ||||
DEFAULT_WALLET_REJECT_LONG_CHAINS)) { | DEFAULT_WALLET_REJECT_LONG_CHAINS)) { | ||||
// Lastly, ensure this tx will pass the mempool's chain limits. | // Lastly, ensure this tx will pass the mempool's chain limits. | ||||
LockPoints lp; | LockPoints lp; | ||||
CTxMemPoolEntry entry(tx, Amount::zero(), 0, 0, 0, Amount::zero(), | CTxMemPoolEntry entry(tx, Amount::zero(), 0, 0, false, 0, lp); | ||||
false, 0, lp); | |||||
CTxMemPool::setEntries setAncestors; | CTxMemPool::setEntries setAncestors; | ||||
size_t nLimitAncestors = | size_t nLimitAncestors = | ||||
gArgs.GetArg("-limitancestorcount", DEFAULT_ANCESTOR_LIMIT); | gArgs.GetArg("-limitancestorcount", DEFAULT_ANCESTOR_LIMIT); | ||||
size_t nLimitAncestorSize = | size_t nLimitAncestorSize = | ||||
gArgs.GetArg("-limitancestorsize", DEFAULT_ANCESTOR_SIZE_LIMIT) * | gArgs.GetArg("-limitancestorsize", DEFAULT_ANCESTOR_SIZE_LIMIT) * | ||||
1000; | 1000; | ||||
size_t nLimitDescendants = | size_t nLimitDescendants = | ||||
gArgs.GetArg("-limitdescendantcount", DEFAULT_DESCENDANT_LIMIT); | gArgs.GetArg("-limitdescendantcount", DEFAULT_DESCENDANT_LIMIT); | ||||
▲ Show 20 Lines • Show All 1,588 Lines • Show Last 20 Lines |