Merge pull request #4518 from harmony-one/fix/duplicate_def

fix duplicate function def
pull/4520/head
Adam Androulidakis 1 year ago committed by GitHub
commit 532e28f684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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