transaction propagation on a timer

This commit is contained in:
Robert Habermeier
2017-03-23 20:02:46 +01:00
parent b76860fd2b
commit e0a79699ea
3 changed files with 51 additions and 3 deletions

View File

@@ -414,7 +414,7 @@ struct TxRelay(Arc<BlockChainClient>);
impl LightHandler for TxRelay {
fn on_transactions(&self, ctx: &EventContext, relay: &[::ethcore::transaction::UnverifiedTransaction]) {
trace!(target: "les", "Relaying {} transactions from peer {}", relay.len(), ctx.peer());
trace!(target: "pip", "Relaying {} transactions from peer {}", relay.len(), ctx.peer());
self.0.queue_transactions(relay.iter().map(|tx| ::rlp::encode(tx).to_vec()).collect(), ctx.peer())
}
}