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,
|
||||
Validators: validators,
|
||||
Beacons: beacons,
|
||||
Alpha: (beacons.Len() + 1) / 2,
|
||||
Alpha: beacons.Len()/2 + 1, // must be > 50%
|
||||
Sender: &sender,
|
||||
},
|
||||
VtxBlocked: vtxBlocker,
|
||||
|
@ -462,7 +462,7 @@ func (m *manager) createSnowmanChain(
|
|||
Context: ctx,
|
||||
Validators: validators,
|
||||
Beacons: beacons,
|
||||
Alpha: (beacons.Len() + 1) / 2,
|
||||
Alpha: beacons.Len()/2 + 1, // must be > 50%
|
||||
Sender: &sender,
|
||||
},
|
||||
Blocked: blocked,
|
||||
|
|
Loading…
Reference in New Issue