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 @@ -712,7 +712,7 @@ class CBlockIndex
712
712
// (memory only) Sequencial id assigned to distinguish order in which blocks are received.
713
713
uint32_t nSequenceId;
714
714
715
- CBlockIndex ()
715
+ void SetNull ()
716
716
{
717
717
phashBlock = NULL ;
718
718
pprev = NULL ;
@@ -734,20 +734,14 @@ class CBlockIndex
734
734
nNonce = 0 ;
735
735
}
736
736
737
+ CBlockIndex ()
738
+ {
739
+ SetNull ();
740
+ }
741
+
737
742
CBlockIndex (CBlockHeader& block)
738
743
{
739
- phashBlock = NULL ;
740
- pprev = NULL ;
741
- pskip = NULL ;
742
- nHeight = 0 ;
743
- nFile = 0 ;
744
- nDataPos = 0 ;
745
- nUndoPos = 0 ;
746
- nChainWork = 0 ;
747
- nTx = 0 ;
748
- nChainTx = 0 ;
749
- nStatus = 0 ;
750
- nSequenceId = 0 ;
744
+ SetNull ();
751
745
752
746
nVersion = block.nVersion ;
753
747
hashMerkleRoot = block.hashMerkleRoot ;
You can’t perform that action at this time.
0 commit comments