From 38ac84f0c7fd0cea7b626fd715b7223e57fd772a Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Wed, 4 Jan 2017 14:33:32 +0100 Subject: [PATCH] reassign requests on failure --- ethcore/light/src/on_demand/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ethcore/light/src/on_demand/mod.rs b/ethcore/light/src/on_demand/mod.rs index 0fcd4a4e9..fc3d4d30e 100644 --- a/ethcore/light/src/on_demand/mod.rs +++ b/ethcore/light/src/on_demand/mod.rs @@ -373,7 +373,7 @@ impl Handler for OnDemand { } } - // attempt reassign. + self.dispatch_header_by_number(ctx.as_basic(), req, sender); } _ => panic!("Only header by number request fetches header proofs; qed"), } @@ -401,7 +401,7 @@ impl Handler for OnDemand { } } - // attempt reassign. + self.dispatch_header_by_hash(ctx.as_basic(), req, sender); } _ => panic!("Only header by hash request fetches headers; qed"), } @@ -429,7 +429,7 @@ impl Handler for OnDemand { } } - // attempt reassign. + self.dispatch_block(ctx.as_basic(), req, sender); } _ => panic!("Only block request fetches bodies; qed"), } @@ -457,7 +457,7 @@ impl Handler for OnDemand { } } - // attempt reassign. + self.dispatch_block_receipts(ctx.as_basic(), req, sender); } _ => panic!("Only receipts request fetches receipts; qed"), } @@ -485,7 +485,7 @@ impl Handler for OnDemand { } } - // attempt reassign. + self.dispatch_account(ctx.as_basic(), req, sender); } _ => panic!("Only account request fetches state proof; qed"), }