diff options
| author | John Newbery <[email protected]> | 2018-11-26 11:17:38 -0500 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2018-12-10 16:42:14 -0500 |
| commit | 0025c9eae41654c204ecf31f7e134b91dc473a75 (patch) | |
| tree | 4f02f77f87d09301d777b64287203849f0fe18cc /src/test | |
| parent | Merge #14877: rpc: Document default values for optional arguments (diff) | |
| download | discoin-0025c9eae41654c204ecf31f7e134b91dc473a75.tar.xz discoin-0025c9eae41654c204ecf31f7e134b91dc473a75.zip | |
[mining] segwit option must be set in GBT
Calling getblocktemplate without the segwit rule specified is most
likely a client error, since it results in lower fees for the miner.
Prevent this client error by failing getblocktemplate if called without
the segwit rule specified.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/validation_block_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/validation_block_tests.cpp b/src/test/validation_block_tests.cpp index 4316f3799..a9d192e55 100644 --- a/src/test/validation_block_tests.cpp +++ b/src/test/validation_block_tests.cpp @@ -54,7 +54,7 @@ std::shared_ptr<CBlock> Block(const uint256& prev_hash) CScript pubKey; pubKey << i++ << OP_TRUE; - auto ptemplate = BlockAssembler(Params()).CreateNewBlock(pubKey, false); + auto ptemplate = BlockAssembler(Params()).CreateNewBlock(pubKey); auto pblock = std::make_shared<CBlock>(ptemplate->block); pblock->hashPrevBlock = prev_hash; pblock->nTime = ++time; |