HomePhabricator

Optimize -regtest setgenerate block generation
18379875bf7dUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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).

Details

Provenance
Gavin Andresen <gavinandresen@gmail.com>Authored on Nov 13 2014, 19:52
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING3d3ce7421e11: Merge pull request #5198
Branches
Unknown
Tags
Unknown

Event Timeline

Gavin Andresen <gavinandresen@gmail.com> committed rSTAGING18379875bf7d: Optimize -regtest setgenerate block generation (authored by Gavin Andresen <gavinandresen@gmail.com>).Nov 14 2014, 18:42