Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using mainnet block gas limit on testnet #1215

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelog/1215.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop using mainnet block gas limit on testnet
2 changes: 1 addition & 1 deletion src/app/components/Blocks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const Blocks: FC<BlocksProps> = ({
]

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,
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/BlockDetailPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<StyledDescriptionList
Expand Down
Loading