Not overly important but it looks a bit silly to see the progress widget saying it is years behind when you are using "-regtest" for the first time.
Using "-regtest" for the first time shows silly progress widget #7279
issue ciyam opened this issue on January 3, 2016-
ciyam commented at 4:51 PM on January 3, 2016: none
-
MarcoFalke commented at 5:10 PM on January 3, 2016: member
The (time of the) first block is hard-coded: https://github.com/bitcoin/bitcoin/blob/be9a9a3d2253ceccf123572b97a890c489a5a9be/src/chainparams.cpp#L239
-
ciyam commented at 5:13 PM on January 3, 2016: none
Understood - but it seems to know to hide the progress widget as soon as you generate even one block so why show the widget at all if it is known that you are using "regtest"? (i.e. it just looks ugly for no good reason IMO)
-
MarcoFalke commented at 5:21 PM on January 3, 2016: member
know to hide the progress widget as soon as you generate even one block
Normally, the time of the second block is the time you create the second block. As long as the time of the last block is less than 90 minutes in the past, there will be no progress bar: https://github.com/bitcoin/bitcoin/blob/be9a9a3d2253ceccf123572b97a890c489a5a9be/src/qt/bitcoingui.cpp#L719
-
ciyam commented at 5:25 PM on January 3, 2016: none
Again - I understand - but if it knows it is running with "-regtest" then why not just hide the progress widget "full stop"? (it is just an aesthetic thing really - but it does look ugly that if you start a blank regtest you see the stupid progress widget)
-
MarcoFalke commented at 5:31 PM on January 3, 2016: member
Regtest is for development only and I don't see how this information could harm.
-
ciyam commented at 5:35 PM on January 3, 2016: none
Sure - as I stated it is just "ugly" (it doesn't "harm") so I fully understand if no-one cares to change it - just was reporting (as it is confusing to see that at first).
- jonasschnelli added the label GUI on Jan 3, 2016
-
jonasschnelli commented at 10:17 AM on January 4, 2016: contributor
Agree that it could be confusing. But because this is a dev's/researchers only feature, I think it's not worth changing it / keeping an issue open for it. @ciyam: If you agree, please close the issue.
-
laanwj commented at 12:55 PM on January 5, 2016: member
Regtest is not meant for normal users. It's even hidden in
--helpwithout--help-debug. So minor UI issues that could confuse novice users are not relevant enough to keep open an issue, IMO. (though I'm not against fixing this if it can be done in a general, non-ugly way) - laanwj closed this on Jan 5, 2016
- DrahtBot locked this on Sep 8, 2021