-
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
GAS price for Bytes operation is too cheap: cost 37 mins with 20GAS #2723
Comments
They're all tested in testnet5 node in such a command.
|
As mentioned in paper Attacking Resource Metering in EVM, charge the repeated call more expensively is a long-term idea for preventing DoS. Details can be seen in An Adaptive Gas Cost Mechanism for Ethereum to Defend Against Under-Priced DoS Attacks. I agree with neo-project/neo-vm#458 by @Liaojinghui in some extents. Totally Agree With #2724 !!!!!! Only one more concern is that maybe the parameters should be tested carefully so that no normal dAPP is blocked. |
20 GAS limit, old Core i7-8565U laptop, NeoGo:
|
20 GAS limit, i7-10875H Laptop, 48G Mem, C# neo-cli, find some interesting result (based on postman):
After restart PC:
I've run my PC for more than 3 days, including many tasks with .NET(building, running cli...). You could see the result before restart and after restart differ a lot. And another result can be seen that the first result for invoking a certain script is always the slowest, then the second and the third will not differ a lot. |
The price of Therefore, according to the number of cycles in your poc To sum up, this price is basically reasonable and does not need to be adjusted. |
The 23000000 in POC is not the real iteration number. It just want to consume all 20GAS which is the default limit. Real number will be 20_0000_0000 / 256 / 3 in this case. |
We can discuss it in neo-project/neo-vm#471. |
Can we get an updated table after the neo-project/neo-vm#471 merge? |
I'd like to update it when the seed nodes get updated. |
DO NOT attack seed nodes. Any testing should be done in the local environment. |
kkkkkkkk, sorry for that, won't do DoS on seed node anymore |
Just for the record, same Core i7-8565U/16GB machine as #2723 (comment), NEWBUFFER script:
|
The
newbuffer
will allocate lots of memory and charge only 0.00000256 GAS.There are also some other opcode's performance with 20 GAS for reference.
source code in Tanya
The text was updated successfully, but these errors were encountered: