diff options
| author | John Newbery <[email protected]> | 2018-10-05 16:51:10 +0900 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2018-10-18 17:46:48 -0400 |
| commit | aab81720de237b258ed4e15f1b1831c11abf74f0 (patch) | |
| tree | 821676af4c944e0cc776f7f5e18d7de973739259 /src/httpserver.cpp | |
| parent | [tests] Small fixups before deprecating generate (diff) | |
| download | discoin-aab81720de237b258ed4e15f1b1831c11abf74f0.tar.xz discoin-aab81720de237b258ed4e15f1b1831c11abf74f0.zip | |
[tests] Add generate method to TestNode
Adds a generate() method to the TestNode class in the test framework.
This method intercepts calls to generate, imports a dewterministic
private key to the node and then calls generatetoaddress to generate the
block to that address.
Note that repeated calls to importprivkey for the same private keys are
no-ops, so it's fine to call the generate() method many times.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions