
there is a 0% chance the network can solve a block and progress halts
It seems, that it was not the case. My instance was still running in the background, and successfully reached block number 11762, without your fixes (I guess JavaScript is not reloaded, as long as I won't press F5).
Also, as you can see, I have a minority fork with 11616 blocks. Which means, that there are two chains: one is made by the original network with 371.10 ZH/s, and another one is made only by me, with 7.00 MH/s. It is based on the same Genesis Block, as it was the case in the original Gavin's testnet, before it was changed.
My plan is to see, if the official network can halt. I also wonder, if your chain is compatible with BIP-42:
https://github.com/bitcoin/bips/blob/master/bip-0042.mediawikiBecause in the original code, after 64 halvings, the network started again with 50 coins. It was fixed by BIP-42, and I wonder, how your network will behave after 64th halving, and even if it can reach it without halting.
Also, I think some kind of "save" button will be needed, sooner or later, because then, it would be easier to restore the state of the network. Another feature I think about is "pruning". Because currently, everything lives in a memory. And if I could save some blocks on disk, and detach it from RAM, then it could be possible to test thousands of blocks, without killing my browser. Or even: pruning alone, without saving things, is also an option, to test some edge cases, like "no new nodes can join, because nobody has the full history anymore, and everyone switched to pruning".
The current chainwork:
user@st> block 00000000000000000000a1c6fddb84ce51cda1186b4efe949f72ded94e38c281
{
"version": 1,
"hash": "00000000000000000000a1c6fddb84ce51cda1186b4efe949f72ded94e38c281",
"height": 11762,
"confirmations": 2,
"time": 1231186150,
"prev_hash": "00000000000000000000d3e5efaa387c7c80b2d99b8696c50779e5232cd92878",
"chain_work": "000000000000000000000000000000000000000014ba9dcdc41f70d3d7b2c841",
"target": "167c01e4",
"nonce": 914465626,
"merkle_root": "67739709a23396660cb932a84d7691ae4a0f17318fadbb2e7b7102fadf33a3d3"
}
And some minor UI things: when the price per coin is around 2.7 million dollars, it is no longer fully visible in charts. Also, charts seems to be in the future, because I have transactions from Jan 5, while I can see Jan 7 on the exchange.