diff --git a/.changelog/1215.bugfix.md b/.changelog/1215.bugfix.md new file mode 100644 index 000000000..2a0732e13 --- /dev/null +++ b/.changelog/1215.bugfix.md @@ -0,0 +1 @@ +Stop using mainnet block gas limit on testnet diff --git a/src/app/components/Blocks/index.tsx b/src/app/components/Blocks/index.tsx index 178ced0d4..d75f75a43 100644 --- a/src/app/components/Blocks/index.tsx +++ b/src/app/components/Blocks/index.tsx @@ -66,7 +66,7 @@ export const Blocks: FC = ({ ] const tableRows = blocks?.map(block => { - const blockGasLimit = paraTimesConfig[block.layer]?.mainnet.blockGasLimit + const blockGasLimit = paraTimesConfig[block.layer]?.[block.network]?.blockGasLimit if (!blockGasLimit) throw new Error('blockGasLimit is not configured') return { key: block.hash, diff --git a/src/app/pages/BlockDetailPage/index.tsx b/src/app/pages/BlockDetailPage/index.tsx index 104ea878d..143194554 100644 --- a/src/app/pages/BlockDetailPage/index.tsx +++ b/src/app/pages/BlockDetailPage/index.tsx @@ -69,7 +69,7 @@ export const BlockDetailView: FC<{ const transactionsAnchor = `${RouteUtils.getBlockRoute(block, block.round)}#${transactionsContainerId}` const transactionLabel = block.num_transactions.toLocaleString() - const blockGasLimit = paraTimesConfig[block.layer]?.mainnet.blockGasLimit + const blockGasLimit = paraTimesConfig[block.layer]?.[block.network]?.blockGasLimit if (!blockGasLimit) throw new Error('blockGasLimit is not configured') return (