mirror of https://github.com/poanetwork/gecko.git
Merge pull request #28 from StephenButtolph/bootstrap-oboe
Fixed off by one error in bootstrapping Alpha value
This commit is contained in:
commit
541f762b55
|
@ -382,7 +382,7 @@ func (m *manager) createAvalancheChain(
|
||||||
Context: ctx,
|
Context: ctx,
|
||||||
Validators: validators,
|
Validators: validators,
|
||||||
Beacons: beacons,
|
Beacons: beacons,
|
||||||
Alpha: (beacons.Len() + 1) / 2,
|
Alpha: beacons.Len()/2 + 1, // must be > 50%
|
||||||
Sender: &sender,
|
Sender: &sender,
|
||||||
},
|
},
|
||||||
VtxBlocked: vtxBlocker,
|
VtxBlocked: vtxBlocker,
|
||||||
|
@ -462,7 +462,7 @@ func (m *manager) createSnowmanChain(
|
||||||
Context: ctx,
|
Context: ctx,
|
||||||
Validators: validators,
|
Validators: validators,
|
||||||
Beacons: beacons,
|
Beacons: beacons,
|
||||||
Alpha: (beacons.Len() + 1) / 2,
|
Alpha: beacons.Len()/2 + 1, // must be > 50%
|
||||||
Sender: &sender,
|
Sender: &sender,
|
||||||
},
|
},
|
||||||
Blocked: blocked,
|
Blocked: blocked,
|
||||||
|
|
Loading…
Reference in New Issue