neoneo-go/pkg/core/dao
Roman Khimov ae9658a108 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-17 19:03:12 +03:00
..
cacheddao.go dao: migrate nep5 balances with the contract 2020-07-17 19:03:12 +03:00
cacheddao_test.go core: store smartcontract items by id 2020-06-19 20:48:45 +03:00
dao.go dao: combine GetNextContractID and PutNextContractID 2020-06-24 10:22:21 +03:00
dao_test.go dao: combine GetNextContractID and PutNextContractID 2020-06-24 10:22:21 +03:00