From 88bce9396c6dce748525cd1154d71260878767b2 Mon Sep 17 00:00:00 2001 From: Longarithm Date: Thu, 16 Nov 2023 15:27:30 +0400 Subject: [PATCH] comments --- chain/chain/src/chain.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chain/chain/src/chain.rs b/chain/chain/src/chain.rs index d3e395ba763..7cc46576363 100644 --- a/chain/chain/src/chain.rs +++ b/chain/chain/src/chain.rs @@ -3534,9 +3534,10 @@ impl Chain { shard_id: ShardId, is_new_chunk: bool, ) -> Result { - // backwards compatibility let epoch_id = block_header.epoch_id(); let protocol_version = self.epoch_manager.get_epoch_protocol_version(epoch_id)?; + // Before `FixApplyChunks` feature, gas price was taken from current + // block by mistake. Preserve it for backwards compatibility. let gas_price = if !is_new_chunk && protocol_version < ProtocolFeature::FixApplyChunks.protocol_version() {