9#include <test/util/transaction_utils.h>
26 std::vector<CMutableTransaction> dummyTransactions = SetupDummyInputs(
31 t1.vin[0].prevout = COutPoint(dummyTransactions[0].GetId(), 1);
32 t1.vin[0].scriptSig << std::vector<uint8_t>(65, 0);
33 t1.vin[1].prevout = COutPoint(dummyTransactions[1].GetId(), 0);
34 t1.vin[1].scriptSig << std::vector<uint8_t>(65, 0)
35 << std::vector<uint8_t>(33, 4);
36 t1.vin[2].prevout = COutPoint(dummyTransactions[1].GetId(), 1);
37 t1.vin[2].scriptSig << std::vector<uint8_t>(65, 0)
38 << std::vector<uint8_t>(33, 4);
40 t1.vout[0].nValue = 90 *
COIN;
41 t1.vout[0].scriptPubKey <<
OP_1;
static constexpr Amount COIN
static void CCoinsCaching(benchmark::Bench &bench)
CCoinsView that adds a memory cache for transactions to another CCoinsView.
Abstract view on the open txout dataset.
A mutable version of CTransaction.
Users of this module must hold an ECCVerifyHandle.
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.
void ECC_Start()
Initialize the elliptic curve support.
void ECC_Stop()
Deinitialize the elliptic curve support.
bool AreInputsStandard(const CTransaction &tx, const CCoinsViewCache &mapInputs, uint32_t flags)
Check transaction inputs to mitigate two potential denial-of-service attacks:
static constexpr uint32_t STANDARD_SCRIPT_VERIFY_FLAGS
Standard script verification flags that standard transactions will comply with.