Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Longarithm committed Nov 16, 2023
1 parent 3667636 commit 88bce93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chain/chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3534,9 +3534,10 @@ impl Chain {
shard_id: ShardId,
is_new_chunk: bool,
) -> Result<BlockContext, Error> {
// 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()
{
Expand Down

0 comments on commit 88bce93

Please sign in to comment.