Skip to content

Commit

Permalink
wemix: re-fixed unauthorized bad block error before a member is added
Browse files Browse the repository at this point in the history
  • Loading branch information
sadoci committed Oct 25, 2022
1 parent b28ab66 commit 5767c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wemix/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ func verifyBlockSig(height *big.Int, coinbase common.Address, nodeId []byte, has
if err != nil {
return err == wemixminer.ErrNotInitialized
} else if count, err := admin.getInt(ctx, gov, num, "getMemberLength"); err != nil || count == 0 {
return err == wemixminer.ErrNotInitialized
return err == wemixminer.ErrNotInitialized || count == 0
}
// if minerNodeId is given, i.e. present in block header, use it,
// otherwise, derive it from the codebase
Expand Down

0 comments on commit 5767c2e

Please sign in to comment.