Roman Khimov
|
9d2712573f
|
*: enable godot linter and fix all its warnings
It's important for NeoGo to have clean documentation. No functional changes.
|
2021-05-12 23:17:03 +03:00 |
|
Roman Khimov
|
d4a2f4d8b9
|
hash: suppress staticcheck warning
|
2021-05-12 22:52:32 +03:00 |
|
Roman Khimov
|
4e651eaf83
|
compiler: simplify increments as suggested by golint
|
2021-05-12 22:52:07 +03:00 |
|
Roman Khimov
|
c4e084b0d8
|
*: fix whitespace errors
leading/trailing newlines
|
2021-05-12 22:51:41 +03:00 |
|
Roman Khimov
|
b1710bebaa
|
native: fix errcheck errors in nns contract
|
2021-05-12 21:49:42 +03:00 |
|
Roman Khimov
|
a44376903a
|
rpc: fix errcheck warnings in websocket code
|
2021-05-12 21:48:38 +03:00 |
|
Roman Khimov
|
e9cefc4bfc
|
*: fix all errcheck warnings in testing code
|
2021-05-12 21:45:12 +03:00 |
|
Roman Khimov
|
4caff35e73
|
consensus: fix error checking in decoders
Spotted by errcheck.
|
2021-05-12 20:14:52 +03:00 |
|
Roman Khimov
|
99108c620f
|
network: fix errcheck warning
|
2021-05-12 20:14:35 +03:00 |
|
Roman Khimov
|
601841ef35
|
*: drop unused structure fields
Found by structcheck:
`good` is unused (structcheck)
and alike.
|
2021-05-12 19:41:23 +03:00 |
|
Roman Khimov
|
4cd3da99b4
|
core: fix ineffassign warning in test code
ineffectual assignment to err (ineffassign)
|
2021-05-12 19:37:14 +03:00 |
|
Roman Khimov
|
78bf172108
|
network: drop some not really useful test code
SA4010: this result of append is never used, except maybe in other appends (staticcheck)
|
2021-05-12 19:29:45 +03:00 |
|
Roman Khimov
|
b5ff87c2bd
|
native: fix minimum deployment fee setting
SA4003: no value of type uint32 is less than 0 (staticcheck)
But it's more involved than that, we should allow any positive big.Int here.
|
2021-05-12 19:27:02 +03:00 |
|
Roman Khimov
|
d15cacc1ba
|
rpc/client: fix broken test code
SA1024: cutset contains duplicate characters (staticcheck)
|
2021-05-12 19:15:21 +03:00 |
|
Roman Khimov
|
b8ba923874
|
standard: improve testing code
staticcheck: SA4021: x = append(y) is equivalent to x = y
|
2021-05-12 19:12:09 +03:00 |
|
Roman Khimov
|
333f778aa6
|
*: drop empty branches
Fix this warning from staticcheck: SA9003: empty branch
|
2021-05-12 19:10:31 +03:00 |
|
Roman Khimov
|
92dbb3c4b9
|
*: fix all unused warnings
From golangci-lint.
|
2021-05-12 18:53:12 +03:00 |
|
Roman Khimov
|
de5e61588d
|
vm: simplify some test code
gosimple: S1017: should replace this `if` statement with an unconditional `strings.TrimPrefix`
|
2021-05-12 18:44:35 +03:00 |
|
Roman Khimov
|
7af67d2a3c
|
vm/cli: simplify buffer-related code
gosimple: S1030: should use buf.String() instead of string(buf.Bytes())
|
2021-05-12 18:42:50 +03:00 |
|
Roman Khimov
|
bd48454c72
|
mempool: simpilfy boolean comparisons in test code
gosimple: S1008: should use 'return t == tx2' instead of 'if t == tx2 { return true }; return false'
|
2021-05-12 18:40:41 +03:00 |
|
Roman Khimov
|
cf59bd878d
|
native: simplify escaping in regexp.MustCompile()
gosimple: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice
|
2021-05-12 18:38:24 +03:00 |
|
Roman Khimov
|
0178594850
|
*: simpilfy make() invocations
gosimple: S1019: should use make([]byte, 64) instead
|
2021-05-12 18:36:45 +03:00 |
|
Roman Khimov
|
07cdbb815c
|
*: drop unnecessary fmt.Sprintf uses
gosimple: S1039: unnecessary use of fmt.Sprintf
|
2021-05-12 18:29:39 +03:00 |
|
Roman Khimov
|
ad8ffee0ab
|
*: remove redundant return statements
Found by gosimple via golangci-lint.
|
2021-05-12 18:24:16 +03:00 |
|
Roman Khimov
|
8322607fd2
|
rpc/server: silence deadcode warning
|
2021-05-12 18:22:18 +03:00 |
|
Roman Khimov
|
73ecbbb7c6
|
compiler: remove unused testPrintHash from test code
|
2021-05-12 18:18:49 +03:00 |
|
Roman Khimov
|
cfc067dd24
|
*: remove dead code
Found by deadcode via golangci-lint.
|
2021-05-12 18:13:14 +03:00 |
|
Roman Khimov
|
75a55d910e
|
Merge pull request #1956 from nspcc-dev/interop/checksig-rename
core: rename Neo.Crypto.[CheckSig CheckMultisig] interops
|
2021-05-12 17:06:39 +03:00 |
|
Anna Shaleva
|
f824789116
|
core: remove neointerops-related files
And move their content to systeminterops-related files.
|
2021-05-12 13:30:04 +03:00 |
|
Anna Shaleva
|
4b933f88a7
|
core: simplify interop functions
We now have the only interop table (system interops).
|
2021-05-12 13:30:01 +03:00 |
|
Roman Khimov
|
fec214055f
|
Merge pull request #1948 from nspcc-dev/extensible-dos
Prevent network DoS attack using Extensible payloads
|
2021-05-12 10:58:51 +03:00 |
|
Evgeniy Stratonikov
|
275a5c9daa
|
network: limit message number from the same sender
|
2021-05-12 10:52:11 +03:00 |
|
Anna Shaleva
|
6d59689d9c
|
core: rename Neo.Crypto.CheckMultisig interop
|
2021-05-11 18:38:14 +03:00 |
|
Anna Shaleva
|
366e79b9b8
|
core: rename Neo.Crypto.CheckSig interop
|
2021-05-11 18:37:55 +03:00 |
|
Anna Shaleva
|
af16c3e009
|
wallet: add test to regenerate testwallet_NEO3.json
|
2021-05-11 18:36:30 +03:00 |
|
Anna Shaleva
|
5071173dfd
|
wallet: add test to regenerate CLI testwallet
|
2021-05-11 18:36:30 +03:00 |
|
Anna Shaleva
|
5017f2d2e6
|
wallet: add test to regenerate examples wallet
|
2021-05-11 18:36:30 +03:00 |
|
Anna Shaleva
|
68d0249c50
|
wallet: refactor regenerate test
Move common code to a separate function.
|
2021-05-11 18:36:30 +03:00 |
|
Anna Shaleva
|
14189c50aa
|
wallet: add test to regenerate Oracle testwallets
|
2021-05-11 18:36:30 +03:00 |
|
Anna Shaleva
|
56a616f21c
|
wallet: add test to regenerate Notary testwallets
|
2021-05-11 18:36:30 +03:00 |
|
Roman Khimov
|
3a21d8f44f
|
Merge pull request #1947 from nspcc-dev/iterator-remove
interop: remove `System.Iterator.Create`
|
2021-05-11 18:29:17 +03:00 |
|
Evgeniy Stratonikov
|
35cdf0447c
|
extpool/test: remove debug print
|
2021-05-11 12:16:24 +03:00 |
|
Evgeniy Stratonikov
|
fbf7d9edce
|
core: drop oracles from extensible whitelist
|
2021-05-11 12:16:24 +03:00 |
|
Evgeniy Stratonikov
|
23a4e25436
|
interop: remove System.Iterator.Create , fix #1935
There are now only storage iterators. Related #1933.
|
2021-05-11 12:13:30 +03:00 |
|
Evgeniy Stratonikov
|
40d1dd0e0d
|
native/std: add stringSplit method
|
2021-05-11 12:11:38 +03:00 |
|
Evgeniy Stratonikov
|
dadfe2b9ab
|
native/std: add memorySearch method
|
2021-05-11 12:11:38 +03:00 |
|
Evgeniy Stratonikov
|
978f4dfbc5
|
native/std: add memoryCompare method
|
2021-05-11 12:11:38 +03:00 |
|
Evgeniy Stratonikov
|
82a6c3266c
|
native/std: limit input size for some methods
Also fix prices accordingly.
|
2021-05-11 12:11:38 +03:00 |
|
Evgeniy Stratonikov
|
e4b34833da
|
native/std: add overloads for itoa and atoi
|
2021-05-11 12:11:38 +03:00 |
|
Roman Khimov
|
a4b54b2e8a
|
Merge pull request #1954 from nspcc-dev/fix-testnet-tests
netmode: fix testnet magic
|
2021-05-11 10:08:36 +03:00 |
|