diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2014-11-13 14:52:04 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2014-11-14 13:42:15 -0500 |
commit | 18379875bf7dd91637e4a206db58cd0968b5d47f (patch) | |
tree | 077beebc3c5f4202985c88086a299186ee102c57 /src/main.cpp | |
parent | 3d3ce7421e11ed693840e04bee4d18fb9d396309 (diff) |
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/main.cpp')
0 files changed, 0 insertions, 0 deletions