diff options
| author | Gavin Andresen <[email protected]> | 2014-11-13 14:52:04 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2014-11-14 13:42:15 -0500 |
| commit | 18379875bf7dd91637e4a206db58cd0968b5d47f (patch) | |
| tree | 077beebc3c5f4202985c88086a299186ee102c57 /src/rpcserver.cpp | |
| parent | Merge pull request #5198 (diff) | |
| download | discoin-18379875bf7dd91637e4a206db58cd0968b5d47f.tar.xz discoin-18379875bf7dd91637e4a206db58cd0968b5d47f.zip | |
Optimize -regtest setgenerate block generation
Speed up generating blocks in regression test mode, by moving
block-creating and nonce-finding directly into the setgenerate
RPC call (instead of starting up a mining thread and waiting for
it to find a block).
This makes the forknotify RPC test three times quicker, for
example (10 seconds runtime instead of 30 seconds, assuming
the initial blockchain cache is already built).
Diffstat (limited to 'src/rpcserver.cpp')
0 files changed, 0 insertions, 0 deletions