File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments