mirror of
https://github.com/monero-project/monero.git
synced 2025-08-24 01:35:01 -04:00
add --regtest and --fixed-difficulty for regression testing
on_generateblocks RPC call combines functionality from the on_getblocktemplate and on_submitblock RPC calls to allow rapid block creation. Difficulty is set permanently to 1 for regtest. Makes use of FAKECHAIN network type, but takes hard fork heights from mainchain Default reserve_size in generate_blocks RPC call is now 1. If it is 0, the following error occurs 'Failed to calculate offset for'. Queries hard fork heights info of other network types
This commit is contained in:
parent
149da420e9
commit
34cb6b4b70
18 changed files with 232 additions and 14 deletions
|
@ -162,9 +162,10 @@ int main(int argc, char const * argv[])
|
|||
|
||||
const bool testnet = command_line::get_arg(vm, cryptonote::arg_testnet_on);
|
||||
const bool stagenet = command_line::get_arg(vm, cryptonote::arg_stagenet_on);
|
||||
if (testnet && stagenet)
|
||||
const bool regtest = command_line::get_arg(vm, cryptonote::arg_regtest_on);
|
||||
if (testnet + stagenet + regtest > 1)
|
||||
{
|
||||
std::cerr << "Can't specify more than one of --tesnet and --stagenet" << ENDL;
|
||||
std::cerr << "Can't specify more than one of --tesnet and --stagenet and --regtest" << ENDL;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue