-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Integrate with V1 algo for tests #2469
Draft
MitchTurner
wants to merge
174
commits into
master
Choose a base branch
from
chore/add-tests-for-v1-gas-service
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 170 commits
Commits
Show all changes
174 commits
Select commit
Hold shift + click to select a range
448d8c2
Remove height parameter, change tests
MitchTurner c5866a3
Modify to take vec instead of range
MitchTurner c54f098
Add tests to make sure it is sane
MitchTurner fcf4477
Rename variable
MitchTurner 159d5b4
Fix analyzer
MitchTurner ba080ff
Rename some params
MitchTurner d2b3c28
Use slice instead of vec
MitchTurner 128a9ba
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner 5f19932
Cleanup code a bit
MitchTurner 922f3e0
Update crates/fuel-gas-price-algorithm/src/v1/tests/update_da_record_…
MitchTurner d7e9bdd
Pick nit
MitchTurner 12c517e
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner f8dca06
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner 2bb86fe
Optimize projected calc by caching running total
MitchTurner 60771e9
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner 03da963
Fix analyzer
MitchTurner ea14e6f
Simplify metadata
MitchTurner b615b33
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner cfd1a71
Merge remote-tracking branch 'origin' into feature/allow-DA-blocks-to…
MitchTurner d983891
Resolve logical conflicts from merge
MitchTurner 4c2b844
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner 1836656
WIP
MitchTurner 48fe978
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner 18fefb7
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner b15a93f
Get compiling
MitchTurner 279191c
Start adding tests
MitchTurner 63b0266
Get existing tests passing
MitchTurner 477c731
WIP
MitchTurner b578a8e
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner 7ca55c7
Ignore entire batches with blocks not in the unrecorded_blocks
MitchTurner 6ac41de
Add comments to explain unexpected behavior
MitchTurner f2af4aa
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner 4e07415
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner cc90cbd
Fix tracing messages to be emitted at the right time
MitchTurner 11df7ae
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner 7ac01aa
Fix logic to always remove recorded blocks, use predicted cost as bes…
MitchTurner ca6e1e5
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner 2592ad0
Update CHANGELOG
MitchTurner eb233ab
Remove some TODOs
MitchTurner d32b347
Remove other todo
MitchTurner 9f78fa6
Add tests, fix bad bug
MitchTurner 6b9969c
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner fc8c427
Fix copy-paste errors
MitchTurner 87dc547
Fix broken tests
MitchTurner 008f5fb
Correct test, use trace instead of debug
MitchTurner a409e6e
Merge remote-tracking branch 'origin' into feature/init-task-for-v1-g…
MitchTurner 24d4a5d
Introduce unrecorded blocks abstraction without implementation
MitchTurner 9f6a649
Use fuel storage in impl
MitchTurner 1261c4d
Implement adapter
MitchTurner 58f749b
Add simple tests
MitchTurner f969e88
Fix test, update CHANGELOG
MitchTurner b2051ce
update comment
MitchTurner 68a21de
Make generic arg consistent
MitchTurner 9276cc9
Appease Clippy-sama
MitchTurner 3679422
Remove estra import
MitchTurner 2a06ec0
Merge branch 'master' into feature/init-task-for-v1-gas-price-service
MitchTurner b47a2ba
Integrate with V1 algo
MitchTurner 9fbdf1a
WIP add test
MitchTurner f7f60cd
Add working fake http server
MitchTurner 1598c2d
WIP add new config values
MitchTurner 434f764
WIP
MitchTurner 6af9589
Restructure the algo methods to accomodate storage txs
MitchTurner b9d6571
Update crates/services/gas_price_service/src/v0/service.rs
MitchTurner 770998e
WIP
MitchTurner 0c4640e
Simplify generic constraints
MitchTurner 309d2cb
Merge branch 'feature/init-task-for-v1-gas-price-service', remote-tra…
MitchTurner 5d5d48b
WIP adding transactionable storage
MitchTurner 3c0a0ff
WIP fixing lifetime issues
MitchTurner 36bbb4d
Incremental improvements to compiler errors
MitchTurner 1447d90
Fix compilation errors with lifetimes
MitchTurner 755f7b0
Add passing test
MitchTurner 05ddee6
Fix another test
MitchTurner d9bbe36
Fix another test
MitchTurner b70b2eb
Fix remaining test
MitchTurner f443289
Merge branch 'master' into feature/init-task-for-v1-gas-price-service
MitchTurner 921b6e2
Merge branch 'feature/init-task-for-v1-gas-price-service' into chore/…
MitchTurner 8009b07
Remove commented code
MitchTurner 0bb7e7a
More cleanup
MitchTurner ed9dab4
Remove unused dep
MitchTurner 6c5df4c
Update CHANGELOG
MitchTurner a6caf6c
Add test for updating sequence number
MitchTurner 5dcfcb7
Add test for reading sequence number
MitchTurner a587b8a
Separate traits out into get and set traits
MitchTurner 37235ae
Fix broken test
MitchTurner 96f6b9d
Cleanup extra code, remove unused imports, hide imlementations.
MitchTurner ecaef18
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner 95f85f5
Fix compilation
MitchTurner eb91ceb
Use `ServiceRunner` for da service
MitchTurner ae9605d
WIP debugging test
MitchTurner f43f00d
Merge branch 'master' into feature/init-task-for-v1-gas-price-service
MitchTurner e80edd5
Merge branch 'feature/init-task-for-v1-gas-price-service' into chore/…
MitchTurner 1d195b9
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner 51d41c7
Correct typo
MitchTurner 17a56d3
Merge branch 'feature/init-task-for-v1-gas-price-service' into chore/…
MitchTurner 9905022
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner a642cb7
Use relevant config for v1 constructor
MitchTurner 8b027b9
Merge branch 'feature/init-task-for-v1-gas-price-service' into chore/…
MitchTurner abf0cca
Add todo
MitchTurner 2469bf8
Merge remote-tracking branch 'origin' into chore/add-unrecorded-block…
MitchTurner 288f51f
Add missed things
MitchTurner 00daced
Merge branch 'master' into chore/add-unrecorded-blocks-trait
MitchTurner 9fe913c
Remove extra code from merge
MitchTurner 76917d8
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner 2de6505
Update CHANGELOG
MitchTurner 368b939
Add missing PR number
MitchTurner 009a847
Merge branch 'master' into chore/add-unrecorded-blocks-trait
MitchTurner d3c826b
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner 86c3e2e
Lint cargo.toml
MitchTurner 6291999
Use clearer types in storage definitions, fix init code
MitchTurner 2eba245
Suggestions to simplify the V1 storage requirements and initializatio…
xgreenx 0226aae
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner 33aa291
Additional merging changes
MitchTurner 498c2ad
Get first test passing
MitchTurner 6f46343
Simplify test
MitchTurner 3496adc
Add another messy test, fix bug in activity code
MitchTurner 0c5ab28
WIP add dynamic test
MitchTurner f2abd4d
Make sane
MitchTurner 1b74ff5
Small simplificaitons
xgreenx 287f50f
Remove comment
MitchTurner 986c6c6
Fix the setting of the sequence number
MitchTurner ffce782
Format
MitchTurner 4fc7184
Remove comment, move mutation, rename field
MitchTurner ee1c886
Fix compilation
MitchTurner 43e19f2
Appease Clippy-sama
MitchTurner 9ed0172
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner 198a07e
Rewrite server to be more dynamic
MitchTurner eae3add
Cleanup test a lot
MitchTurner 8c6092b
Fix annoying little bug
MitchTurner b82f354
Add more helpful messages
MitchTurner 93876fa
Rename sequence number to bundle id
MitchTurner 398ecec
Merge branch 'master' into chore/add-unrecorded-blocks-trait
MitchTurner 2a77ef6
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner 9218c32
Fix simulation
MitchTurner 599e358
Remove logging
MitchTurner e29a62e
Merge remote-tracking branch 'origin' into chore/add-tests-for-v1-gas…
MitchTurner 5584731
Clean up code
MitchTurner f588485
Fix _bug_ that was really just a high min gas price
MitchTurner 78bfa55
Merge branch 'master' into chore/add-tests-for-v1-gas-service
MitchTurner 3f6584d
fmt
MitchTurner 9876ebb
Remove test
MitchTurner de1aaa7
Remove drop
MitchTurner 30339bb
Fix test to use smaller txs and be more precise about costs
MitchTurner 9f3f5fc
More fiddling
MitchTurner 9f855c9
More fiddling
MitchTurner c770613
Fix test
MitchTurner 39e9e97
Add some tests, fix the storage tx in init task
MitchTurner 5c06f5f
Change base values
MitchTurner b958ebc
Fix syncing bug by removing redundant updater
MitchTurner 6d881d3
chore: killed stale dead tests
netrome 64108ce
fix: Increase exec gas price if threshold is met
netrome 2f8100f
Add failing backward compatibility test
MitchTurner 78f5b94
Fix algo compatibility test
MitchTurner 084f1b7
chore(gas_price_service_v1): allow stopping the service during sync w…
rymnc 108aa0d
fix(gas_price_service_v1): block committer api format (#2506)
rymnc 15c26f0
Remove test used for debugging
MitchTurner 0dc2dc7
Use backward-compatible V0 metadata
MitchTurner ea02c59
Chore/non breaking cli arguments with sensible defaults (#2507)
netrome c4a42dc
fix(gas_price_service_v1): ensure that the algo updater is synced to …
rymnc a4e65f0
Merge branch 'master' into chore/add-tests-for-v1-gas-service
rymnc b6a29ae
fix: fmt
rymnc bb007d3
chore: add backward compatibility test for db storage
rymnc eb202cf
test: produce blocks so that the metadata is upgraded
rymnc c29dae7
Add tests for cost recording
MitchTurner 2469fb4
Merge remote-tracking branch 'origin' into chore/add-tests-for-v1-gas…
MitchTurner 2217670
Merge branch 'master' into chore/add-tests-for-v1-gas-service
MitchTurner b380e99
Fix test
MitchTurner bc983cb
Cleanup mess from debugging
MitchTurner 4ed9ec1
Merge branch 'master' into chore/add-tests-for-v1-gas-service
MitchTurner 4a21da4
Remove unused imports, reconstitute test
MitchTurner a7eaa32
Lint toml file
MitchTurner 31fd51f
Fix for DA L2 sync race condition (#2512)
MitchTurner 8d12301
Merge branch 'master' into chore/add-tests-for-v1-gas-service
rymnc 6ea6a5c
fix: default da poll interval to be higher than 10ms
rymnc ae40ee4
feat(gas_price_service_v1): include `max_da_gas_price` to control vol…
rymnc 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 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 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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.
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 is a breaking change