|
|
@ -26,7 +26,7 @@ |
|
|
|
#include "zcash/IncrementalMerkleTree.hpp" |
|
|
|
#include "veruslaunch.h" |
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Pruned version of CTransaction: only retains metadata and unspent transaction outputs |
|
|
|
* |
|
|
|
* Serialized format: |
|
|
@ -428,10 +428,10 @@ public: |
|
|
|
|
|
|
|
class CCoinsViewCache; |
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* A reference to a mutable cache entry. Encapsulating it allows us to run |
|
|
|
* cleanup code after the modification is finished, and keeping track of |
|
|
|
* concurrent modifications. |
|
|
|
* concurrent modifications. |
|
|
|
*/ |
|
|
|
class CCoinsModifier |
|
|
|
{ |
|
|
@ -456,6 +456,7 @@ class CTransactionExceptionData |
|
|
|
CTransactionExceptionData() : scriptPubKey(), voutMask() {} |
|
|
|
}; |
|
|
|
|
|
|
|
#ifdef SERVER |
|
|
|
class CLaunchMap |
|
|
|
{ |
|
|
|
public: |
|
|
@ -478,6 +479,7 @@ class CLaunchMap |
|
|
|
} |
|
|
|
}; |
|
|
|
static CLaunchMap launchMap = CLaunchMap(); |
|
|
|
#endif |
|
|
|
|
|
|
|
/** CCoinsView that adds a memory cache for transactions to another CCoinsView */ |
|
|
|
class CCoinsViewCache : public CCoinsViewBacked |
|
|
@ -488,7 +490,7 @@ protected: |
|
|
|
|
|
|
|
/**
|
|
|
|
* Make mutable so that we can "fill the cache" even from Get-methods |
|
|
|
* declared as "const". |
|
|
|
* declared as "const". |
|
|
|
*/ |
|
|
|
mutable uint256 hashBlock; |
|
|
|
mutable CCoinsMap cacheCoins; |
|
|
@ -564,7 +566,7 @@ public: |
|
|
|
//! Calculate the size of the cache (in bytes)
|
|
|
|
size_t DynamicMemoryUsage() const; |
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Amount of bitcoins coming in to a transaction |
|
|
|
* Note that lightweight clients may not know anything besides the hash of previous transactions, |
|
|
|
* so may not be able to calculate this. |
|
|
|