Allow to cancel the txdb upgrade via splashscreen keypress 'q'#10660
Allow to cancel the txdb upgrade via splashscreen keypress 'q'#10660laanwj merged 6 commits intobitcoin:masterfrom
Conversation
90ebd98 to
8aaf606
Compare
|
Speak up if you have a better, state-less solution for the UI progress callback. |
|
Awesome! Will test.
TBH this doesn't matter much. This is a one-time scenario, it's important to have something that works reliably, it doesn't need to look pretty. |
src/txdb.cpp
Outdated
There was a problem hiding this comment.
Couldn't this just be one string with a \n in the middle instead of two separate strings?
There was a problem hiding this comment.
From my experience, translators hate messages with html or newlines in them, increasing the chance to make a mistake there.
|
Tried this. Two issues:
|
5268f8d to
5b304a1
Compare
|
Rebased and overhauled. |
|
Tested upgrade w/ my test data up to height=430234:
|
src/qt/splashscreen.cpp
Outdated
There was a problem hiding this comment.
I'd prefer breakAction to 'continueAction'.
Continue, to me, implies that it's part of a pause/continue kind of functionality, not early quit.
5b304a1 to
c7e9233
Compare
|
Agree with @laanwj, changed |
c7e9233 to
b96ce7d
Compare
b96ce7d to
542ce6e
Compare
|
ACK 542ce6e |
…ess 'q' 542ce6e Report [CANCELLED] instead of [DONE] when shut down during txdb upgrade (Jonas Schnelli) 83fbea3 Report txdb upgrade not more often then every 10% (Jonas Schnelli) 06c5b6e Show txdb upgrade progress in debug log (Jonas Schnelli) 316fcb5 Allow to cancel the txdb upgrade via splashscreen callback (Jonas Schnelli) ae09d45 Allow to shut down during txdb upgrade (Jonas Schnelli) 00cb69b [Qt] allow to execute a callback during splashscreen progress (Jonas Schnelli) Tree-SHA512: 23190f23f441bfd60821e49f8b3698a6bef97eb0e0ee659328e4a7395769ecd1616420eacc38aa1fa0ff62b9de5f13a0098dc798cdec6bff649575cefebc0db2
|
utACK with the changes at #10770. |
…n keypress 'q' 542ce6e Report [CANCELLED] instead of [DONE] when shut down during txdb upgrade (Jonas Schnelli) 83fbea3 Report txdb upgrade not more often then every 10% (Jonas Schnelli) 06c5b6e Show txdb upgrade progress in debug log (Jonas Schnelli) 316fcb5 Allow to cancel the txdb upgrade via splashscreen callback (Jonas Schnelli) ae09d45 Allow to shut down during txdb upgrade (Jonas Schnelli) 00cb69b [Qt] allow to execute a callback during splashscreen progress (Jonas Schnelli) Tree-SHA512: 23190f23f441bfd60821e49f8b3698a6bef97eb0e0ee659328e4a7395769ecd1616420eacc38aa1fa0ff62b9de5f13a0098dc798cdec6bff649575cefebc0db2
…n keypress 'q' 542ce6e Report [CANCELLED] instead of [DONE] when shut down during txdb upgrade (Jonas Schnelli) 83fbea3 Report txdb upgrade not more often then every 10% (Jonas Schnelli) 06c5b6e Show txdb upgrade progress in debug log (Jonas Schnelli) 316fcb5 Allow to cancel the txdb upgrade via splashscreen callback (Jonas Schnelli) ae09d45 Allow to shut down during txdb upgrade (Jonas Schnelli) 00cb69b [Qt] allow to execute a callback during splashscreen progress (Jonas Schnelli) Tree-SHA512: 23190f23f441bfd60821e49f8b3698a6bef97eb0e0ee659328e4a7395769ecd1616420eacc38aa1fa0ff62b9de5f13a0098dc798cdec6bff649575cefebc0db2
Progress calc credit: @sipa
This PR will accomplish three things:
2017-06-23 07:49:55 Upgrading utxo-set database...2017-06-23 07:49:55 [0%]...[0%]...[13%]...[25%]...[39%]...[52%]...[63%]...[76%]...[90%]...[DONE].qin splash screen to shutdown.Let me explain why keypress instead of buttons:
The current splash screen is a drawn pixmap. Adding buttons there will require a complete re-design of the splashscreen (should be done once). It should be an auto-resizing QWidget as used in the other layout situations.
For getting a UTXO-upgrade abort into 0.15, this solution may be acceptable.