Skip to content

Commit

Permalink
Merge pull request #70 from aizensou/master
Browse files Browse the repository at this point in the history
Urgent fix for pool owners to prevent malicious zerospend txs
  • Loading branch information
aizensou authored Feb 18, 2017
2 parents 33796c8 + b20c177 commit 81a6678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5913,7 +5913,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
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;
Expand Down
2 changes: 1 addition & 1 deletion src/rpcmining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
map<uint256, int64_t> setTxIndex;
int i = 0;
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;
BOOST_FOREACH (CTransaction& tx, pblock->vtx)
{
uint256 txHash = tx.GetHash();
Expand Down

0 comments on commit 81a6678

Please sign in to comment.