Skip to content

Conversation

dongcarl
Copy link
Contributor

There are 2 proposed fixups in discussions in #23280 which I have not implemented:

  1. An overhaul to return types and an option type for the two *Chainstate functions: init: Coalesce Chainstate loading sequence between {,non-}unittest codepaths #23280 (comment)
    • The change reintroduces stringy return types and is quite involved. It could be discussed in a separate PR.
  2. Passing in the unix time to VerifyChainstate instead of a callback to get the time: init: Coalesce Chainstate loading sequence between {,non-}unittest codepaths #23280 (comment)
    • I'm not sure it matters much whether it's a callback or just the actual unix time. Also, I think VerifyDB can take quite a while, and I don't want to impose that the function have to "run quickly" in order to have it be correct.

If reviewers feel strongly about either of the two fixups listed above, please feel free to open a PR based on mine and I'll close this one!

@DrahtBot DrahtBot added the Tests label Dec 23, 2021
@maflcko maflcko removed the Tests label Dec 24, 2021
@maflcko maflcko changed the title Post-"Chainstate loading sequence coalescence" fixups refactor: Post-"Chainstate loading sequence coalescence" fixups Dec 24, 2021
@fanquake fanquake requested a review from jamesob December 26, 2021 06:59
Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK e3544c8

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK e3544c8 🐸

Show signature

Signature:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

ACK e3544c864e3e56867de25b8db7b012d58b378050 🐸
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUjGQQv+Nvv1zRWaWXIrwOzSvImTCAa1zNaRxiEbDL+L0/tLzKviDRoeB8jVrcvO
ZBzC6LKD1eHBBOz54EVMoNAzh72pbJfSFzF6EmVm13r3ydhm8je5WXi8PGOUQUvv
zpNvakUUf3nM64fIlq2r+GXRHmP7RmcDXsoNC3d6X3u/I73Mva/sm+M2aljAb0MM
YLE2Mat6eWLBtw1wzAkn/GS8r3qxQmGfyuZQRgRn3PcsJZkDTE96wMCSZAuIYCNb
/z+SV4QtmbN6+xwCQ0tPwYA19hkBvLJWPhEaDR5kIiiDKlgAFJpsqRBeb25K1Uc+
/AYXD/YAW+S+tOXqjtNo46eoN9U/Iq/OQkaP/EEBT8xUnaqGBZZxFA/4ucbx/WYq
P5C1VZ47vd2Cp72ckcrCv+ynRicFvL9T175sT1zijFsUQp/wQSpIOKGZ7RUvo7gQ
pR+Qy2pts7DlVTWpfLu9l+kyiLu5IDf+livi/Ahy9WS+K1C4t0S3JZxOJ6BrLxfD
UMV5AEjK
=Ddan
-----END PGP SIGNATURE-----

/*coins_db_in_memory=*/false,
/*shutdown_requested=*/ShutdownRequested,
/*coins_error_cb=*/[]() {
uiInterface.ThreadSafeMessageBox(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated: But I think this can just be InitError(...).

@maflcko maflcko merged commit 3917dff into bitcoin:master Jan 6, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jan 6, 2022
@bitcoin bitcoin locked and limited conversation to collaborators Jan 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants