15 unsigned int nHeight = 1;
16 bool spendsCoinbase =
false;
17 unsigned int sigOpCost = 4;
20 MakeTransactionRef(tx), nFee, nTime, nHeight,
21 spendsCoinbase, sigOpCost, lp));
34 tx1.
vout[0].nValue = 10 * COIN;
41 tx2.
vout[0].nValue = 10 * COIN;
49 tx3.
vout[0].nValue = 10 * COIN;
53 tx4.
vin[0].prevout.SetNull();
55 tx4.
vin[1].prevout.SetNull();
59 tx4.
vout[0].nValue = 10 * COIN;
61 tx4.
vout[1].nValue = 10 * COIN;
67 tx5.
vin[1].prevout.SetNull();
71 tx5.
vout[0].nValue = 10 * COIN;
73 tx5.
vout[1].nValue = 10 * COIN;
79 tx6.
vin[1].prevout.SetNull();
83 tx6.
vout[0].nValue = 10 * COIN;
85 tx6.
vout[1].nValue = 10 * COIN;
95 tx7.
vout[0].nValue = 10 * COIN;
97 tx7.
vout[1].nValue = 10 * COIN;
102 AddTx(tx1, 10000LL, pool);
103 AddTx(tx2, 5000LL, pool);
104 AddTx(tx3, 20000LL, pool);
105 AddTx(tx4, 7000LL, pool);
106 AddTx(tx5, 1000LL, pool);
107 AddTx(tx6, 1100LL, pool);
108 AddTx(tx7, 9000LL, pool);
int64_t GetVirtualTransactionSize(int64_t nWeight, int64_t nSigOpCost)
Compute the virtual transaction size (weight reinterpreted as bytes).
BENCHMARK(MempoolEviction, 41000)
size_t DynamicMemoryUsage() const
void TrimToSize(size_t sizelimit, std::vector< COutPoint > *pvNoSpendsRemaining=nullptr)
Remove transactions from the mempool until its dynamic size is <= sizelimit.
CTxMemPoolEntry stores data about the corresponding transaction, as well as data about all in-mempool...
int64_t CAmount
Amount in lius (Can be negative)
An outpoint - a combination of a transaction hash and an index n into its vout.
std::vector< CTxOut > vout
uint256 GetHash() const
Compute the hash of this CMutableTransaction.
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Serialized script, used inside transaction inputs and outputs.
A mutable version of CTransaction.
const uint256 & GetHash() const
bool addUnchecked(const uint256 &hash, const CTxMemPoolEntry &entry, bool validFeeEstimate=true)
The basic transaction that is broadcasted on the network and contained in blocks. ...