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