Commit graph

4561 commits

Author SHA1 Message Date
Roman Khimov
2bc5f72523
experimental codeql workflow 2021-04-15 17:29:00 +03:00
Roman Khimov
a642bc6bc6
Merge pull request #1902 from nspcc-dev/ignore-nonnumeric-values-in-nep17-transfers
core: ignore non-numeric "amounts" in Transfer events
2021-04-12 17:05:13 +03:00
Roman Khimov
508ad51a86 core: ignore non-numeric "amounts" in Transfer events
Refs. #1900.
2021-04-12 15:09:37 +03:00
Roman Khimov
1eebaa8eac
Merge pull request #1899 from nspcc-dev/more-specific-errors-for-sendrawtx
rpc/server: be more specific in some sendrawtransaction error cases
2021-04-12 12:17:03 +03:00
Roman Khimov
13619a0e77 rpc/server: improve submitblock and submitnotaryrequest also 2021-04-10 22:47:24 +03:00
Roman Khimov
274f2c0408 rpc/server: be more specific in some sendrawtransaction error cases
Refs. #1894.
2021-04-10 00:31:42 +03:00
Roman Khimov
973ed8c1f6 rpc/server: fix ineffassign warning 2021-04-08 15:52:57 +03:00
Roman Khimov
d3ea720afb result: gofmt -s 2021-04-08 15:49:14 +03:00
Roman Khimov
4c81f4dbc0 CHANGELOG: release 0.94.1 2021-04-08 15:17:15 +03:00
Roman Khimov
b9fe5d8dae docs: mention calculatenetworkfee RPC call 2021-04-08 15:17:15 +03:00
Roman Khimov
9948003aef docs: specify timeout units in example 2021-04-08 15:17:15 +03:00
Roman Khimov
fdb4836f17
Merge pull request #1891 from nspcc-dev/nep11-example
examples: add NFT example, fix #1845
2021-04-08 15:16:45 +03:00
Roman Khimov
f21f506493 examples: add NFT example, fix #1845 2021-04-08 12:36:02 +03:00
Roman Khimov
3f9df0862e
Merge pull request #1890 from nspcc-dev/more-documentation
More documentation
2021-04-08 12:19:53 +03:00
Roman Khimov
4997849470 docs: add a note on state validation, fix #1847 2021-04-07 21:42:26 +03:00
Roman Khimov
b2ecb10868 docs: add some oracle service doc, fix #1846 2021-04-07 21:27:42 +03:00
Roman Khimov
46d866965d
Merge pull request #1889 from nspcc-dev/tune-logging
Tune logging
2021-04-07 20:58:52 +03:00
Roman Khimov
5898013699 docs: fix consensus UnlockWallet documentation 2021-04-07 18:31:37 +03:00
Roman Khimov
6c48257d1a
Merge pull request #1888 from nspcc-dev/fix-storage-find-key-clashes
core: fix key clashes in Storage.Find
2021-04-07 18:17:15 +03:00
Roman Khimov
1785a333d2 core: tune "blockchain persist completed" message
It's misleading, we're writing it on disk-level persistence, it's not the same
as block "persistence" in C#, so we better write it clear.
2021-04-07 18:14:30 +03:00
Roman Khimov
453012ff16 runtime: tune runtime.Log messages
Add transaction hash, print contract hash in LE (as all user-facing functions
do) and don't double-quote the message, zap already does quoting of its own.
2021-04-07 18:14:30 +03:00
Roman Khimov
e2121ff583 core: fix key clashes in Storage.Find
Fixes #1873. NewByteArray() doesn't copy the slice, so we need to do it
ourselves.
2021-04-07 14:52:50 +03:00
Roman Khimov
d33dcd557a
Merge pull request #1886 from nspcc-dev/allow-deploying-from-multisig
cli/smartcontract: allow deploying contracts from multisig accounts
2021-04-07 14:30:00 +03:00
Roman Khimov
7360ed4245
Merge pull request #1885 from nspcc-dev/restore-mpt-collapsing
core: restore MPT collapsing logic
2021-04-07 14:29:51 +03:00
Roman Khimov
26eff7110c cli/smartcontract: allow deploying contracts from multisig accounts
By providing `--out` flag.
2021-04-07 11:50:24 +03:00
Roman Khimov
9b15ab48ad core: restore MPT collapsing logic
Fix #1867, revert part of bf20db09e0.
2021-04-07 11:14:18 +03:00
Roman Khimov
99ca0b2578
Merge pull request #1884 from nspcc-dev/oracle-example-and-docs
Oracle example and docs
2021-04-07 10:50:57 +03:00
Roman Khimov
9cc034af9b examples: add a perfect oracle example 2021-04-06 22:50:42 +03:00
Roman Khimov
555693d8b8 oracle: add MinimumResponseGas to interop
It's important for users of oracle contract.
2021-04-06 22:50:42 +03:00
Roman Khimov
ed358b4c4c native: expose MinimumResponseGas, add specific error for it 2021-04-06 22:50:42 +03:00
Roman Khimov
48313d4f79 .gitignore: add compiler outputs in example dir 2021-04-06 22:50:42 +03:00
Roman Khimov
090d68f8fa oracle: add response codes to interop defintions
Client should be aware of them.
2021-04-06 22:50:42 +03:00
Roman Khimov
bba22cb736 transaction: marshal oracle response codes as strings
C# node does it this way.
2021-04-06 22:50:42 +03:00
Roman Khimov
607cdcf13d oracle: improve oracle interop documentation 2021-04-06 22:50:42 +03:00
Roman Khimov
fc42b77916
Merge pull request #1883 from nspcc-dev/fix-oracle-request-processing
Fix oracle request processing
2021-04-06 17:25:22 +03:00
Roman Khimov
7a1c1638e4 oracle: specify neofs timeout as timeout, set default if 0
There has to be some sane default and we'd like configuration to be consistent
with other timeout values.
2021-04-06 17:08:04 +03:00
Roman Khimov
f69fd34220 oracle: add logging, refactor request processing a bit
And return more appropriate errors in some cases.
2021-04-06 17:02:32 +03:00
Roman Khimov
d2f7f00997 oracle: change neofs URI scheme
Strip '//', see neo-project/neo-modules#518.
2021-04-06 16:56:19 +03:00
Roman Khimov
bd9a303e29 oracle: URI host validation is only relevant for https
NeoFS doesn't have hosts.
2021-04-06 16:53:32 +03:00
Roman Khimov
29b79db998 oracle: we only work with https, forget http 2021-04-06 16:53:18 +03:00
Roman Khimov
a44cd71b9d
Merge pull request #1880 from nspcc-dev/compiler-inlining-fixes
Compiler inlining fixes
2021-04-06 15:20:36 +03:00
Roman Khimov
7e9f8e03c2 compiler: add a test for inlined selector statements
Selector here is either a struct field access or global package
variable/constant. While technically none of these require an additional
local, inlining actually uses one, so add a test for it.
2021-04-06 10:54:37 +03:00
Roman Khimov
21a7f3d760 compiler: keep traversing after c.countLocalsCall()
Some arguments can be inlined functions themselves thus requiring additional
attention. Otherwise we can get less local variables than really used by
STLOCs (and subsequent program crash).
2021-04-05 22:58:07 +03:00
Roman Khimov
dbcd628071
Merge pull request #1877 from nspcc-dev/fix-services
Fix services
2021-04-02 13:26:18 +03:00
Roman Khimov
84b240cc9a services/consensus: add some logging on start 2021-04-02 13:13:26 +03:00
Roman Khimov
99b71bbbd1 network: move service starts to tryStartServices
All of them only make sense on a fully synchronized node, doing anything
during the initial sync is just a waste of time.
2021-04-02 13:12:06 +03:00
Roman Khimov
690a1db589 network: replace consensusStarted/canHandleExtens with syncReached flag
They're essentially the same.
2021-04-02 12:55:56 +03:00
Roman Khimov
a954821b98 consensus: make Shutdown a no-op if not started
It makes client code a bit simpler, we can just issue a Shutdown() request
without thinking much about it (but only once of course).
2021-04-02 12:50:46 +03:00
Roman Khimov
a01636a1b0 stateroot: set networking callback in a more straightforward way 2021-04-02 12:12:36 +03:00
Roman Khimov
4d0cbebb5a stateroot: make it shutdown properly, not locking up whole system 2021-04-02 11:38:49 +03:00