31 std::vector<CMutableTransaction> dummyTransactions =
36 t1.vin[0].prevout.hash = dummyTransactions[0].GetHash();
37 t1.vin[0].prevout.n = 1;
38 t1.vin[0].scriptSig << std::vector<unsigned char>(65, 0);
39 t1.vin[1].prevout.hash = dummyTransactions[1].GetHash();
40 t1.vin[1].prevout.n = 0;
41 t1.vin[1].scriptSig << std::vector<unsigned char>(65, 0) << std::vector<unsigned char>(33, 4);
42 t1.vin[2].prevout.hash = dummyTransactions[1].GetHash();
43 t1.vin[2].prevout.n = 1;
44 t1.vin[2].scriptSig << std::vector<unsigned char>(65, 0) << std::vector<unsigned char>(33, 4);
46 t1.vout[0].nValue = 90 *
COIN;
47 t1.vout[0].scriptPubKey <<
OP_1;
static constexpr CAmount COIN
The amount of satoshis in one BTC.
static void CCoinsCaching(benchmark::Bench &bench)
BENCHMARK(CCoinsCaching, benchmark::PriorityLevel::HIGH)
CCoinsView that adds a memory cache for transactions to another CCoinsView.
Abstract view on the open txout dataset.
The basic transaction that is broadcasted on the network and contained in blocks.
RAII class initializing and deinitializing global state for elliptic curve support.
Fillable signing provider that keeps keys in an address->secret map.
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
bool AreInputsStandard(const CTransaction &tx, const CCoinsViewCache &mapInputs)
Check transaction inputs to mitigate two potential denial-of-service attacks:
A mutable version of CTransaction.
std::vector< CMutableTransaction > SetupDummyInputs(FillableSigningProvider &keystoreRet, CCoinsViewCache &coinsRet, const std::array< CAmount, 4 > &nValues)