-
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
bug: fix algorithm overflow issues #2173
Merged
Merged
Changes from 23 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
889618c
Add abstraction for da costs
MitchTurner 3911903
Remove generated chart
MitchTurner a300b02
Refactor
MitchTurner af9a072
WIP add csv reader
MitchTurner 3601cd1
Modify units to accomodate bigger values
MitchTurner 6d90d66
Refactor
MitchTurner 0037ca5
Create directory if doesn't exist
xgreenx d75a0d2
Merge branch 'master' into feature/allow-predefined-blob-tx-costs
MitchTurner 17582b8
Move da cost calc stuff to its own mod
MitchTurner a92e090
Appease Clippy-sama
MitchTurner 6a53157
Add results, fix gitignore
MitchTurner f8573e2
Rename function, fix iterators, add other PR review suggestions
MitchTurner 6452ae1
Merge branch 'master' into feature/allow-predefined-blob-tx-costs
MitchTurner 0b6fcd0
empty commit to bump CI
MitchTurner e541435
Add one passing test
MitchTurner 1836a24
Improve documentation for simulation code
MitchTurner 2286da4
Revert "Improve documentation for simulation code"
MitchTurner af7391b
Fix dumb bug in simulation
MitchTurner 2912ea9
Parallelize optimization a bit
MitchTurner b709b5a
Fix a bunch of casts and conversions
MitchTurner 3141914
Fix warnings
MitchTurner ab5b9dd
Appease Clippy-sama
MitchTurner 412bc95
Merge remote-tracking branch 'origin' into bug/fix-algorithm-giving-u…
MitchTurner 1857fe2
Improve documentation for simulation code
MitchTurner 06d37e8
Add better testing with proptests :)
MitchTurner fcfd024
Lint toml
MitchTurner c26ca94
Update crates/fuel-gas-price-algorithm/src/v1/tests/update_da_record_…
MitchTurner ce9c0ba
Update crates/fuel-gas-price-algorithm/src/v1.rs
MitchTurner 88af11d
Update crates/fuel-gas-price-algorithm/src/v1.rs
MitchTurner c2ce485
Update crates/fuel-gas-price-algorithm/src/v1.rs
MitchTurner 7f4f785
Clarify percentage types
MitchTurner 13693ef
Add newtype for threshold percentage
MitchTurner 604279b
Use more arbitrary number, reduce feature deps for tokio
MitchTurner a4eff83
Merge branch 'master' into bug/fix-algorithm-giving-up-2164
MitchTurner 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ pub fn get_da_cost_per_byte_from_source( | |
} | ||
} | ||
|
||
#[allow(dead_code)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where do we use it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's used in CSV reader. |
||
#[derive(Debug, serde::Deserialize)] | ||
struct Record { | ||
block_number: u64, | ||
|
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.
It is better to not use
full
if you only need something specific=)