16#include <boost/test/unit_test.hpp>
28 std::vector<CAmount>
feeV;
32 for (
int j = 0;
j < 10;
j++) {
44 for (
unsigned int i = 0; i < 128; i++)
54 std::vector<CTransactionRef> block;
61 for (
int j = 0;
j < 10;
j++) {
62 for (
int k = 0;
k < 4;
k++) {
84 for (
int h = 0; h <=
blocknum%10; h++) {
125 for (
int i = 1; i < 10;i++) {
137 for (
int i = 10; i <= 48; i++) {
152 for (
int i = 2; i < 10;i++) {
161 for (
int j = 0;
j < 10;
j++) {
162 for (
int k = 0;
k < 4;
k++) {
192 for (
int i = 1; i < 10;i++) {
198 for (
int j = 0;
j < 10;
j++) {
202 block.push_back(
ptx);
209 mpool.removeForBlock(block, 266);
217 for (
int i = 2; i < 10;i++) {
224 for (
int j = 0;
j < 10;
j++) {
225 for (
int k = 0;
k < 4;
k++) {
245 block.push_back(
ptx);
260 for (
int i = 2; i < 9; i++) {
int64_t CAmount
Amount in satoshis (Can be negative)
TryAddToMempool(pool, CTxMemPoolEntry(tx, fee, 0, 1, 0, false, 4, lp))
static constexpr bool DEFAULT_ACCEPT_STALE_FEE_ESTIMATES
fs::path FeeestPath(const ArgsManager &argsman)
#define Assert(val)
Identity function.
The BlockPolicyEstimator is used for estimating the feerate needed for a transaction to be included i...
Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
CAmount GetFeePerK() const
Return the fee in satoshis for a vsize of 1000 vbytes.
Serialized script, used inside transaction inputs and outputs.
The basic transaction that is broadcasted on the network and contained in blocks.
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
void push_back(const T &value)
RecursiveMutex cs_main
Mutex to guard access to validation specific variables, such as reading or changing the chainstate.
BOOST_FIXTURE_TEST_SUITE(cuckoocache_tests, BasicTestingSetup)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END()
#define BOOST_CHECK(expr)
int64_t GetVirtualTransactionSize(int64_t nWeight, int64_t nSigOpCost, unsigned int bytes_per_sigop)
Compute the virtual transaction size (weight reinterpreted as bytes).
BOOST_AUTO_TEST_CASE(BlockPolicyEstimates)
static CTransactionRef MakeTransactionRef(Tx &&txIn)
std::shared_ptr< const CTransaction > CTransactionRef
A mutable version of CTransaction.
std::vector< CTxOut > vout
Txid GetHash() const
Compute the hash of this CMutableTransaction.
Testing setup that performs all steps up until right before ChainstateManager gets initialized.
TestMemPoolEntryHelper & Time(NodeSeconds tp)
CTxMemPoolEntry FromTx(const CMutableTransaction &tx) const
TestMemPoolEntryHelper & Height(unsigned int _height)
TestMemPoolEntryHelper & Fee(CAmount _fee)
std::unique_ptr< ValidationSignals > validation_signals
Issues calls about blocks and transactions.
std::unique_ptr< CTxMemPool > mempool
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.