Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin.cpp
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | |||||
CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CTransaction &txn, | CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CTransaction &txn, | ||||
CTxMemPool *pool) { | CTxMemPool *pool) { | ||||
// Hack to assume either it's completely dependent on other mempool txs or | // Hack to assume either it's completely dependent on other mempool txs or | ||||
// not at all. | // not at all. | ||||
Amount inChainValue = | Amount inChainValue = | ||||
pool && pool->HasNoInputsOf(txn) ? txn.GetValueOut() : Amount(0); | pool && pool->HasNoInputsOf(txn) ? txn.GetValueOut() : Amount(0); | ||||
return CTxMemPoolEntry(MakeTransactionRef(txn), nFee, nTime, dPriority, | return CTxMemPoolEntry(MakeTransactionRef(txn), nFee, nTime, dPriority, | ||||
nHeight, inChainValue.GetSatoshis(), spendsCoinbase, | nHeight, inChainValue, spendsCoinbase, sigOpCost, | ||||
sigOpCost, lp); | lp); | ||||
} | } | ||||
void Shutdown(void *parg) { | void Shutdown(void *parg) { | ||||
exit(0); | exit(0); | ||||
} | } | ||||
void StartShutdown() { | void StartShutdown() { | ||||
exit(0); | exit(0); | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |