HomePhabricator

tests: Error when setgenerate is used on regtest
27ce808fb546Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

tests: Error when setgenerate is used on regtest

Ever since #5957 there has been the problem that older RPC test cases
(as can be found plenty in open pulls) use setgenerate() on regtest,
assuming a different interpretation of the arguments. Directly
generating a number of blocks has been split off into a new method
generate - however using setgenerate with the previous arguments will
result in spawning an unreasonable number of threads, and well, simply
not work as expected without clear indication of the error.

Add an error to point the user at the right method.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Apr 21 2015, 08:14
deadalnixPushed on May 14 2017, 22:04
Parents
rABCb6ea3bcede1c: Merge pull request #5911
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC27ce808fb546: tests: Error when setgenerate is used on regtest (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Apr 21 2015, 08:14