Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C-ryptocurrency stolen because of a typo in C code

Name: Anonymous 2017-02-25 17:33

Name: Anonymous 2017-02-25 19:42

nBlockMinSize = std::min(nBlockMaxSize, nBlockMinSize);

unsigned int COUNT_SPEND_ZC_TX = 0;
- unsigned int MAX_SPEND_ZC_TX_PER_BLOCK = 1;
+ unsigned int MAX_SPEND_ZC_TX_PER_BLOCK = 0;

// Collect memory pool transactions into the block
int64 nFees = 0;


THIS IS WHY YOU SHOULDN"t USE "MAGIC NUMBERS".

#DEFINE ZERO 0
#DEFINE ONE 1

WOULD HAVE FIXED THIS

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List