diff --git a/bfa_client/src/bfa/node.go b/bfa_client/src/bfa/node.go index f85b2fca82b111250c278ade0ac608fcfec5dcb0..6fc48e244a2041a95229fcca5b5c48164caa5676 100644 --- a/bfa_client/src/bfa/node.go +++ b/bfa_client/src/bfa/node.go @@ -44,10 +44,11 @@ type SealerStatus struct { } const ( - Latest = "latest" - Self = "self" - Network = 47525974938 - Genesis = "0xe0e26f415af00fe32e1e8d94336355db43a78d9f59eb70910172b61fb670d99e" + Latest = "latest" + Self = "self" + Network = 47525974938 + Genesis = "0xe0e26f415af00fe32e1e8d94336355db43a78d9f59eb70910172b61fb670d99e" + SealerRounds = 2 ) func (node *Node) Call(result interface{}, method string, args ...interface{}) { @@ -279,7 +280,7 @@ func (node *Node) SealersStatus(blockNumber int64) (status map[string]*SealerSta notSeen := int64(len(status)) block := node.HeaderByNumber(blockNumber) blockNumber = block.Number.Int64() - until := Max(1, blockNumber-5*notSeen) + until := Max(1, blockNumber-SealerRounds*notSeen) for notSeen > 0 { signer := BytesToHex(block.GetSigner().Bytes()) if status[signer].LastBlock == 0 {