mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
update comments
This commit is contained in:
parent
fff62a2875
commit
abb7c947ba
1 changed files with 2 additions and 2 deletions
|
|
@ -304,7 +304,7 @@ func testGetBlockHeaders(t *testing.T, protocol uint) {
|
|||
backend.chain.GetBlockByNumber(1).Hash(),
|
||||
},
|
||||
},
|
||||
// Check a corner case where skipping causes overflow with reverse=false
|
||||
// Check a corner case where skipping causes overflow with reverse=true
|
||||
{
|
||||
&GetBlockHeadersRequest{Origin: HashOrNumber{Number: 1}, Amount: 2, Reverse: true, Skip: math.MaxUint64 - 1},
|
||||
[]common.Hash{
|
||||
|
|
@ -318,7 +318,7 @@ func testGetBlockHeaders(t *testing.T, protocol uint) {
|
|||
backend.chain.GetBlockByNumber(1).Hash(),
|
||||
},
|
||||
},
|
||||
// Check another corner case where skipping causes overflow with reverse=false
|
||||
// Check another corner case where skipping causes overflow with reverse=true
|
||||
{
|
||||
&GetBlockHeadersRequest{Origin: HashOrNumber{Number: 1}, Amount: 2, Reverse: true, Skip: math.MaxUint64},
|
||||
[]common.Hash{
|
||||
|
|
|
|||
Loading…
Reference in a new issue