simplification of Fetchers (#1344)

This commit is contained in:
Anton Evangelatov
2019-06-17 10:01:12 +02:00
committed by GitHub
parent 21adbe2fac
commit 0b724bd4d5
23 changed files with 746 additions and 2246 deletions

View File

@@ -63,8 +63,8 @@ const (
// Tests in this file should not request chunks from peers.
// This function will panic indicating that there is a problem if request has been made.
func dummyRequestFromPeers(_ context.Context, req *network.Request) (*enode.ID, chan struct{}, error) {
panic(fmt.Sprintf("unexpected request: address %s, source %s", req.Addr.String(), req.Source.String()))
func dummyRequestFromPeers(_ context.Context, req *storage.Request, _ enode.ID) (*enode.ID, error) {
panic(fmt.Sprintf("unexpected request: address %s", req.Addr.String()))
}
//This test is a syncing test for nodes.