Skip to content

Conversation

@neutrinoks
Copy link
Contributor

@neutrinoks neutrinoks requested a review from Copilot November 5, 2025 10:17
@neutrinoks neutrinoks self-assigned this Nov 5, 2025
@peaq-coolify
Copy link

peaq-coolify bot commented Nov 5, 2025

The preview deployment for peaqnetwork/peaq-network-node:ci/012453_add-auto-upgrade-on-preview-environment-iswg08ckww0c4k48oggoo400 is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-11-05 10:18:41 CET

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the GasLimitStorageGrowthRatio parameter from 1 to 366 across three runtime configurations (peaq, peaq-dev, and krest), aligning with the Moonbeam implementation as referenced in the existing comments.

  • Changed GasLimitStorageGrowthRatio from 1 to 366 to match the documented Moonbeam formula

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
runtime/peaq/src/lib.rs Updated GasLimitStorageGrowthRatio to 366 for the peaq runtime
runtime/peaq-dev/src/lib.rs Updated GasLimitStorageGrowthRatio to 366 for the peaq-dev runtime
runtime/krest/src/lib.rs Updated GasLimitStorageGrowthRatio to 366 for the krest runtime

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

/// In moonbeam, they setup as 366 and follow below formula:
/// The amount of gas per storage (in bytes): BLOCK_GAS_LIMIT / BLOCK_STORAGE_LIMIT
/// (15_000_000 / 40kb)
/// However, let us setup the value as 1 for now because we also has the did/storage bridge
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is now outdated and contradicts the code. The value is no longer set to 1, so the comment should be updated to reflect that the value has been set to 366 or the comment should be removed.

Copilot uses AI. Check for mistakes.
/// In moonbeam, they setup as 366 and follow below formula:
/// The amount of gas per storage (in bytes): BLOCK_GAS_LIMIT / BLOCK_STORAGE_LIMIT
/// (15_000_000 / 40kb)
/// However, let us setup the value as 1 for now because we also has the did/storage bridge
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is now outdated and contradicts the code. The value is no longer set to 1, so the comment should be updated to reflect that the value has been set to 366 or the comment should be removed.

Copilot uses AI. Check for mistakes.
/// In moonbeam, they setup as 366 and follow below formula:
/// The amount of gas per storage (in bytes): BLOCK_GAS_LIMIT / BLOCK_STORAGE_LIMIT
/// (15_000_000 / 40kb)
/// However, let us setup the value as 1 for now because we also has the did/storage bridge
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is now outdated and contradicts the code. The value is no longer set to 1, so the comment should be updated to reflect that the value has been set to 366 or the comment should be removed.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants