Reduce variable scopes

This commit is contained in:
practicalswift
2018-03-25 22:49:33 +02:00
parent 7466a26cab
commit 6a318e48a6
3 changed files with 3 additions and 5 deletions

View File

@@ -145,9 +145,9 @@ TestChain100Setup::CreateAndProcessBlock(const std::vector<CMutableTransaction>&
for (const CMutableTransaction& tx : txns)
block.vtx.push_back(MakeTransactionRef(tx));
// IncrementExtraNonce creates a valid coinbase and merkleRoot
unsigned int extraNonce = 0;
{
LOCK(cs_main);
unsigned int extraNonce = 0;
IncrementExtraNonce(&block, chainActive.Tip(), extraNonce);
}