Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: support for Bitcoin RBF (Replace-By-Fee) and CPFP (Child-Pays-for-Parent) #3306
base: develop
Are you sure you want to change the base?
feat: support for Bitcoin RBF (Replace-By-Fee) and CPFP (Child-Pays-for-Parent) #3306
Changes from 20 commits
799a22b
e7cade5
3af0e09
1ad6628
7cd37e9
2cbc42a
7cb6118
f730749
5d993a6
e0845bd
5c15070
847e2f1
c507687
b991a37
cc6c258
6fd4335
dfb9f65
e03ba4b
5df65fb
f4d3fc8
0b954d0
24d12ae
86df3b0
728f697
104f372
03d737c
5c2a8ff
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not use init in e2e package why do we need this waitgroup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
TestBitcoinWithdrawRBFName
needs Bitcoin block generation to stop, so it has to run as the last Bitcoin E2E test after all others (so height stops growing). This is to allow the broadcasted outbound tx to be pending in the mempool for enough period of time. Otherwise, all mempool txs will be cleared on every new block and there is no chance to replace the tx.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic is opaque and brittle. Let's implement a common logic of test dependencies. e.g. "B can be invoked only after A passes"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To solve this, we simply need to:
E2ETest.Dependencies
[]string (e.g.[]string{TestBitcoinWithdrawRestrictedName}
)RunE2ETests
:[]string
and "completed tests"map[string]struct{}
run()
, otherwise skip and check later in the loopnode/e2e/runner/e2etest.go
Line 10 in 72dc5f0
node/e2e/runner/run.go
Line 8 in 7c70809
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clear that this is (a) related to BTC, (b) related to the mempool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use the following pattern:
This trick effectively allows callers to do this:
As a result, we will have a clear and easy-to-read testing library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment but for
type Zetacore string
. Also let's havectx, client, hash
args order for consistency