Fixed off by one error in bootstrapping Alpha value

This commit is contained in:
StephenButtolph 2020-03-25 10:46:49 -04:00
parent 998ed8b3a5
commit a308beea33
1 changed files with 2 additions and 2 deletions

View File

@ -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,