dashpay / dash

Dash - Reinventing Cryptocurrency
https://www.dash.org
MIT License
1.49k stars 1.2k forks source link

Three node-setup using regtest chain staying forever in "Dash Core is syncing with network..." #1627

Closed oliverw closed 6 years ago

oliverw commented 7 years ago

I've created a docker test image utilizing three instances of dashd for the purpose of testing mining-pool code. While all three nodes come up without error and blocks can be generated just fine using generate, a getblocktemplate RPC issued to any of the daemons initially returns:

{"result":null,"error":{"code":-10,"message":"Dash Core is syncing with network..."},"id":"curltest"}

Waiting a couple seconds, one single time a valid block-template is returned. Subsequent getblocktemplate requests always return the result listed above.

The source to the docker image can be found here.

flound1129 commented 7 years ago

I get this for about 10-15 minutes now whenever I have to restart my dashd.

nmarley commented 6 years ago

@codablock Do you know if this is expected behaviour on regtest? I know you were working thru some issues with regtest and IBD a few weeks back.

oliverw commented 6 years ago

The issue actually goes away after generating a block and waiting a couple seconds.