neoneo-go/pkg/core/dao
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
..
cacheddao.go dao: migrate nep5 balances with the contract 2020-07-07 19:55:55 +03:00
cacheddao_test.go core: move DAO to a separate package 2020-04-08 08:38:44 +03:00
dao.go core,dao: use MPT only if it is enabled in config 2020-06-24 16:13:27 +03:00
dao_test.go core: move DAO to a separate package 2020-04-08 08:38:44 +03:00
storage_item.go dao: optimize storage cache flushing 2020-06-04 17:21:58 +03:00