Skip to content

Commit 3e14b8d

Browse files
committed
rpctest: ignore redundant create test chain harness option
Since the blocks are generated only when both CreateTestChain and NumMatureOutputs are set, there's no obvious reason to keep both. The code was simplified by ignoring the CreateTestChain option.
1 parent de122dc commit 3e14b8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integration/rpctest/rpc_harness.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func (h *Harness) SetUp(opts *SetUpOpts) error {
364364

365365
// Create a test chain with the desired number of mature coinbase
366366
// outputs.
367-
if opts.CreateTestChain && opts.NumMatureOutputs != 0 {
367+
if opts.NumMatureOutputs > 0 {
368368
coinbaseMaturity := uint32(h.ActiveNet.CoinbaseMaturity)
369369
numToGenerate := coinbaseMaturity + opts.NumMatureOutputs
370370
_, err := h.Client.Generate(numToGenerate)

0 commit comments

Comments
 (0)