From 131355b10fc14ff2439fb9c367796549751e3fa0 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 2 Nov 2022 23:31:19 -0400 Subject: [PATCH] Correct Dave, Eve, and Ferdie to not run as validators --- deploy/serai/scripts/entry-dev.sh | 4 ++-- substrate/tendermint/client/src/block_import.rs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy/serai/scripts/entry-dev.sh b/deploy/serai/scripts/entry-dev.sh index 911da8f5..56be4595 100755 --- a/deploy/serai/scripts/entry-dev.sh +++ b/deploy/serai/scripts/entry-dev.sh @@ -1,6 +1,6 @@ #!/bin/bash if [[ -z $VALIDATOR ]]; then - serai-node --chain $CHAIN --$NAME + serai-node --chain $CHAIN --name $NAME else - serai-node --chain $CHAIN --$NAME --validator + serai-node --chain $CHAIN --$NAME fi diff --git a/substrate/tendermint/client/src/block_import.rs b/substrate/tendermint/client/src/block_import.rs index 82278c26..7b4ddf27 100644 --- a/substrate/tendermint/client/src/block_import.rs +++ b/substrate/tendermint/client/src/block_import.rs @@ -19,6 +19,8 @@ impl TendermintImport { // If it's in chain, with justifications, return it's already on chain // If it's in chain, without justifications, continue the block import process to import its // justifications + // This can be triggered if the validators add a block, without justifications, yet the p2p + // process then broadcasts it with its justifications if (self.client.status(id).unwrap() == BlockStatus::InChain) && self.client.justifications(&id).unwrap().is_some() {