aboutsummaryrefslogtreecommitdiff
path: root/src/rpcclient.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2014-11-13 14:52:04 -0500
committerGavin Andresen <gavinandresen@gmail.com>2014-11-14 13:42:15 -0500
commit18379875bf7dd91637e4a206db58cd0968b5d47f (patch)
tree077beebc3c5f4202985c88086a299186ee102c57 /src/rpcclient.cpp
parent3d3ce7421e11ed693840e04bee4d18fb9d396309 (diff)
downloadbitcoin-18379875bf7dd91637e4a206db58cd0968b5d47f.tar.xz
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/rpcclient.cpp')
0 files changed, 0 insertions, 0 deletions