Skip to content
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

Use full hash for messages in inbox_root and add nonce to relayed transactions #1798

Merged
merged 7 commits into from
Apr 2, 2024

Conversation

Voxelot
Copy link
Member

@Voxelot Voxelot commented Apr 1, 2024

closes #1797

@Voxelot Voxelot requested a review from a team April 1, 2024 23:40
@MitchTurner
Copy link
Member

@xgreenx

We now have an id method and a message_id method for Message that give different values. Do we want to change the name of id to nonce?

@Voxelot Voxelot self-assigned this Apr 2, 2024
@Voxelot Voxelot enabled auto-merge (squash) April 2, 2024 00:17
@Voxelot Voxelot merged commit 293b525 into master Apr 2, 2024
27 checks passed
@Voxelot Voxelot deleted the Voxelot/da-event-improvements branch April 2, 2024 00:20
@@ -8,7 +8,7 @@ pub mod bridge {
MessageSent,
r#"[
event MessageSent(bytes32 indexed sender, bytes32 indexed recipient, uint256 indexed nonce, uint64 amount, bytes data)
event Transaction(uint64 max_gas, bytes canonically_serialized_tx)
event Transaction(uint256 indexed nonce, uint64 max_gas, bytes canonically_serialized_tx)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we created a corresponding issue/PR in the fuel-bridge?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xgreenx xgreenx mentioned this pull request Apr 4, 2024
xgreenx added a commit that referenced this pull request Apr 5, 2024
## Version v0.24.2

### Changed

#### Breaking
- [#1798](#1798): add nonce to
relayed transactions and also hash full messages in the inbox root.

### Fixed

- [#1802](#1802): Fixed a
runtime panic that occurred when restarting a node. The panic was caused
by an invalid database commit while loading an existing off-chain
database. The invalid commit is removed in this PR.
- [#1803](#1803): Produce
block when da height haven't changed.
- [#1795](#1795): Fixed the
building of the `fuel-core-wasm-executor` to work outside of the
`fuel-core` context. The change uses the path to the manifest file of
the `fuel-core-upgradable-executor` to build the
`fuel-core-wasm-executor` instead of relying on the workspace.

## What's Changed
* Weekly `cargo update` by @github-actions in
#1794
* Improvements for the `fuel-core-upgradable-executor` build script by
@xgreenx in #1795
* Use full hash for messages in inbox_root and add nonce to relayed
transactions by @Voxelot in
#1798
* Modify block producer to take into account the total gas used by the
L1 transactions by @MitchTurner in
#1785
* Fix: Produce block when da height haven't changed by @xgreenx in
#1803
* fix: Fix commit error on GraphQL service startup by @bvrooman in
#1802


**Full Changelog**:
v0.24.1...v0.24.2
GoldenPath1109 added a commit to GoldenPath1109/fuel-core that referenced this pull request Sep 7, 2024
## Version v0.24.2

### Changed

#### Breaking
- [#1798](FuelLabs/fuel-core#1798): add nonce to
relayed transactions and also hash full messages in the inbox root.

### Fixed

- [#1802](FuelLabs/fuel-core#1802): Fixed a
runtime panic that occurred when restarting a node. The panic was caused
by an invalid database commit while loading an existing off-chain
database. The invalid commit is removed in this PR.
- [#1803](FuelLabs/fuel-core#1803): Produce
block when da height haven't changed.
- [#1795](FuelLabs/fuel-core#1795): Fixed the
building of the `fuel-core-wasm-executor` to work outside of the
`fuel-core` context. The change uses the path to the manifest file of
the `fuel-core-upgradable-executor` to build the
`fuel-core-wasm-executor` instead of relying on the workspace.

## What's Changed
* Weekly `cargo update` by @github-actions in
FuelLabs/fuel-core#1794
* Improvements for the `fuel-core-upgradable-executor` build script by
@xgreenx in FuelLabs/fuel-core#1795
* Use full hash for messages in inbox_root and add nonce to relayed
transactions by @Voxelot in
FuelLabs/fuel-core#1798
* Modify block producer to take into account the total gas used by the
L1 transactions by @MitchTurner in
FuelLabs/fuel-core#1785
* Fix: Produce block when da height haven't changed by @xgreenx in
FuelLabs/fuel-core#1803
* fix: Fix commit error on GraphQL service startup by @bvrooman in
FuelLabs/fuel-core#1802


**Full Changelog**:
FuelLabs/fuel-core@v0.24.1...v0.24.2
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve fraud provability of da events
3 participants