-
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 CreateMultisigAccount is too cheap: 14 mins with 20GAS #2710
Comments
@roman-khimov Do you know what is the DOS threshold for NEO? |
Actually, If some developer don't care about whether the output's type is Hash256 or Hash160, he could convert the data he wants to hash to |
I've usually measured it wrt transfer transaction price/quantity, C# node can process 8K of NEO transfers per second, each one costs ~0.01 GAS in system fee. This can then be translated into some USD costs, quoting oracle stress-test document:
But as you've noticed not all GAS spends are equal in terms of CPU time. In this case we have 100$ worth of GAS creating some effects. Maybe if we're to express the target in GAS that'd be at least |
The syscall
System.Contract.CreateMultisigAccount
is based onSha256
while its price is lower thanCryptoLib.Sha256
's (1<<10
<1<<15
).Therefore, a minor DOS can be composed using CreateMultisigAccount syscall.
source code: https://github.com/lazynode/Tanya/pull/26/files
I propose that charge
CreateMultisigAccount
asNeo.Crypto.CheckMultisig
does which is dynamic and depends on accnout number.The text was updated successfully, but these errors were encountered: