9#include <test/util/transaction_utils.h>
32 t1.vin[0].scriptSig << std::vector<uint8_t>(65, 0);
34 t1.vin[1].scriptSig << std::vector<uint8_t>(65, 0)
35 << std::vector<uint8_t>(33, 4);
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.
An outpoint - a combination of a transaction hash and an index n into its vout.
The basic transaction that is broadcasted on the network and contained in blocks.
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.
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.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...