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