mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
fix: da signers begin block
This commit is contained in:
parent
b3e526871e
commit
50aacfa0c9
@ -73,7 +73,7 @@ func (k Keeper) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) {
|
|||||||
Quorums: make([]*types.Quorum, 0),
|
Quorums: make([]*types.Quorum, 0),
|
||||||
}
|
}
|
||||||
if len(ballots) >= int(params.EncodedSlices) {
|
if len(ballots) >= int(params.EncodedSlices) {
|
||||||
for i := 0; i+int(params.EncodedSlices) < len(ballots); i += 1 {
|
for i := 0; i+int(params.EncodedSlices) <= len(ballots); i += int(params.EncodedSlices) {
|
||||||
if int(params.MaxQuorums) < len(quorums.Quorums) {
|
if int(params.MaxQuorums) < len(quorums.Quorums) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ func (k Keeper) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) {
|
|||||||
}
|
}
|
||||||
quorums.Quorums = append(quorums.Quorums, &quorum)
|
quorums.Quorums = append(quorums.Quorums, &quorum)
|
||||||
}
|
}
|
||||||
if len(ballots)%int(params.EncodedSlices) != 0 && int(params.MaxQuorums) < len(quorums.Quorums) {
|
if len(ballots)%int(params.EncodedSlices) != 0 && int(params.MaxQuorums) > len(quorums.Quorums) {
|
||||||
quorum := types.Quorum{
|
quorum := types.Quorum{
|
||||||
Signers: make([]string, 0),
|
Signers: make([]string, 0),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user