[node.sh] fix max bls key count 10 cannot be reached

pull/3275/head
Jacky Wang 4 years ago committed by Leo Chen
parent 19db99d3f7
commit e43534968f
  1. 2
      cmd/harmony/bls.go

@ -56,7 +56,7 @@ func loadBLSKeys() (multibls.PrivateKeys, error) {
if len(keys) == 0 { if len(keys) == 0 {
return nil, fmt.Errorf("0 bls keys loaded") return nil, fmt.Errorf("0 bls keys loaded")
} }
if len(keys) >= *maxBLSKeysPerNode { if len(keys) > *maxBLSKeysPerNode {
return nil, fmt.Errorf("bls keys exceed maximum count %v", *maxBLSKeysPerNode) return nil, fmt.Errorf("bls keys exceed maximum count %v", *maxBLSKeysPerNode)
} }
return keys, err return keys, err

Loading…
Cancel
Save