|
|
@ -718,7 +718,7 @@ public:
|
|
|
|
// (memory only) Sequencial id assigned to distinguish order in which blocks are received.
|
|
|
|
// (memory only) Sequencial id assigned to distinguish order in which blocks are received.
|
|
|
|
uint32_t nSequenceId;
|
|
|
|
uint32_t nSequenceId;
|
|
|
|
|
|
|
|
|
|
|
|
CBlockIndex()
|
|
|
|
void SetNull()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
phashBlock = NULL;
|
|
|
|
phashBlock = NULL;
|
|
|
|
pprev = NULL;
|
|
|
|
pprev = NULL;
|
|
|
@ -740,20 +740,14 @@ public:
|
|
|
|
nNonce = 0;
|
|
|
|
nNonce = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CBlockIndex()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
SetNull();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CBlockIndex(CBlockHeader& block)
|
|
|
|
CBlockIndex(CBlockHeader& block)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
phashBlock = NULL;
|
|
|
|
SetNull();
|
|
|
|
pprev = NULL;
|
|
|
|
|
|
|
|
pskip = NULL;
|
|
|
|
|
|
|
|
nHeight = 0;
|
|
|
|
|
|
|
|
nFile = 0;
|
|
|
|
|
|
|
|
nDataPos = 0;
|
|
|
|
|
|
|
|
nUndoPos = 0;
|
|
|
|
|
|
|
|
nChainWork = 0;
|
|
|
|
|
|
|
|
nTx = 0;
|
|
|
|
|
|
|
|
nChainTx = 0;
|
|
|
|
|
|
|
|
nStatus = 0;
|
|
|
|
|
|
|
|
nSequenceId = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nVersion = block.nVersion;
|
|
|
|
nVersion = block.nVersion;
|
|
|
|
hashMerkleRoot = block.hashMerkleRoot;
|
|
|
|
hashMerkleRoot = block.hashMerkleRoot;
|
|
|
|