neo-go/pkg/core/state
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
..
contract.go state: drop NativeContract, fix #3430 2024-05-16 18:46:46 +03:00
contract_test.go manifest: make default trusts invalid 2024-07-26 15:18:25 +03:00
deposit.go [#2442] English Check 2022-05-04 19:48:27 +03:00
deposit_test.go stackitem: introduce Convertible interface 2021-07-19 15:42:42 +03:00
mpt_root.go [#2442] English Check 2022-05-04 19:48:27 +03:00
mpt_root_test.go state: fix MPTRoot JSONization 2021-03-26 13:45:18 +03:00
native_state.go state: always deserialize LastGasPerVote 2023-09-05 23:44:14 +03:00
native_state_test.go state: always deserialize LastGasPerVote 2023-09-05 23:44:14 +03:00
notification_event.go state: always marshal applog exception into JSON, fix #2869 2023-01-11 16:36:41 +03:00
notification_event_test.go subscriptions: move NotificationEvent to state 2022-07-25 11:58:13 +03:00
oracle.go [#2442] English Check 2022-05-04 19:48:27 +03:00
oracle_test.go stackitem: introduce Convertible interface 2021-07-19 15:42:42 +03:00
storage_item.go dao: drop GetStorageItems* APIs 2022-03-31 19:18:51 +03:00
tokens.go state: optimize NEP17Transfer struct 2023-01-10 22:51:45 +03:00
tokens_test.go state: optimize NEP17Transfer struct 2023-01-10 22:51:45 +03:00
validator.go core: switch to the new voting system (via native NEO contract) 2020-04-27 16:06:50 +03:00