Commit 0795b902 authored by Joshua Gutow's avatar Joshua Gutow Committed by GitHub

Merge pull request #8430 from ethereum-optimism/aj/comments

op-challenger: Add comment to avoid confusion about what GetBlockRange returns
parents 9743a364 71734ac8
...@@ -36,6 +36,8 @@ func NewOutputBisectionGameContract(addr common.Address, caller *batching.MultiC ...@@ -36,6 +36,8 @@ func NewOutputBisectionGameContract(addr common.Address, caller *batching.MultiC
}, nil }, nil
} }
// GetBlockRange returns the block numbers of the absolute pre-state block (typically genesis or the bedrock activation block)
// and the post-state block (that the proposed output root is for).
func (c *OutputBisectionGameContract) GetBlockRange(ctx context.Context) (prestateBlock uint64, poststateBlock uint64, retErr error) { func (c *OutputBisectionGameContract) GetBlockRange(ctx context.Context) (prestateBlock uint64, poststateBlock uint64, retErr error) {
results, err := c.multiCaller.Call(ctx, batching.BlockLatest, results, err := c.multiCaller.Call(ctx, batching.BlockLatest,
c.contract.Call(methodGenesisBlockNumber), c.contract.Call(methodGenesisBlockNumber),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment