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

Use uint64 to track rclimit #180

Merged
merged 1 commit into from
Feb 7, 2023
Merged

Use uint64 to track rclimit #180

merged 1 commit into from
Feb 7, 2023

Conversation

youkaicountry
Copy link
Contributor

@youkaicountry youkaicountry commented Jan 26, 2023

Resolves #163

Brief description

Checklist

  • I have built this pull request locally
  • I have ran the unit tests locally
  • I have manually tested this pull request
  • I have reviewed my pull request
  • I have added any relevant tests

Demonstration

 🔓 > tkoin.balance_of
1000000 KOIN

🔓 > rclimit
Current rc limit: 100% (1000000)

🔓 > rclimit 25%
Set rc limit to 25%

🔓 > rclimit
Current rc limit: 25% (250000)

🔓 > session begin
Began transaction session

🔓 📄 > tkoin.transfer 186zJQa3hjXx3zTxhYYJwrYjvntYxUjFA7 10
Transferring 10 KOIN to 186zJQa3hjXx3zTxhYYJwrYjvntYxUjFA7
Adding operation to transaction session

🔓 📄 > disconnect
Disconnected

🚫 🔓 📄 > rclimit 100
Set rc limit to 100

🚫 🔓 📄 > session submit
JSON:
{
  "id": "EiC1h99MizJ9gGLIX6Gb27/FHeHKGpM3iSvDyGFEesH47A==",
  "header": {
    "chain_id": "aaaaaaaa",
    "rc_limit": 10000000000,
    "nonce": "KGQ=",
    "operation_merkle_root": "EiAjZX5OX28FvED8un2QPjx6/MZXWpVxoydusbmd2ITd3w==",
    "payer": "AJJ3kv38SxPn5+TzlAsxGtTNhhmcdFk5Ug=="
  },
  "operations": [
    {
      "Op": {
        "CallContract": {
          "contract_id": "AFseYdNyWbnC2Zv0F/WS4Ld3JRZdJIi+RQ==",
          "entry_point": 670398154,
          "args": "ChkAkneS/fxLE+fn5POUCzEa1M2GGZx0WTlSEhkATerKwbchYzQyDN55HkNXF11J0SqbTALoGICU69wD"
        }
      }
    }
  ],
  "signatures": [
    "HyvPTLP1cTRPw6zHZp/KZGPq5KOo85hA9f6MM+ClwYTLQ4g6SaX4StbcSnLcV2gHSZ3W5aezR1WEaFdKluBGFVs="
  ]
}

@mvandeberg mvandeberg merged commit ca41fe5 into master Feb 7, 2023
@mvandeberg mvandeberg deleted the 163-rc-fix branch March 25, 2024 15:23
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.

Incorrect RC Limit tracking
2 participants