9#include <test/util/transaction_utils.h>
25 std::vector<CMutableTransaction> dummyTransactions = SetupDummyInputs(
30 t1.vin[0].prevout = COutPoint(dummyTransactions[0].GetId(), 1);
31 t1.vin[0].scriptSig << std::vector<uint8_t>(65, 0);
32 t1.vin[1].prevout = COutPoint(dummyTransactions[1].GetId(), 0);
33 t1.vin[1].scriptSig << std::vector<uint8_t>(65, 0)
34 << std::vector<uint8_t>(33, 4);
35 t1.vin[2].prevout = COutPoint(dummyTransactions[1].GetId(), 1);
36 t1.vin[2].scriptSig << std::vector<uint8_t>(65, 0)
37 << std::vector<uint8_t>(33, 4);
39 t1.vout[0].nValue = 90 *
COIN;
40 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.
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.