Configureable timeout when running a node
When executing a new testnet locally it takes at least 60 seconds for my node to start up, looks something like this:
567605ms database.cpp:5956 apply_hardfork ] HARDFORK 22 at block 0
2567605ms database.cpp:5956 apply_hardfork ] HARDFORK 23 at block 0
2568426ms database.cpp:5956 apply_hardfork ] HARDFORK 24 at block 0
2568427ms database.cpp:5956 apply_hardfork ] HARDFORK 25 at block 0
2629002ms rc_plugin.cpp:567 operator() ] Genesis pool_obj is {"id":0,"pool_array":["27050539251",165575358,2003755169,"21640431400373","6403196140384"]}
2629003ms rc_plugin.cpp:503 operator() ] resource_new_accounts adjustment on block 1: -165574522
2629003ms database.cpp:4094 check_free_memory ] Free memory is now 53G. Current block number: 1
2629003ms chain_plugin.cpp:348 operator() ] No P2P data (block/transaction) received in last 30 seconds... peer_count=0
2629003ms chain_plugin.cpp:350 operator() ] Checking for new P2P data once per 3 seconds...
2629003ms witness_plugin.cpp:344 block_production_loo ] Generated block #1 with timestamp 2021-10-04T01:42:48 at time 2021-10-04T01:42:48
2629200ms witness_plugin.cpp:363 block_production_loo ] Not producing block because node didn't wake up within 750ms of the slot time.
2629400ms witness_plugin.cpp:363 block_production_loo ] Not producing block because node didn't wake up within 750ms of the slot time.
2629600ms witness_plugin.cpp:363 block_production_loo ] Not producing block because node didn't wake up within 750ms of the slot time.
2629800ms witness_plugin.cpp:363 block_production_loo ] Not producing block because node didn't wake up within 750ms of the slot time.
2630000ms witness_plugin.cpp:363 block_production_loo ] Not producing block because node didn't wake up within 750ms of the slot time.
2630200ms witness_plugin.cpp:363 block_production_loo ] Not producing block because node didn't wake up within 750ms of the slot time.
2630400ms witness_plugin.cpp:363 block_production_loo ] Not producing block because node didn't wake up within 750ms of the slot time.
2632005ms witness_plugin.cpp:344 block_production_loo ] Generated block #2 with timestamp 2021-10-04T01:43:51 at time 2021-10-04T01:43:51
with a default configuration etc. This has always been the case for me on a relatively beefy hardware. So when trying to run the basic script:
from test_tools import World
if __name__ == '__main__':
with World() as world:
node = world.create_init_node()
node.config.plugin = ['witness', 'account_by_key', 'account_by_key_api', 'condenser_api', 'rc_api', 'rc', 'wallet_bridge_api']
node.run()
wallet = node.attach_wallet()
it times out after 20 seconds. Could we have a way to configure the timeout ? Thanks