From 3f26e929f794cd722f2c736f1cab4aab7019e42c Mon Sep 17 00:00:00 2001 From: Qi Zhou Date: Fri, 15 Mar 2019 16:14:02 -0700 Subject: [PATCH] #389 fix redundant coinbase branch check in shard_state.py (#393) --- quarkchain/cluster/shard_state.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/quarkchain/cluster/shard_state.py b/quarkchain/cluster/shard_state.py index 4a2c9fddc..42eff329b 100644 --- a/quarkchain/cluster/shard_state.py +++ b/quarkchain/cluster/shard_state.py @@ -636,9 +636,6 @@ def __validate_block( if diff != block.header.difficulty: raise ValueError("incorrect difficulty") - if not self.branch.is_in_branch(block.header.coinbase_address.full_shard_key): - raise ValueError("coinbase output must be in local shard") - # Check whether the root header is in the root chain root_block_header = self.db.get_root_block_header_by_hash( block.header.hash_prev_root_block