fix duplicate function def

pull/4518/head
“GheisMohammadi” 1 year ago
parent fa99cd1959
commit 0252bd7ad4
No known key found for this signature in database
GPG Key ID: 15073AED3829FE90
  1. 15
      p2p/stream/protocols/sync/chain_test.go

@ -215,18 +215,3 @@ func checkBlocksByHashesResult(b []byte, hs []common.Hash) error {
}
return nil
}
func checkGetReceiptsResult(b []byte, hs []common.Hash) error {
var msg = &syncpb.Message{}
if err := protobuf.Unmarshal(b, msg); err != nil {
return err
}
bhResp, err := msg.GetReceiptsResponse()
if err != nil {
return err
}
if len(hs) != len(bhResp.Receipts) {
return errors.New("unexpected size")
}
return nil
}

Loading…
Cancel
Save