neoneo-go/pkg/services
Roman Khimov 584675ec23 state: optimize NEP17Transfer struct
We have both from and to here, so technically we can either drop the neg/neg
trick from the processTokenTransfer() or drop one field from the structure
(the other side is a part of the key). Drop the field since this can make the
DB a bit more compact. Change Amount to be a pointer along the way since
that's the "native" thing for big.Int, we've used non-pointer field
specifically to avoid Neg/Neg problems, but it looks like this is not
necessary.

This structure is only used by the RPC server and I doubt anyone uses it via
the *Blockchain.
2023-01-10 22:51:45 +03:00
..
helpers/rpcbroadcaster rpc/client: move to pkg/rpcclient 2022-07-21 22:39:53 +03:00
metrics services: allow multiple listen addresses for simple services 2022-12-07 11:23:01 +03:00
notary config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
oracle config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
rpcsrv state: optimize NEP17Transfer struct 2023-01-10 22:51:45 +03:00
stateroot config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00