Skip to content

Commit

Permalink
op-node: change verifiedValidatorNum param of getFinalizedHeader API …
Browse files Browse the repository at this point in the history
…to -3
  • Loading branch information
bnoieh committed Jan 7, 2025
1 parent d36df55 commit 69e8c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-service/sources/eth_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ func (s *EthClient) InfoByLabel(ctx context.Context, label eth.BlockLabel) (eth.
func (s *EthClient) BSCInfoByLabel(ctx context.Context, label eth.BlockLabel) (eth.BlockInfo, error) {
// can't hit the cache when querying the head due to reorgs / changes.
if label == eth.Finalized {
// FIXME set verifiedValidatorNum to -3 before release, set it to 8 temporarily for hotfix
// -3 means automatically use the len(validators) of BSC network
// refs: https://github.com/bnb-chain/bsc/pull/2844
return s.bscFinalizedHeader(ctx, 8)
return s.bscFinalizedHeader(ctx, -3)
}
return s.headerCall(ctx, "eth_getBlockByNumber", label)
}
Expand Down

0 comments on commit 69e8c4f

Please sign in to comment.