Created
December 3, 2016 07:06
-
-
Save denravonska/e0c76cf3582976692499036cbc138076 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 50a405f579c9e00a62f60d2f162ebfeb213aa3f5 | |
Author: Marco Nilsson <denravonska@gmail.com> | |
Date: Fri Dec 2 09:20:00 2016 +0100 | |
Remove unused variables from CBlockIndex and remove redundant std::string assignments in constructor. | |
sizeof(CBlockIndex) drops from 408 to 360 bytes and the overall memory consumption | |
drops from peak 453MiB to 417MiB, or by 8%. | |
diff --git a/src/main.h b/src/main.h | |
old mode 100644 | |
new mode 100755 | |
index 04fb162..51e1069 | |
--- a/src/main.h | |
+++ b/src/main.h | |
@@ -1306,10 +1306,6 @@ public: | |
double nResearchSubsidy; | |
double nInterestSubsidy; | |
double nMagnitude; | |
- // Memory Only (8-13-2015): | |
- double nLastPORBlock; | |
- std::string sLastPORBlockHash; | |
- double nTotalPORPayments; | |
// Indicators (9-13-2015) | |
unsigned int nIsSuperBlock; | |
unsigned int nIsContract; | |
@@ -1364,17 +1360,11 @@ public: | |
nBits = 0; | |
nNonce = 0; | |
//7-11-2015 - Gridcoin - New Accrual Fields | |
- sCPID = ""; | |
nResearchSubsidy = 0; | |
nInterestSubsidy = 0; | |
nMagnitude = 0; | |
- nLastPORBlock=0; | |
- sLastPORBlockHash = ""; | |
- nTotalPORPayments = 0; | |
nIsSuperBlock = 0; | |
nIsContract = 0; | |
- sGRCAddress = ""; | |
- sReserved = ""; | |
} | |
CBlockIndex(unsigned int nFileIn, unsigned int nBlockPosIn, CBlock& block) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment