spesmilo / electrumx

Alternative implementation of spesmilo/electrum-server
MIT License
432 stars 343 forks source link

Flush count overflow issue mitigation #212

Open ghoober opened 1 year ago

ghoober commented 1 year ago

Hopefully this can save users some effort. Needs more testing.

ghoober commented 1 year ago

I moved the exception to the end of the flush function so that the current work will still be flushed. Will update the PR after testing.

ghoober commented 1 year ago

Cleaned up a bit. Finally the last flush should work, too.

I am thinking about adding a sys.exit(8) code so that it is easier to deal with the error from shell. Or maybe writing the flush count to a file. @SomberNight let me know if that sounds interesting at all.