#include <interfaces/types.h>
#include <node/types.h>
#include <policy/policy.h>
#include <primitives/block.h>
#include <txmempool.h>
#include <util/feefrac.h>
#include <memory>
#include <optional>
#include <stdint.h>
#include <boost/multi_index/identity.hpp>
#include <boost/multi_index/indexed_by.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/tag.hpp>
#include <boost/multi_index_container.hpp>
Go to the source code of this file.
|
namespace | Consensus |
| Transaction validation functions.
|
|
namespace | node |
|
|
int64_t | node::GetMinimumTime (const CBlockIndex *pindexPrev, const int64_t difficulty_adjustment_interval) |
| Get the minimum time a miner should use in the next block. More...
|
|
int64_t | node::UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev) |
|
void | node::RegenerateCommitments (CBlock &block, ChainstateManager &chainman) |
| Update an old GenerateCoinbaseCommitment from CreateNewBlock after the block txs have changed. More...
|
|
void | node::ApplyArgsManOptions (const ArgsManager &gArgs, BlockAssembler::Options &options) |
| Apply -blockmintxfee and -blockmaxweight options from ArgsManager to BlockAssembler options. More...
|
|
void | node::AddMerkleRootAndCoinbase (CBlock &block, CTransactionRef coinbase, uint32_t version, uint32_t timestamp, uint32_t nonce) |
|
std::unique_ptr< CBlockTemplate > | node::WaitAndCreateNewBlock (ChainstateManager &chainman, KernelNotifications &kernel_notifications, CTxMemPool *mempool, const std::unique_ptr< CBlockTemplate > &block_template, const BlockWaitOptions &options, const BlockAssembler::Options &assemble_options) |
| Return a new block template when fees rise to a certain threshold or after a new tip; return nullopt if timeout is reached. More...
|
|
std::optional< BlockRef > | node::GetTip (ChainstateManager &chainman) |
|
std::optional< BlockRef > | node::WaitTipChanged (ChainstateManager &chainman, KernelNotifications &kernel_notifications, const uint256 ¤t_tip, MillisecondsDouble &timeout) |
|