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

[chain] Revised Chain Storage #1825

Open
zivkovicmilos opened this issue Mar 25, 2024 · 2 comments
Open

[chain] Revised Chain Storage #1825

zivkovicmilos opened this issue Mar 25, 2024 · 2 comments
Assignees
Labels
📦 🌐 tendermint v2 Issues or PRs tm2 related 📦 ⛰️ gno.land Issues or PRs gno.land package related

Comments

@zivkovicmilos
Copy link
Member

Description

This effort covers the concern of storage creep in Gnoland, as the blockchain advances to new heights.

Essentially, as the Gno chain progresses, it will become more and more expensive to manage storage-wise, since it can grow into gigabytes / terabytes in size for archive nodes. This can be mitigated with a few strategies:

  • introduce different node types, so not all nodes are archive nodes (this is an entirely new effort, and not something required for main-net)
  • analyze and optimize the data structures used to store blockchain data in embedded storage
  • analyze and optimize the underlying storage layer (embedded storage)

Successful outcome of this effort:

  • storage growth contained in the form of optimizations
  • storage growth analyzed and documented
  • storage data structure and underlying layer analyzed and optimized to minimize overhead of a growing chain
@moul
Copy link
Member

moul commented Oct 15, 2024

This is definitely a significant challenge for us, but we will primarily address it after the launch by introducing special node types, among other things.

Before the launch, we should consider implementing "storage rent gas" for contracts. However, the question is how to establish proper garbage collection, which depends on #2743.

Let's remove "must have" for now.

@moul
Copy link
Member

moul commented Dec 28, 2024

More info about gas storage fee mechanism here: #3418

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🌐 tendermint v2 Issues or PRs tm2 related 📦 ⛰️ gno.land Issues or PRs gno.land package related
Projects
Status: Backlog
Development

No branches or pull requests

4 participants