dashpay / dash

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

Devnets initialized without High Subsidy blocks coinbases fail validation #6202

Open asas-rio opened 3 months ago

asas-rio commented 3 months ago

when I start dashd or dash-qt (binary ver 20.1.1) in devnet mode, no genesis block is created ... through dashd I get the error ERROR: ConnectBlock(DASH): coinbase pays too much at height 1 (actual=5000000000 vs limit=500000000)

Actual behavior

To reproduce

System information

PastaPastaPasta commented 3 months ago

please provide steps to reproduce including dash.conf used and any launch parameters used

asas-rio commented 3 months ago

I use launch parameters dashd -devnet=dn1 -port=19999 -rpcport=19998 without dash.conf file and I get the specified error and the genesis block is not created

in regtest mode with lanch parameters dashd -regtest -port=19999 -rpcport=19998 I don't get an error and the genesis block is generated

thanks in advance

PastaPastaPasta commented 3 months ago

That's really interesting @asas-rio; I can confirm this is an issue. We'll investigate this and try to get it fixed in the next version.

In the meantime, I would recommend starting your node with -highsubsidyblocks=500 -highsubsidyfactor=10 or something similar. This will allow you to get a devnet up and running.