-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Link and activate preconfirmations and add integrations tests #2848
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
Merged
Merged
Changes from all commits
Commits
Show all changes
105 commits
Select commit
Hold shift + click to select a range
66291e2
Add preconfirmations integrations tests
AurelienFT 7876706
WIP
MitchTurner 1e27960
Add basic trait for adding delegate key
MitchTurner 8b3eb35
Add tests for verifying incoming preconfirmation signatures
MitchTurner 136ff89
Include test for tracking preconfirmations that return too early for …
MitchTurner 37579b6
Cleanup
MitchTurner af74f22
Update CHANGELOG
MitchTurner 515eb57
Merge branch 'master' into create_tests_preconfirmations
AurelienFT b35f3ab
Introduce the 'final transaction status' concept
a9306a8
Do not close status change stream for preconfirmation statuses
986aab9
Update tx status flow test
53a80cb
Merge remote-tracking branch 'upstream/master' into rafal/2852/final_…
e9c3322
Cleanup
9923885
Update changelog
932b524
Update schema
fdd2dc6
Merge branch 'master' into feature/pre-confirmations/implement-signat…
MitchTurner a0b531f
Add basic impl
MitchTurner c056e36
Fix trait method signature
MitchTurner 6683c41
Merge branch 'master' into feature/pre-confirmations/implement-signat…
xgreenx d03be7a
Add three tests and implementations
MitchTurner d40a62a
Merge branch 'feature/pre-confirmations/implement-signature-verificat…
MitchTurner 88f80a5
Add test for signature verification
MitchTurner 19368a9
add expiration checks
MitchTurner 4021a6d
add test for allowing multiple delegate keys
MitchTurner d92672b
Convert to hashmap
MitchTurner e8975e4
Update CHANGELOG
MitchTurner 345209a
Fix spelling
MitchTurner b26bbd3
Update crates/services/tx_status_manager/src/service.rs
MitchTurner 0da28a2
Merge branch 'feature/pre-confirmations/implement-signature-verificat…
MitchTurner cc7f764
Merge remote-tracking branch 'upstream/master' into rafal/2852/final_…
f72b1ac
`PreConfirmationSqueezedOut` is considered final
05e5672
Update crates/client/src/client/types.rs
rafal-ch 78e950b
Merge remote-tracking branch 'upstream/master' into rafal/2852/final_…
804905a
Merge branch 'master' into create_tests_preconfirmations
AurelienFT 2a10fa8
Merge branch 'feature/pre-confirmations/signature-verification-adapto…
AurelienFT 8769da7
Merge branch 'master' into feature/pre-confirmations/implement-signat…
AurelienFT a5ed7e3
Merge branch 'feature/pre-confirmations/implement-signature-verificat…
AurelienFT 432e13d
Merge branch 'feature/pre-confirmations/signature-verification-adapto…
AurelienFT 310a9d1
Add compiling versions of the links
AurelienFT 8414618
Add connection between tx status manager and executor
AurelienFT 1fff6ed
Merge branch 'rafal/2852/final_transaction_clean' into create_tests_p…
AurelienFT 8605d95
Update some tests, some are passing now.
AurelienFT 2aa4cb6
Simplify some tests
AurelienFT 06f851f
All graphql tests pass.
AurelienFT ddec644
Change txpool submitted status emission to be sure it's before the ex…
AurelienFT b954b9e
improve move of submitted
AurelienFT 329f7dd
remove trait and replace with concrete impl (#2869)
MitchTurner bdbc5fc
Merge branch 'master' into feature/pre-confirmations/implement-signat…
MitchTurner 169d5e8
Merge branch 'feature/pre-confirmations/implement-signature-verificat…
AurelienFT c1d432c
Update cargo lock
AurelienFT 50ccea7
Fix double creation of tx status manager
AurelienFT 9cec229
Update test and config
AurelienFT e09788c
Add args for preconfirmation signature service
AurelienFT 00c5627
Update test and feature gate
AurelienFT 3a55444
Fix non P2P fuel core bin
AurelienFT 2608505
Update preconfirmation args
AurelienFT 90e63a5
format and fix test compilation
AurelienFT d2c48f3
Update taking of status in subscription
AurelienFT 8e151a4
Update P2P tests
AurelienFT b7b3d6b
fix aws test
AurelienFT 7acb94e
Don't create signature service if signer is not available
AurelienFT 9375190
fix clippy
AurelienFT 8b6fb3d
change mock tx status manager in txpool
AurelienFT 296883a
Fix review comments
AurelienFT 6b3f9e0
Fix expected status when squeezed out in tests
AurelienFT ca8b939
Change preconfirmation key expiration frequency
AurelienFT 85b5afe
Merge branch 'master' into feature/pre-confirmations/implement-signat…
MitchTurner c159f56
Fix Tx status
AurelienFT 3212001
Merge branch 'feature/pre-confirmations/implement-signature-verificat…
AurelienFT a63358c
fix compil
AurelienFT f60f793
Use `ConsensusConfig` to get `PublicKey` (`Address` actually)
MitchTurner 7d44a66
Avoid DoS vector by removing `early_preconfirmations` concept and test
MitchTurner 8a0fdc8
Merge branch 'feature/pre-confirmations/implement-signature-verificat…
AurelienFT 068cde6
Merge branch 'master' into create_tests_preconfirmations
AurelienFT f1b7209
Try to make tests more stable
AurelienFT 165519d
Try without multi thread flavor
AurelienFT 5975caa
Merge branch 'master' into create_tests_preconfirmations
AurelienFT f305443
Revert tests changes and change max buffer size
AurelienFT 1d6e24c
Merge branch 'master' into create_tests_preconfirmations
AurelienFT 90513c8
Update crates/fuel-core/src/schema/tx.rs
AurelienFT 4e05e84
Merge branch 'master' into create_tests_preconfirmations
MitchTurner 37c6339
Change creation of sub service signature to avoid block_on and follow…
AurelienFT d99d8af
Commit
AurelienFT 4837e7d
Move transaction status to a specific file to make it no-std compliant
AurelienFT d7d366c
Improve preconfirmation notification to the consensus
AurelienFT 75fa454
Merge branch 'master' into create_tests_preconfirmations
AurelienFT 7d37bd0
Fix send usage
AurelienFT 30ee449
Revert back the change with the fix for `clone` of `Preconfirmation`.…
xgreenx 94c0aae
Only inform subscribers about squeezed out tx if the source is the user
xgreenx fc5f4c2
Use Open block production for the preconfigmration gossipsub tests
xgreenx 47d6d38
Merge branch 'master' into create_tests_preconfirmations
AurelienFT d03eff7
sort toml
AurelienFT 458a5c3
Update status update to work when transaction comes from p2p but not …
AurelienFT 027ec28
Update consensus module tests
AurelienFT 83cb172
Update signature verification to sign what is actually being verified
AurelienFT be4d667
Update preconfirmation with concrete type to allow creation of the co…
AurelienFT 3672c77
Merge branch 'master' into create_tests_preconfirmations
AurelienFT 5c90e7e
Update broadcast tests compilation
AurelienFT 3871534
Merge branch 'create_tests_preconfirmations' of github.com:FuelLabs/f…
AurelienFT 767cb54
fix compil
AurelienFT bf44468
Putting `nonce` into delegation body invalidates signature, so moved …
xgreenx f56827d
Merge branch 'master' into create_tests_preconfirmations
xgreenx 95899dd
added a test open block production
AurelienFT 13849d8
Merge branch 'master' into create_tests_preconfirmations
AurelienFT f9f728e
Add another test
xgreenx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Link all components of preconfirmations and add E2E tests. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
bin/fuel-core/src/cli/run/preconfirmation_signature_service.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #[derive(Debug, Clone, clap::Args)] | ||
| pub struct PreconfirmationArgs { | ||
| /// The frequency at which we rotate the preconfirmation sub-key | ||
| #[clap( | ||
| long = "preconfirmation-key-rotation-frequency", | ||
| env, | ||
| default_value = "10m" | ||
| )] | ||
| pub key_rotation_interval: humantime::Duration, | ||
| /// The frequency at which the preconfirmation sub-key expires | ||
| #[clap( | ||
| long = "preconfirmation-key-expiration-frequency", | ||
| env, | ||
| default_value = "20m" | ||
| )] | ||
| pub key_expiration_interval: humantime::Duration, | ||
| /// The frequency at which the preconfirmation sub-key is echoed to the network | ||
| #[clap( | ||
| long = "preconfirmation-echo-delegation-frequency", | ||
| env, | ||
| default_value = "10s" | ||
| )] | ||
| pub echo_delegation_interval: humantime::Duration, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.