9 #include <test/util/transaction_utils.h> 27 std::vector<CMutableTransaction> dummyTransactions =
28 SetupDummyInputs(keystore, coins, {11 *
COIN, 50 *
COIN, 21 *
COIN, 22 * COIN});
32 t1.vin[0].prevout.hash = dummyTransactions[0].GetHash();
33 t1.vin[0].prevout.n = 1;
34 t1.vin[0].scriptSig << std::vector<unsigned char>(65, 0);
35 t1.vin[1].prevout.hash = dummyTransactions[1].GetHash();
36 t1.vin[1].prevout.n = 0;
37 t1.vin[1].scriptSig << std::vector<unsigned char>(65, 0) << std::vector<unsigned char>(33, 4);
38 t1.vin[2].prevout.hash = dummyTransactions[1].GetHash();
39 t1.vin[2].prevout.n = 1;
40 t1.vin[2].scriptSig << std::vector<unsigned char>(65, 0) << std::vector<unsigned char>(33, 4);
42 t1.vout[0].nValue = 90 *
COIN;
43 t1.vout[0].scriptPubKey <<
OP_1;
void ECC_Start()
Initialize the elliptic curve support.
static const CAmount COIN
static void CCoinsCaching(benchmark::Bench &bench)
Users of this module must hold an ECCVerifyHandle.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Abstract view on the open txout dataset.
bool AreInputsStandard(const CTransaction &tx, const CCoinsViewCache &mapInputs, bool taproot_active)
Check transaction inputs to mitigate two potential denial-of-service attacks:
void ECC_Stop()
Deinitialize the elliptic curve support.
Fillable signing provider that keeps keys in an address->secret map.
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.