Bitcoin Core 31.99.0
P2P Digital Currency
Functions
coins.h File Reference
#include <coins.h>
#include <crypto/hex_base.h>
#include <primitives/transaction.h>
#include <tinyformat.h>
#include <ostream>
Include dependency graph for coins.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

COutPoint AddTestCoin (FastRandomContext &rng, CCoinsViewCache &coins_view)
 Create a Coin with DynamicMemoryUsage of 80 bytes and add it to the given view. More...
 
bool operator== (const Coin &a, const Coin &b)
 Strict equality, including fields of spent coins. More...
 
std::ostream & operator<< (std::ostream &os, const Coin &coin)
 Printed when a coin comparison fails. More...
 

Function Documentation

◆ AddTestCoin()

COutPoint AddTestCoin ( FastRandomContext rng,
CCoinsViewCache coins_view 
)

Create a Coin with DynamicMemoryUsage of 80 bytes and add it to the given view.

Parameters
[in,out]coins_viewThe coins view cache to add the new coin to.
Returns
the COutPoint of the created coin.

Definition at line 16 of file coins.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const Coin coin 
)
inline

Printed when a coin comparison fails.

Definition at line 32 of file coins.h.

Here is the call graph for this function:

◆ operator==()

bool operator== ( const Coin a,
const Coin b 
)
inline

Strict equality, including fields of spent coins.

Definition at line 26 of file coins.h.