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

Explore gas cost modifications for memo field #3012

Closed
rootulp opened this issue Jan 12, 2024 · 1 comment
Closed

Explore gas cost modifications for memo field #3012

rootulp opened this issue Jan 12, 2024 · 1 comment
Assignees
Labels
investigation item tracks efforts related to an investigation. does not always require a PR to close. proposal item is not yet actionable and is suggesting a change that must first be agreed upon

Comments

@rootulp
Copy link
Collaborator

rootulp commented Jan 12, 2024

Context

CIAS is a project that applied inscriptions to Celestia. Instead of using blob data, they used the memo field.

For example, this tx has a memo field that base64 decodes to

data:,{"op":"cancel","amt":3230000,"tick":"cias","p":"cia-20"}

Problem

The gas cost of bytes in the memo field may be mis-priced relative to blobs. Ideally Celestia should enable use cases like inscriptions but encourage them to use blobs rather than memos.

Proposal

We've discussed three concrete gas modifications to encourage users to use blobs instead of memos.

  1. Consider decreasing auth.MaxMemoCharacters from 256 bytes => 16 or 32 bytes
  2. Consider adding a fixed cost for txs that contain memos
  3. Consider increasing auth.TxSizeCostPerByte from 10 to something higher

Write a short doc that explores these 3 options.

cc: @nashqueue @cmwaters

@rootulp rootulp added proposal item is not yet actionable and is suggesting a change that must first be agreed upon investigation item tracks efforts related to an investigation. does not always require a PR to close. labels Jan 12, 2024
@rootulp rootulp self-assigned this Jan 14, 2024
@rootulp
Copy link
Collaborator Author

rootulp commented Jan 15, 2024

@rootulp rootulp closed this as completed Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigation item tracks efforts related to an investigation. does not always require a PR to close. proposal item is not yet actionable and is suggesting a change that must first be agreed upon
Projects
None yet
Development

No branches or pull requests

1 participant