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

Roa feature #4

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Roa feature #4

merged 1 commit into from
Dec 13, 2024

Conversation

dtaghavi
Copy link
Contributor

No description provided.

Implmented sysio.roas native action 'reducepolicy' and all pieces
necessary for that.

Replaced userres and got roa usage tracking added

Replaced userres in chain_plugin to reference sysio.roa's reslimit table.
Adjusted the flow of resource usage tracking:
    RAM isn't charged during the action play through instead incrementing our new total_ram_usage
    In finalize we do our check to determine who to charge contract or caller where we use
    total_ram_usage to charge the appropriate person.
Cleaner overall flow and maintains Leap resource management architecture.

Also added a check, to not allow nodeowners to remove the sysio or sysio.* policies that are
established on registration as these are system requirements. They can expand them but not
lower them.

Modified newaccount so only sysio can call it.
sysio is charged for resources used for account creation.
all accounts are created with no resources.
Removed delegatebw and buyram from account creation.

Fixed finalize() fallback logic

Fixed an issue in finalize() logic when it checks contracts resources.
Logic was incorrect for measuring accounts with unlimited CPU / NET.

Fixed fallback edge case

There was an edge case where contract == user and so it would SYS_ASSERT
instead since that is to be expected sometimes. We attempt to charge the contract
and if it doesn't have enough we reject without trying the user.

modified the "free resources" check to accomodate bios boot.
toggles after block 200.

Fixed chain plugin get_account

Previous edits didn't fully adjust to account for our sysio.roa resource management changes
It now gets and populates properly. Resolved unlimited CPU / NET on clio get account
@dtaghavi dtaghavi merged commit 889a509 into Wire-Network:master Dec 13, 2024
1 check failed
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.

1 participant