aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjz <woaf1003@gmail.com>2017-09-05 06:03:42 +0800
committerjjz <woaf1003@gmail.com>2017-09-07 11:17:35 +0800
commit061297f0ac5ddedf0e8457a5660e01a742b15d55 (patch)
tree08bab27e74c3c760f66f714628ab422acddf0567
parentce665863b137ac4a7470cf006a92aa7694faca71 (diff)
Ensure that data types are consistent
1. nStatus of CBlockIndex is consistent with the definition of Enum(BlockStatus) 2. The BlockHeader is consistent with the type of variable defined in CBlockHeader
-rw-r--r--src/chain.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chain.h b/src/chain.h
index ef7e6f9554..f1036e5d92 100644
--- a/src/chain.h
+++ b/src/chain.h
@@ -204,14 +204,14 @@ public:
unsigned int nChainTx;
//! Verification status of this block. See enum BlockStatus
- unsigned int nStatus;
+ uint32_t nStatus;
//! block header
- int nVersion;
+ int32_t nVersion;
uint256 hashMerkleRoot;
- unsigned int nTime;
- unsigned int nBits;
- unsigned int nNonce;
+ uint32_t nTime;
+ uint32_t nBits;
+ uint32_t nNonce;
//! (memory only) Sequential id assigned to distinguish order in which blocks are received.
int32_t nSequenceId;