neoneo-go/pkg/core
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
..
block block: JSONize tx-less block as [] instead of null 2022-07-21 13:15:31 +03:00
chaindump config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
dao core: drop old STContractID data 2022-12-02 10:54:45 +03:00
fee vm: add PUSHT and PUSHF opcodes 2022-12-02 10:02:33 +03:00
interop config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
mempool [#2442] English Check 2022-05-04 19:48:27 +03:00
mempoolevent [#2442] English Check 2022-05-04 19:48:27 +03:00
mpt golangci: enable/fix misspell 2022-09-02 18:36:26 +03:00
native native: simplify code somewhat, get Metadata() only once 2022-12-16 23:48:04 +03:00
state 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
statesync config: replace VerifyBlocks with SkipBlockVerification 2022-12-07 17:35:56 +03:00
storage core: drop old STContractID data 2022-12-02 10:54:45 +03:00
test_data core: refactor helper test contracts generation 2022-03-30 11:46:29 +03:00
transaction *: fix Neo and NeoGo misuses 2022-12-07 17:29:09 +03:00
basic_chain_test.go config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
bench_test.go core: make GetHeaderHash accept uint32 2022-11-25 14:30:51 +03:00
blockchain.go state: optimize NEP17Transfer struct 2023-01-10 22:51:45 +03:00
blockchain_core_test.go config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
blockchain_neotest_test.go config: replace VerifyBlocks with SkipBlockVerification 2022-12-07 17:35:56 +03:00
doc.go *: apply go 1.19 formatter heuristics 2022-08-09 15:37:52 +03:00
headerhashes.go core: don't always store all hashes in memory 2022-11-25 14:30:51 +03:00
helper_test.go config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
interops.go runtime: implement System.Runtime.LoadScript, fix #2701 2022-11-25 15:11:49 +03:00
native_designate_test.go core: add some comment for TestDesignate_DesignateAsRole 2022-06-08 23:11:14 +03:00
prometheus.go core: make GetHeaderHash accept uint32 2022-11-25 14:30:51 +03:00
util.go core: simplify header hash list restoration logic 2022-11-25 13:08:03 +03:00
util_test.go core: export CreateGenesisBlock 2022-06-08 18:20:34 +03:00