aboutsummaryrefslogtreecommitdiff
path: root/src/chain.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-12-16 15:43:03 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-01-05 15:45:35 +0100
commit734f85c4f0b40efd3f6c0367683c1bab1a2a7b19 (patch)
tree664e41303a76e2154972af1347f18f4de3368473 /src/chain.h
parent34cdc41128eee5da0be9c5e17b3c24b1f91a1957 (diff)
downloadbitcoin-734f85c4f0b40efd3f6c0367683c1bab1a2a7b19.tar.xz
Use arith_uint256 where necessary
Also add conversion from/to uint256 where needed.
Diffstat (limited to 'src/chain.h')
-rw-r--r--src/chain.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chain.h b/src/chain.h
index d7741762c7..004e87ab52 100644
--- a/src/chain.h
+++ b/src/chain.h
@@ -6,6 +6,7 @@
#ifndef BITCOIN_CHAIN_H
#define BITCOIN_CHAIN_H
+#include "arith_uint256.h"
#include "primitives/block.h"
#include "pow.h"
#include "tinyformat.h"
@@ -117,7 +118,7 @@ public:
unsigned int nUndoPos;
//! (memory only) Total amount of work (expected number of hashes) in the chain up to and including this block
- uint256 nChainWork;
+ arith_uint256 nChainWork;
//! Number of transactions in this block.
//! Note: in a potential headers-first mode, this number cannot be relied upon
@@ -150,7 +151,7 @@ public:
nFile = 0;
nDataPos = 0;
nUndoPos = 0;
- nChainWork = uint256();
+ nChainWork = arith_uint256();
nTx = 0;
nChainTx = 0;
nStatus = 0;