Adding transactions to block

This commit is contained in:
Tomasz Drwięga
2016-03-09 12:54:07 +01:00
parent 49f1834ffb
commit 5db84c3233
8 changed files with 52 additions and 12 deletions

View File

@@ -158,6 +158,10 @@ impl NetworkProtocolHandler<SyncMessage> for EthSync {
let mut sync_io = NetSyncIo::new(io, self.chain.deref());
self.sync.write().unwrap().chain_new_blocks(&mut sync_io, good, bad, retracted);
},
SyncMessage::NewChainHead => {
let mut sync_io = NetSyncIo::new(io, self.chain.deref());
self.sync.write().unwrap().chain_new_head(&mut sync_io);
}
_ => {/* Ignore other messages */},
}
}