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

[Post-Spork] Change execution effort weights and cost #315

Closed
janezpodhostnik opened this issue Aug 22, 2024 · 0 comments
Closed

[Post-Spork] Change execution effort weights and cost #315

janezpodhostnik opened this issue Aug 22, 2024 · 0 comments

Comments

@janezpodhostnik
Copy link
Contributor

janezpodhostnik commented Aug 22, 2024

Context

In accordance with Flip https://github.com/onflow/flips/blob/main/governance/20240508-computation-limit-hike.md the execution effort weights should be reduced five times and execution effort cost increased five times.

This is done in 2 transactions. First transaction decreases the weights, temporarily making transactions cheaper. And the second transaction increases the cost.

Both transactions together essentially have no effect on the price of transaction, but allow for 5 times longer transactions with the same computation limit.

Transaction 1

[
  {
    "type": "Dictionary",
    "value": [
      {
        "key": {
          "type": "UInt64",
          "value": "1001"
        },
        "value": {
          "type": "UInt64",
          "value": "314"
        }
      },
      {
        "key": {
          "type": "UInt64",
          "value": "1002"
        },
        "value": {
          "type": "UInt64",
          "value": "314"
        }
      },
      {
        "key": {
          "type": "UInt64",
          "value": "1003"
        },
        "value": {
          "type": "UInt64",
          "value": "314"
        }
      },
      {
        "key": {
          "type": "UInt64",
          "value": "2006"
        },
        "value": {
          "type": "UInt64",
          "value": "567534"
        }
      },
      {
        "key": {
          "type": "UInt64",
          "value": "2020"
        },
        "value": {
          "type": "UInt64",
          "value": "162"
        }
      },
      {
        "key": {
          "type": "UInt64",
          "value": "2026"
        },
        "value": {
          "type": "UInt64",
          "value": "153"
        }
      },
      {
        "key": {
          "type": "UInt64",
          "value": "2037"
        },
        "value": {
          "type": "UInt64",
          "value": "13"
        }
      }
    ]
  }
]

Transaction 2

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

No branches or pull requests

2 participants