#include <coins.h>
#include <consensus/consensus.h>
#include <logging.h>
#include <random.h>
#include <util/trace.h>
Go to the source code of this file.
◆ AccessByTxid()
Utility function to find any unspent output with a given txid.
This function can be quite expensive because in the event of a transaction which is not found in the cache, it can cause up to MAX_OUTPUTS_PER_BLOCK lookups to database, so it should be used with care.
Definition at line 351 of file coins.cpp.
◆ AddCoins()
Utility function to add all of a transaction's outputs to a cache.
When check is false, this assumes that overwrites are only possible for coinbase transactions. When check is true, the underlying view may be queried to determine whether an addition is an overwrite.
Definition at line 119 of file coins.cpp.
◆ ExecuteBackedWrapper()
template<typename ReturnType , typename Func >
static ReturnType ExecuteBackedWrapper |
( |
Func |
func, |
|
|
const std::vector< std::function< void()> > & |
err_callbacks |
|
) |
| |
|
static |
◆ TRACEPOINT_SEMAPHORE() [1/3]
TRACEPOINT_SEMAPHORE |
( |
utxocache |
, |
|
|
add |
|
|
) |
| |
◆ TRACEPOINT_SEMAPHORE() [2/3]
TRACEPOINT_SEMAPHORE |
( |
utxocache |
, |
|
|
spent |
|
|
) |
| |
◆ TRACEPOINT_SEMAPHORE() [3/3]
TRACEPOINT_SEMAPHORE |
( |
utxocache |
, |
|
|
uncache |
|
|
) |
| |
◆ coinEmpty
◆ MAX_OUTPUTS_PER_BLOCK
◆ MIN_TRANSACTION_OUTPUT_WEIGHT