diff options
| author | Alex Morcos <[email protected]> | 2015-12-15 15:26:44 -0500 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2016-05-18 14:11:12 -0400 |
| commit | 4dc94d1036576fe988a066fdabc047350ccddda9 (patch) | |
| tree | f78d4e5795a752408f165356cafc8f7bce8f5852 /src/test/test_bitcoin.cpp | |
| parent | Merge #7917: Optimize reindex (diff) | |
| download | discoin-4dc94d1036576fe988a066fdabc047350ccddda9.tar.xz discoin-4dc94d1036576fe988a066fdabc047350ccddda9.zip | |
Refactor CreateNewBlock to be a method of the BlockAssembler class
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 9bcb07626..c68320ba8 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -98,7 +98,7 @@ CBlock TestChain100Setup::CreateAndProcessBlock(const std::vector<CMutableTransaction>& txns, const CScript& scriptPubKey) { const CChainParams& chainparams = Params(); - CBlockTemplate *pblocktemplate = CreateNewBlock(chainparams, scriptPubKey); + CBlockTemplate *pblocktemplate = BlockAssembler(chainparams).CreateNewBlock(scriptPubKey); CBlock& block = pblocktemplate->block; // Replace mempool-selected txns with just coinbase plus passed-in txns: |