X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fmain.h;h=43a8b70bd2c4c49609340b73e110e600e4645fe9;hp=67bc8a7e19035f8acd98f11ea1bd058933415bdc;hb=2a4202a1545f86a78afc41d5641ed596f90356b2;hpb=4bb6099ac6e2554ab652eb89a0c71f6929184c87 diff --git a/src/main.h b/src/main.h index 67bc8a7..43a8b70 100644 --- a/src/main.h +++ b/src/main.h @@ -1128,6 +1128,8 @@ public: unsigned int nBlockPos; CBigNum bnChainTrust; // ppcoin: trust score of block chain int nHeight; + int64 nMint; + int64 nMoneySupply; bool fProofOfStake; // ppcoin: is the block of proof-of-stake type COutPoint prevoutStake; unsigned int nStakeTime; @@ -1149,6 +1151,8 @@ public: nBlockPos = 0; nHeight = 0; bnChainTrust = 0; + nMint = 0; + nMoneySupply = 0; fProofOfStake = true; prevoutStake.SetNull(); nStakeTime = 0; @@ -1169,6 +1173,8 @@ public: nBlockPos = nBlockPosIn; nHeight = 0; bnChainTrust = 0; + nMint = 0; + nMoneySupply = 0; fProofOfStake = block.IsProofOfStake(); if (fProofOfStake) { @@ -1285,8 +1291,9 @@ public: std::string ToString() const { - return strprintf("CBlockIndex(nprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, fProofOfStake=%d prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)", + return strprintf("CBlockIndex(nprev=%08x, pnext=%08x, nFile=%d, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, fProofOfStake=%d prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)", pprev, pnext, nFile, nBlockPos, nHeight, + FormatMoney(nMint).c_str(), FormatMoney(nMoneySupply).c_str(), fProofOfStake, prevoutStake.ToString().c_str(), nStakeTime, hashMerkleRoot.ToString().substr(0,10).c_str(), GetBlockHash().ToString().substr(0,20).c_str()); @@ -1328,6 +1335,8 @@ public: READWRITE(nFile); READWRITE(nBlockPos); READWRITE(nHeight); + READWRITE(nMint); + READWRITE(nMoneySupply); READWRITE(fProofOfStake); if (fProofOfStake) {