Skip to content

Commit 11eb170

Browse files
committed
fix: add fork_depth to reconcile ledger with
1 parent 7d6e6a1 commit 11eb170

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

dpc/src/network/testnet1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ impl Network for Testnet1 {
134134
const ALEO_STARTING_SUPPLY_IN_CREDITS: i64 = 1_000_000_000;
135135
const ALEO_FUTURE_TIME_LIMIT_IN_SECS: i64 = 90;
136136

137+
const MAXIMUM_FORK_DEPTH: u32 = 4096;
138+
137139
type InnerCurve = Bls12_377;
138140
type InnerScalarField = <Self::InnerCurve as PairingEngine>::Fr;
139141

dpc/src/network/testnet2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ impl Network for Testnet2 {
140140
const ALEO_STARTING_SUPPLY_IN_CREDITS: i64 = 1_000_000_000;
141141
const ALEO_FUTURE_TIME_LIMIT_IN_SECS: i64 = 90;
142142

143+
const MAXIMUM_FORK_DEPTH: u32 = 4096;
144+
143145
type InnerCurve = Bls12_377;
144146
type InnerScalarField = <Self::InnerCurve as PairingEngine>::Fr;
145147

dpc/src/traits/network.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ pub trait Network: 'static + Copy + Clone + Debug + Default + PartialEq + Eq + S
155155
/// The maximum future block time.
156156
const ALEO_FUTURE_TIME_LIMIT_IN_SECS: i64;
157157

158+
/// The maximum number of blocks that a fork can be.
159+
const MAXIMUM_FORK_DEPTH: u32;
160+
158161
/// Inner curve type declarations.
159162
type InnerCurve: PairingEngine<Fr = Self::InnerScalarField, Fq = Self::OuterScalarField>;
160163
type InnerScalarField: PrimeField + PoseidonDefaultParametersField;

0 commit comments

Comments
 (0)