From c96826beaaeaa9ab08d613cf8b07756c3c591172 Mon Sep 17 00:00:00 2001 From: keorn Date: Tue, 13 Dec 2016 18:22:56 +0100 Subject: [PATCH] expect instead of index --- ethcore/src/engines/tendermint/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethcore/src/engines/tendermint/message.rs b/ethcore/src/engines/tendermint/message.rs index ab6bdb04c..3e5da592d 100644 --- a/ethcore/src/engines/tendermint/message.rs +++ b/ethcore/src/engines/tendermint/message.rs @@ -51,7 +51,7 @@ impl ConsensusMessage { pub fn new_proposal(header: &Header) -> Result { Ok(ConsensusMessage { - signature: try!(UntrustedRlp::new(header.seal()[1].as_slice()).as_val()), + signature: try!(UntrustedRlp::new(header.seal().get(1).expect("seal passed basic verification; seal has 3 fields; qed").as_slice()).as_val()), height: header.number() as Height, round: try!(consensus_round(header)), step: Step::Propose,