mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
eth/catalyst: unique request types
This commit is contained in:
parent
d3cc618951
commit
fcc0156c4b
1 changed files with 2 additions and 1 deletions
|
|
@ -1303,7 +1303,8 @@ func validateRequests(requests [][]byte) error {
|
|||
return fmt.Errorf("empty request: %v", req)
|
||||
}
|
||||
// Check that requests are ordered by their type.
|
||||
if req[0] < last {
|
||||
// Each type must appear only once.
|
||||
if req[0] <= last {
|
||||
return fmt.Errorf("invalid request order: %v", req)
|
||||
}
|
||||
last = req[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue