aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorPieter Wuille <sipa@ulyssis.org>2013-05-01 16:23:27 +0200
committerPieter Wuille <sipa@ulyssis.org>2013-05-01 17:21:43 +0200
commite31aa7c9d7dd204b5658f20c19565eee308e35c1 (patch)
tree74ce2ecac7281c3b42a35ef0e3c9207a01b25797 /src/main.h
parenteef2091fe9ee39ecd8e874c91d3ab0ff023c5356 (diff)
Improve gettxoutsetinfo command
* Bugfix: output the correct best block hash (during IBD, it can differ from the actual current best block) * Add height to output * Add hash_serialized, which is a hash of the entire UTXO state. Can be useful to compare two nodes. * Add total_amount, the sum of all UTXOs' values.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index 24b2cb2aa6..e02edbc529 100644
--- a/src/main.h
+++ b/src/main.h
@@ -2096,11 +2096,14 @@ extern CTxMemPool mempool;
struct CCoinsStats
{
int nHeight;
+ uint256 hashBlock;
uint64 nTransactions;
uint64 nTransactionOutputs;
uint64 nSerializedSize;
+ uint256 hashSerialized;
+ int64 nTotalAmount;
- CCoinsStats() : nHeight(0), nTransactions(0), nTransactionOutputs(0), nSerializedSize(0) {}
+ CCoinsStats() : nHeight(0), hashBlock(0), nTransactions(0), nTransactionOutputs(0), nSerializedSize(0), hashSerialized(0), nTotalAmount(0) {}
};
/** Abstract view on the open txout dataset. */