Skip to content

Commit 061297f

Browse files
committed
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
1 parent ce66586 commit 061297f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/chain.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,14 @@ class CBlockIndex
204204
unsigned int nChainTx;
205205

206206
//! Verification status of this block. See enum BlockStatus
207-
unsigned int nStatus;
207+
uint32_t nStatus;
208208

209209
//! block header
210-
int nVersion;
210+
int32_t nVersion;
211211
uint256 hashMerkleRoot;
212-
unsigned int nTime;
213-
unsigned int nBits;
214-
unsigned int nNonce;
212+
uint32_t nTime;
213+
uint32_t nBits;
214+
uint32_t nNonce;
215215

216216
//! (memory only) Sequential id assigned to distinguish order in which blocks are received.
217217
int32_t nSequenceId;

0 commit comments

Comments
 (0)