neoneo-go/pkg/core
Roman Khimov 1ab4f81fc3 dao: migrate nep5 balances with the contract
Fixes #1144. It's quite simple approach, we just update balance info right
upon contract migration. It will slow down migration transactions, but it
takes about 1-2 seconds to Seek through balances at mainnet's 3.8M, so the
approach should still work good enough. The other idea was to make lazy
updates (maintaining contract migration map), but it's more complicated to
implement (and implies that a balance get might also do a write).

There also is a concern about memory usage, it can give a spike of some tens
of megabytes, but that also is considered to be acceptable.
2020-07-07 19:55:55 +03:00
..
block rpc/block: rework the way Block is JSONized 2020-05-14 17:28:14 +03:00
cache cache: prevent TestRelayCache_Add failures 2020-06-26 12:42:12 +03:00
dao dao: migrate nep5 balances with the contract 2020-07-07 19:55:55 +03:00
mempool mempool: gofmt -s 2020-03-17 16:47:51 +03:00
mpt mpt: fix extension node cache invalidation 2020-06-04 17:16:32 +03:00
state state: implement JSON marshaling for MPT* items 2020-06-03 18:09:28 +03:00
storage mpt: implement MPT trie 2020-06-01 18:14:19 +03:00
test_data Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
transaction transaction: gofmt -s 2020-05-30 15:48:57 +03:00
blockchain.go core,dao: use MPT only if it is enabled in config 2020-06-24 16:13:27 +03:00
blockchain_test.go core: fix TestSubscriptions occasional failures 2020-06-25 19:41:17 +03:00
blockchainer.go core: extend Blockchainer interface with StateHeight() 2020-06-22 10:53:13 +03:00
doc.go core: add Blockchain event subscription mechanism 2020-05-12 17:41:15 +03:00
gas_price.go cli: make gas parameter to deployment add gas to the base price 2020-03-11 20:34:36 +03:00
gas_price_test.go core: make SpawnVM a method of context 2020-04-08 08:38:45 +03:00
header_hash_list.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
helper_test.go core: ensure we produce correct blocks for tests 2020-05-07 21:46:28 +03:00
interop_neo.go dao: migrate nep5 balances with the contract 2020-07-07 19:55:55 +03:00
interop_neo_test.go core: fix key recovery interops return value 2020-06-10 19:20:57 +03:00
interop_system.go dao: restrict GetStorageItems by prefix 2020-05-27 11:40:46 +03:00
interops.go core: provide key recovery interops only if neox is enabled 2020-06-24 12:37:27 +03:00
interops_test.go core: move DAO to a separate package 2020-04-08 08:38:44 +03:00
prometheus.go core: add state height to prometheus metrics 2020-06-24 14:47:08 +03:00
spent_coin.go core: move (un)SpentCoin structs into the state package 2020-03-11 12:22:52 +03:00
storage_find.go vm: make Iterator interface public 2020-05-27 11:40:46 +03:00
util.go config: move config.go out of config/ 2020-03-31 17:55:59 +03:00
util_test.go config: move config.go out of config/ 2020-03-31 17:55:59 +03:00