diff options
author | Alex Morcos <morcos@chaincode.com> | 2015-12-15 15:26:44 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2016-05-18 14:11:12 -0400 |
commit | 4dc94d1036576fe988a066fdabc047350ccddda9 (patch) | |
tree | f78d4e5795a752408f165356cafc8f7bce8f5852 /src/test/test_bitcoin.cpp | |
parent | 239d4198645434542b01916dae5eebc7a3a7bbcc (diff) | |
download | bitcoin-4dc94d1036576fe988a066fdabc047350ccddda9.tar.xz |
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 9bcb07626a..c68320ba8b 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: |