neo-go/pkg
Roman Khimov b10af1ed31 manifest: make default trusts invalid
Refs. #3522. The core problem is the same as for groups/features: we can't
allow empty trusts when they're unmarshalled from JSON. But unlike others we
can't easily differentiate missing any value with other cases because the
default value for WildPermissionDescs is a valid thing. Adding an additional
field makes it invalid and we can build around it. Other options are
implementing custom UnmarshalJSON for Manifest (too much for this) or making
Trusts a pointer (an option, but can fail in too many ways).

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-07-26 15:18:25 +03:00
..
compiler native: autogenerate nativehashes package 2024-05-14 09:39:53 +03:00
config config: get back default node configuration values 2024-07-05 13:31:25 +03:00
consensus consensus: use better dbFT 2024-03-25 19:21:51 +03:00
core manifest: make default trusts invalid 2024-07-26 15:18:25 +03:00
crypto crypto: export GetSignedData function 2024-05-13 09:33:42 +03:00
encoding *: drop go 1.18 support in doc and build targets 2023-10-12 17:59:42 +03:00
interop core: move P2PNotary node role out of P2PSigExtensions 2024-05-21 12:10:47 +03:00
io *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
neorpc neorpc: extend getpeers method 2024-06-27 10:41:59 +01:00
neotest crypto: add StringCompressed() for PublicKey 2024-04-11 15:24:46 +03:00
network Merge pull request #3501 from NeoGoBros/add-max-array-size-test 2024-07-03 19:34:14 +03:00
rpcclient Merge pull request #3481 from EdgeDLT/getPeerHeights 2024-06-28 11:07:09 +03:00
services rpcsrv: improve witness verification error 2024-07-11 12:03:34 +03:00
smartcontract manifest: make default trusts invalid 2024-07-26 15:18:25 +03:00
util *: Convert slices to arrays instead of copy where possible 2024-07-05 20:36:22 +04:00
vm Merge pull request #3460 from NeoGoBros/add-onexec-hook 2024-07-03 13:21:46 +03:00
wallet wallet: do not store deployed contract script inside Contract account 2024-06-05 15:27:20 +03:00