Skip to content

Commit 04c004c

Browse files
authored
Merge branch 'master' into 2585-fault_provingglobal_roots-populate-uploadedbytecodes-table
2 parents 6f71426 + cf23e4b commit 04c004c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+691
-131
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- [2648](https://github.com/FuelLabs/fuel-core/pull/2648): Add feature-flagged field to block header `fault_proving_header` that contains a commitment to all transaction ids.
12+
913
## [Version 0.41.6]
1014

1115
### Added

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ cynic = { version = "3.1.0", features = ["http-reqwest"] }
107107
clap = "4.4"
108108
derivative = { version = "2" }
109109
derive_more = { version = "0.99" }
110+
enum_dispatch = "0.3.13"
110111
enum-iterator = "1.2"
111112
hex = { version = "0.4", features = ["serde"] }
112113
hyper = { version = "0.14.26" }

benches/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ name = "vm"
6565

6666
[features]
6767
default = ["fuel-core/rocksdb", "fuel-core/rocksdb-production"]
68+
fault-proving = [
69+
"fuel-core-types/fault-proving",
70+
"fuel-core-chain-config/fault-proving",
71+
"fuel-core/fault-proving",
72+
"fuel-core-storage/fault-proving",
73+
"fuel-core-database/fault-proving",
74+
"fuel-core-sync/fault-proving",
75+
]
6876

6977
[[bench]]
7078
harness = false

benches/src/db_lookup_times_utils/seed.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ fn generate_bench_block(
6565
let txs = generate_bench_transactions(tx_count);
6666
let block = PartialFuelBlock::new(header, txs);
6767
block
68-
.generate(&[], Default::default())
68+
.generate(
69+
&[],
70+
Default::default(),
71+
#[cfg(feature = "fault-proving")]
72+
&Default::default(),
73+
)
6974
.map_err(|err| anyhow!(err))
7075
}
7176

bin/fuel-core/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,11 @@ production = [
8282
"parquet",
8383
"aws-kms",
8484
]
85-
fault-proving = ["fuel-core-compression/fault-proving"]
8685
parallel-executor = ["fuel-core/parallel-executor"]
86+
fault-proving = [
87+
"fuel-core-compression/fault-proving",
88+
"fuel-core-storage/fault-proving",
89+
"fuel-core-types/fault-proving",
90+
"fuel-core-chain-config/fault-proving",
91+
"fuel-core/fault-proving",
92+
]

crates/chain-config/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,7 @@ test-helpers = [
6363
"fuel-core-types/random",
6464
"fuel-core-types/test-helpers",
6565
]
66+
fault-proving = [
67+
"fuel-core-types/fault-proving",
68+
"fuel-core-storage/fault-proving",
69+
]

crates/chain-config/src/config/randomize.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,19 @@ impl Randomize for CompressedBlock {
201201
fn randomize(mut rng: impl rand::Rng) -> Self {
202202
let tx1: Transaction = Randomize::randomize(&mut rng);
203203
let tx2: Transaction = Randomize::randomize(&mut rng);
204+
let default_chain_id = ChainId::default();
204205

205-
let tx_ids = vec![tx1.id(&ChainId::default()), tx2.id(&ChainId::default())];
206+
let tx_ids = vec![tx1.id(&default_chain_id), tx2.id(&default_chain_id)];
206207

207208
Self::test(
208209
PartialBlockHeader::default()
209-
.generate(&[tx1, tx2], &[], rng.gen())
210+
.generate(
211+
&[tx1, tx2],
212+
&[],
213+
rng.gen(),
214+
#[cfg(feature = "fault-proving")]
215+
&default_chain_id,
216+
)
210217
.expect("The header is valid"),
211218
tx_ids,
212219
)

crates/client/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ std = ["fuel-core-types/std"]
4949
default = ["subscriptions", "std"]
5050
test-helpers = []
5151
subscriptions = ["base64", "eventsource-client", "futures", "hyper-rustls"]
52+
fault-proving = ["fuel-core-types/fault-proving"]

crates/client/assets/schema.sdl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,15 @@ type Header {
566566
Hash of the application header.
567567
"""
568568
applicationHash: Bytes32!
569+
"""
570+
Transaction ID Commitment
571+
"""
572+
txIdCommitment: Bytes32
569573
}
570574

571575
enum HeaderVersion {
572576
V1
577+
V2
573578
}
574579

575580
type HeavyOperation {

0 commit comments

Comments
 (0)