-
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
fault_proving(global_roots): Populate Blobs
table
#2667
fault_proving(global_roots): Populate Blobs
table
#2667
Conversation
2bc87dd
to
5db1b99
Compare
|
||
// Given | ||
let blob = vec![1, 3, 3, 7]; | ||
let blob_id = BlobId::compute(&blob); |
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.
what happens when we already have a blob that already exists? should we throw an error or just overwrite it?
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.
I don't know the current behavior of the node (whether we allow duplicate blobs or not), but here we should only receive valid transactions. Since blobs are content-addressed it doesn't really matter. We could probably just ignore it, since we already have the blob stored. The behavior should only matter if we have hash collisions, which in practice doesn't happen afaik.
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.
minor non-blocking question, lgtm
f7b2d7a
to
b4ea7fa
Compare
## Version 0.41.6 ### Added - [2668](#2668): Expose gas price service test helpers - [2621](#2598): Global merkle root storage updates process upgrade transactions. - [2650](#2650): Populate `ProcessedTransactions` table in global merkle root storage. - [2667](#2667): Populate `Blobs` table in global merkle root storage. - [2652](#2652): Global Merkle Root storage crate: Add Raw contract bytecode to global merkle root storage when processing Create transactions. ### Fixed - [2673](#2673): Change read behavior on the InMemoryTransaction to use offset and allow not equal buf size (fix CCP and LDC broken from FuelLabs/fuel-vm#847)
closes #2586