test client message handling

This commit is contained in:
keorn 2016-12-07 11:38:09 +01:00
parent da030fed51
commit a296c5e226

View File

@ -156,7 +156,7 @@ impl TestBlockChainClient {
client.genesis_hash = client.last_hash.read().clone();
client
}
/// Set the transaction receipt result
pub fn set_transaction_receipt(&self, id: TransactionID, receipt: LocalizedReceipt) {
self.receipts.write().insert(id, receipt);
@ -659,8 +659,8 @@ impl BlockChainClient for TestBlockChainClient {
self.miner.import_external_transactions(self, txs);
}
fn queue_consensus_message(&self, _packet: Bytes) {
unimplemented!();
fn queue_consensus_message(&self, message: Bytes) {
self.spec.engine.handle_message(UntrustedRlp::new(&message)).unwrap();
}
fn pending_transactions(&self) -> Vec<SignedTransaction> {