Skip to content

Commit 2f0d3e6

Browse files
committed
Merge #11232: Ensure that data types are consistent
061297f Ensure that data types are consistent (jjz) Pull request description: 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 Tree-SHA512: 3d4a55c62d3e17b9c83807eae153db4fcfcd8477c9413a45dedfa157563e77b775a66974648d28c9d44ac45a5705eef83b31a8a3b44316dc9814b85526a9d034
2 parents e7f1255 + 061297f commit 2f0d3e6

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)