Skip to content

Conversation

achow101
Copy link
Member

Backport of #21377 and #21686

ajtowns added 4 commits April 15, 2021 12:03
The intent here is to allow checking ComputeBlockVersion behaviour with
each deployment, rather than only testdummy on mainnet. This commit does
the trivial refactoring component of that change.

Github-Pull: bitcoin#21377
Rebased-From: 63879f0
This generalises the ComputeBlockVersion test so that it can apply to
any activation parameters we might set, and checks all the parameters
set for each deployment on each chain, to simultaneously ensure that the
deployments we have configured work sensibly, and that the test code
does not suffer bitrot in the event that all interesting deployments
are buried.

Github-Pull: bitcoin#21377
Rebased-From: 5932744
Simplify the versionbits unit test slightly to make the next set of
changes a little easier to follow.

Github-Pull: bitcoin#21377
Rebased-From: 9e6b65f
@achow101 achow101 changed the title [0.2] Speedy trial activation for Taproot [0.21] Speedy trial activation for Taproot Apr 15, 2021
@Sjors
Copy link
Member

Sjors commented Apr 15, 2021

tACK 724e494 on Ubuntu

I verified as follows:

git checkout origin/0.21
git checkout -b speedy-trial-backport
git cherry-pick 63879f0a4760c0c0f784029849cb5d21ee088abb^..ffe33dfbd4c3b11e3475b022b6c1dd077613de79
git cherry-pick f979b3237f1cfc28f9c4ccb07beab558d5357a55
git diff 724e4948004c8127f093db90f9d78e6ed9e46541
src/test/test_bitcoin --run_test=versionbits_tests

Git diff only shows a difference in the trailing U for this test (presumably related to #21701 (comment)): BOOST_CHECK_EQUAL(mainnetParams.vDeployments[i].min_activation_height, 0U);

I had manually resolve a conflict for dd07e6d.

I also managed to spin up the node and see the softfork as "defined" in getblockchaininfo.


I'm unable to reproduce the CI failure on macOS 11.2.3 with homebrew Boost 1.75.0. It doesn't happen for me with depends either.

@achow101
Copy link
Member Author

I don't know why CI is having a hard time building this. I am able to do a gitian build of this branch, so it should be working.

Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

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

These 3 changes will fix the failing CIs.

ajtowns and others added 6 commits April 15, 2021 20:58
Previously we used deployments that would timeout prior to Bitcoin's
invention, which allowed the deployment to still be activated in unit
tests. This switches those deployments to be truly never active.

Github-Pull: bitcoin#21377
Rebased-From: 55ac5f5
This removes the DEFINED->FAILED transition and changes the
STARTED->FAILED transition to only occur if signalling didn't pass the
threshold. This ensures that it is always possible for activation to
occur, no matter what settings are chosen, or the speed at which blocks
are found.

Github-Pull: bitcoin#21377
Rebased-From: f054f6b
@instagibbs
Copy link
Member

cherry-pick ACK cbd64c3

@jnewbery
Copy link
Contributor

ACK cbd64c3

Repeated the rebase/cherry-pick myself and the only differences were the unsigned/signed fixups here: #21701 (review).

@Sjors
Copy link
Member

Sjors commented Apr 16, 2021

tACK cbd64c3

@maflcko
Copy link
Member

maflcko commented Apr 16, 2021

cherry-pick-only ACK cbd64c3 🌾

Show signature and timestamp

Signature:

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

cherry-pick-only ACK cbd64c3a28a7466f421477daadc6e6e6b69b898a 🌾
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUiVXAwAm+m81VxCGAQs/vB2ZvE43rHYlW8QBpQbRB4ckkjnmXxSoNJipajP02Je
3CwjtSrxS9A0Dam8u4D3BHHdYyyT/UJF02JJMNEzTlO9b2OW5v0SrGZqGGIxSluC
oltxBDg5ry3tHSs4Zkm2o71je9L00ZgOMQD4Yan5yOCVmCVWfIaBFR3oXhL/pdhr
0UrlkPWPuF3h2Lt7dqEqhd3/rZzV7dtMK0tBqX7B7IE8sX/g5qvEIAAnstn6jJeN
rYbTwEkVMKDstIvonGa1EcMAr4TMay2V1h+q53JNvAmqkIj+8nZvH/5hbpnVNuTg
CivIvZKffc3C+4cigKsiJSHcT9vAeK6K/C5MW5G/9uio1kqdZq7McA3my7AmlDN5
e3jtTBDIUN/BMhOiizS1iYsqwHZjF4qPdfySxgDPw4Z49toee2ziN0BMv9NTrKc6
WI5hPKFG38l8O4YHO6tyCRJfVJuoP2ByhGiU7/pTJO0NvKnRh+Wma3kRa61sTbrl
cfriU22f
=gYxK
-----END PGP SIGNATURE-----

Timestamp of file with hash 1d1c8419f375b140d9bb77c1f31aa2bb76a54e095fe73d7ba926604fb50abc88 -

@maflcko maflcko merged commit e3b76b6 into bitcoin:0.21 Apr 16, 2021
@ajtowns
Copy link
Contributor

ajtowns commented Apr 16, 2021

Post-merge ACK cbd64c3 -- checked fuzzer compiles at each step, visually compared new patches with originals, checked original patches are in master

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants