Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Consider signed nil votes to be double signs #334

Merged
merged 2 commits into from
Aug 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/chain/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ impl State {
)
}

if new_state.block_id.is_some()
&& self.consensus_state.block_id.is_some()
&& self.consensus_state.block_id != new_state.block_id
{
if self.consensus_state.block_id != new_state.block_id {
fail!(
StateErrorKind::DoubleSign,
"Attempting to sign a second proposal at height:{} round:{} step:{} old block id:{} new block {}",
Expand Down