-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Revert "Refuel (#2444)" #2560
Revert "Refuel (#2444)" #2560
Conversation
This reverts commit 4d45a79.
Check balance before refuel? |
I don't see how it could be fixed, so we need to drop it. At the same time it's an exported method, it's declared in the manifest, saved in the ContractManagement, and we have stateroot computed including it. Therefore to properly remove it now we need to update GAS contract using |
@roman-khimov Limit to 1 of gas? Or a small value? |
|
Or if you used refuel with an address, you can't make a transfer with this address during the same invocation. |
How about resync? Since no contract is using refuel now, I think resync is more easier. |
It's better to revert at this time and find a better way later. |
How about Poly? |
It only verified the latest state root sent by relayer. Poly doesn't store it. |
I think that |
May I ask what |
throw an exception during the calling |
Then we have to tell user invoking |
Merge? |
It can be used to attack the network (amplifying DOS), so it's broken beyond repair. See also neo-project/neo#2560 and neo-project/neo#2561.
It can be used to attack the network (amplifying DOS), so it's broken beyond repair. This reverts ac60160. See also neo-project/neo#2560 and neo-project/neo#2561.
This reverts commit 4d45a79.