mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 23:55:11 +00:00
native: drop Refuel method from GAS
It can be used to attack the network (amplifying DOS), so it's broken
beyond repair. This reverts ac601601c1
.
See also neo-project/neo#2560 and neo-project/neo#2561.
This commit is contained in:
parent
5e18a6141e
commit
d6bd6b6888
5 changed files with 2 additions and 119 deletions
|
@ -121,9 +121,7 @@ func TestNativeHelpersCompile(t *testing.T) {
|
|||
{"unregisterCandidate", []string{pub}},
|
||||
{"getAccountState", []string{u160}},
|
||||
}, nep17TestCases...))
|
||||
runNativeTestCases(t, cs.GAS.ContractMD, "gas", append([]nativeTestCase{
|
||||
{"refuel", []string{u160, "123"}},
|
||||
}, nep17TestCases...))
|
||||
runNativeTestCases(t, cs.GAS.ContractMD, "gas", nep17TestCases)
|
||||
runNativeTestCases(t, cs.Oracle.ContractMD, "oracle", []nativeTestCase{
|
||||
{"getPrice", nil},
|
||||
{"request", []string{`"url"`, "nil", `"callback"`, "nil", "123"}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue