File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ class CBlockIndex
718
718
// (memory only) Sequencial id assigned to distinguish order in which blocks are received.
719
719
uint32_t nSequenceId;
720
720
721
- CBlockIndex ()
721
+ void SetNull ()
722
722
{
723
723
phashBlock = NULL ;
724
724
pprev = NULL ;
@@ -740,20 +740,14 @@ class CBlockIndex
740
740
nNonce = 0 ;
741
741
}
742
742
743
+ CBlockIndex ()
744
+ {
745
+ SetNull ();
746
+ }
747
+
743
748
CBlockIndex (CBlockHeader& block)
744
749
{
745
- phashBlock = NULL ;
746
- pprev = NULL ;
747
- pskip = NULL ;
748
- nHeight = 0 ;
749
- nFile = 0 ;
750
- nDataPos = 0 ;
751
- nUndoPos = 0 ;
752
- nChainWork = 0 ;
753
- nTx = 0 ;
754
- nChainTx = 0 ;
755
- nStatus = 0 ;
756
- nSequenceId = 0 ;
750
+ SetNull ();
757
751
758
752
nVersion = block.nVersion ;
759
753
hashMerkleRoot = block.hashMerkleRoot ;
You can’t perform that action at this time.
0 commit comments