neoneo-go/pkg/core
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
..
block rpc: adjust getblock RPC-call JSON fields names 2020-07-09 17:34:53 +03:00
blockchainer consensus: use GetNextBlockValidators where appropriate 2020-07-11 19:54:50 +03:00
dao dao: migrate nep5 balances with the contract 2020-07-17 19:03:12 +03:00
interop Merge pull request #1180 from nspcc-dev/fix-calling-scripthash-check-in-nep5 2020-07-16 07:29:14 +03:00
mempool transaction: drop old attributes 2020-07-10 20:40:27 +03:00
native Merge pull request #1180 from nspcc-dev/fix-calling-scripthash-check-in-nep5 2020-07-16 07:29:14 +03:00
state core: use big.Int to store NEP5 balances 2020-07-09 13:26:39 +03:00
storage core: provide monotonically increasing ID for contracts 2020-06-11 10:45:25 +03:00
test_data rpc: adjust getrawtransaction RPC-call JSON fields names 2020-07-15 14:44:13 +03:00
transaction Merge pull request #1169 from nspcc-dev/neo3/rpc/fields_names_adjustment 2020-07-15 18:24:54 +03:00
blockchain.go core: remove stale storeBlock comment, fix #365 2020-07-16 23:06:17 +03:00
blockchain_test.go core: use big.Int to store NEP5 balances 2020-07-09 13:26:39 +03:00
doc.go core: add Blockchain event subscription mechanism 2020-05-25 00:27:39 +03:00
gas_price.go *: switch from fixed8 to int64 2020-06-29 21:39:27 +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 vm: zero GAS means no GAS, use fee data to properly limit execution 2020-07-14 08:37:29 +03:00
interop_neo.go dao: migrate nep5 balances with the contract 2020-07-17 19:03:12 +03:00
interop_neo_test.go core: add System.Binary.Base64Encode(Decode) interops 2020-07-17 12:36:18 +03:00
interop_system.go core: add System.Contract.GetCallFlags interop 2020-07-17 12:35:02 +03:00
interop_system_test.go core: add System.Contract.GetCallFlags interop 2020-07-17 12:35:02 +03:00
interops.go Merge pull request #1187 from nspcc-dev/neo3/interop/post-preview2_adjustment 2020-07-17 13:33:29 +03:00
interops_test.go block/transaction: add network magic into the hash 2020-06-18 12:39:50 +03:00
native_contract_test.go core/tests: extend native contract test 2020-06-18 22:44:10 +03:00
native_policy_test.go vm: zero GAS means no GAS, use fee data to properly limit execution 2020-07-14 08:37:29 +03:00
opcode_price.go *: switch from fixed8 to int64 2020-06-29 21:39:27 +03:00
prometheus.go core: refactor out MemPool 2020-01-16 10:16:24 +03:00
util.go core: fix CalculateNetworkFee() for multisig contracts 2020-07-13 18:05:46 +03:00
util_test.go core: rename Neo.Crypto.CheckMultisig to Neo.Crypto.CheckMultisigWithECDsaSecp256r1 2020-07-14 16:19:12 +03:00