Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make less likely to spend coinbase #3

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

ClaytonNorthey92
Copy link
Contributor

@ClaytonNorthey92 ClaytonNorthey92 commented Feb 26, 2024

Summary
prior, upon investigating full network e2e tests, I was seeing the following:

  • in e2e tests, we were often hitting the following error: bfg: bad-txns-premature-spend-of-coinbase, tried to spend coinbase at depth N

Changes

  • generate 5000 blocks to start full network e2e test + add retry to tests in case we still try a premature spend of coinbase
  • more clear ordering of checks

fixes #2

@ClaytonNorthey92 ClaytonNorthey92 force-pushed the clayton/no-coinbase branch 5 times, most recently from d0f7e69 to 0b970ab Compare February 26, 2024 18:30
@ClaytonNorthey92 ClaytonNorthey92 changed the title don't generate coinbase to address under test make less likely to spend coinbase in e2e tests Feb 26, 2024
@ClaytonNorthey92 ClaytonNorthey92 changed the title make less likely to spend coinbase in e2e tests small pop miner fixes Feb 26, 2024
@ClaytonNorthey92 ClaytonNorthey92 changed the title small pop miner fixes small pop miner and test fixes Feb 26, 2024
@ClaytonNorthey92 ClaytonNorthey92 changed the title small pop miner and test fixes small pop tx parsing and test fixes Feb 26, 2024
@ClaytonNorthey92 ClaytonNorthey92 marked this pull request as ready for review February 26, 2024 19:37
@ClaytonNorthey92 ClaytonNorthey92 added area: test This adds or improves test coverage size: S This change is small (+/- <80) area: bfg This is a change to BFG (Bitcoin Finality Governor) labels Feb 26, 2024
@ClaytonNorthey92 ClaytonNorthey92 force-pushed the clayton/no-coinbase branch 3 times, most recently from fa49615 to 5ae49b6 Compare February 27, 2024 19:37
@ClaytonNorthey92
Copy link
Contributor Author

closing for #12

@ClaytonNorthey92
Copy link
Contributor Author

actually, re-opening in case the other takes longer than expected

* generate 5000 blocks to start network test, to make it less likely that we will choose a premature utxo
* give time for l2 keystone to be mined

fixes #2
@ClaytonNorthey92 ClaytonNorthey92 changed the title small pop tx parsing and test fixes make less likely to spend coinbase Feb 28, 2024
Copy link
Contributor

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

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

OK

@ClaytonNorthey92 ClaytonNorthey92 merged commit 7875a89 into main Feb 28, 2024
2 checks passed
@ClaytonNorthey92 ClaytonNorthey92 deleted the clayton/no-coinbase branch February 28, 2024 17:48
web3cryptoguy pushed a commit to web3cryptoguy/heminetwork that referenced this pull request Nov 1, 2024
* generate 5000 blocks to start network test, to make it less likely that we will choose a premature utxo
* give time for l2 keystone to be mined

fixes hemilabs#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: bfg This is a change to BFG (Bitcoin Finality Governor) area: test This adds or improves test coverage size: S This change is small (+/- <80)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure e2e network tests can't spend coinbase
3 participants