Raven Core  3.0.0
P2P Digital Currency
Classes | Typedefs | Functions
coins.h File Reference
#include "primitives/transaction.h"
#include "compressor.h"
#include "core_memusage.h"
#include "hash.h"
#include "memusage.h"
#include "serialize.h"
#include "uint256.h"
#include <assert.h>
#include <stdint.h>
#include <unordered_map>
#include <assets/assets.h>
#include <assets/assetdb.h>
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.

Classes

class  Coin
 A UTXO entry. More...
 
class  SaltedOutpointHasher
 
struct  CCoinsCacheEntry
 
class  CCoinsViewCursor
 Cursor for iterating over CoinsView state. More...
 
class  CCoinsView
 Abstract view on the open txout dataset. More...
 
class  CCoinsViewBacked
 CCoinsView backed by another CCoinsView. More...
 
class  CCoinsViewCache
 CCoinsView that adds a memory cache for transactions to another CCoinsView. More...
 

Typedefs

typedef std::unordered_map< COutPoint, CCoinsCacheEntry, SaltedOutpointHasherCCoinsMap
 

Functions

void AddCoins (CCoinsViewCache &cache, const CTransaction &tx, int nHeight, uint256 blockHash, bool check=false, CAssetsCache *assetsCache=nullptr, std::pair< std::string, CBlockAssetUndo > *undoAssetData=nullptr)
 Utility function to add all of a transaction's outputs to a cache. More...
 
const CoinAccessByTxid (const CCoinsViewCache &cache, const uint256 &txid)
 Utility function to find any unspent output with a given txid. More...
 

Typedef Documentation

◆ CCoinsMap

Definition at line 129 of file coins.h.

Function Documentation

◆ AccessByTxid()

const Coin& AccessByTxid ( const CCoinsViewCache cache,
const uint256 txid 
)

Utility function to find any unspent output with a given txid.

Definition at line 522 of file coins.cpp.

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

◆ AddCoins()

void AddCoins ( CCoinsViewCache cache,
const CTransaction tx,
int  nHeight,
uint256  blockHash,
bool  check = false,
CAssetsCache assetsCache = nullptr,
std::pair< std::string, CBlockAssetUndo > *  undoAssetData = nullptr 
)

Utility function to add all of a transaction's outputs to a cache.

RVN START

RVN END

RVN START

Subscribe to new message channels if they are sent to a new address, or they are the owner token or message channel

Subscribe to new message channels if they are assets you created, or are new msgchannels of channels already being watched

RVN END

Definition at line 97 of file coins.cpp.

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