neoneo-go/pkg
Roman Khimov 5d68f88196 core: fix and speed up mempool Verify()
First of all, it was wrong, it was not checking for inputs really, it compared
tx hashes for some reason, second, when it did compare inputs it compared only
the PrevIndex part of them which is also wrong.

Also, there is absolutely no reason to go through GetVerifiedTransactions()
here, we don't need this copy of pointers and it can also be outdated by the
time we're to finish our check.

Before:
BenchmarkTXPerformanceTest-4
    5000            485506 ns/op           65886 B/op        409 allocs/op
ok      github.com/CityOfZion/neo-go/integration        3.212s

After:
enchmarkTXPerformanceTest-4
    5000            371104 ns/op           44367 B/op        408 allocs/op
ok      github.com/CityOfZion/neo-go/integration        2.712s
2019-12-13 23:23:33 +03:00
..
compiler Merge pull request #546 from nspcc-dev/write-optimizations 2019-12-06 19:40:38 +03:00
consensus consensus: fix payload sign test 2019-12-13 12:09:51 +03:00
core core: fix and speed up mempool Verify() 2019-12-13 23:23:33 +03:00
crypto io: rename Read/WriteBytes to Read/WriteB 2019-12-12 20:19:50 +03:00
internal internal: moved testutil method to internal package 2019-12-11 13:14:43 +03:00
interop fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
io io: remove ReadLE/BE and WriteLE/BE 2019-12-13 11:38:28 +03:00
network io: rename Read/WriteBytes to Read/WriteB 2019-12-12 20:19:50 +03:00
rpc io: add type-specific read/write methods 2019-12-12 20:19:50 +03:00
smartcontract io: rename Read/WriteBytes to Read/WriteB 2019-12-12 20:19:50 +03:00
util io: add type-specific read/write methods 2019-12-12 20:19:50 +03:00
vm vm: optimize Next() in Context 2019-12-13 19:57:17 +03:00
wallet crypto: add invalid testcase 2019-11-29 11:03:03 +03:00