neoneo-go/pkg
Roman Khimov c7032022f8 core: don't search through the whole DAO in isTxStillRelevant
New transactions are added to the chain with blocks. If there is no
transaction X at height N in DAO, it could only be added with block N+1, so
it has to be present there. Therefore we can replace `dao.HasTransaction()`
check with a search through in-block transactions. HasTransaction() is nasty
in that it may add useless load the DB and this code is being run with a big
Blockchain lock held, so we don't want to be delayed here at all.

Improves single-node TPS by ~2%.
2020-08-20 18:50:18 +03:00
..
compiler compiler: allow to alias interop packages 2020-08-19 10:13:36 +03:00
config *: use proper YAML library import path, fix #1306 2020-08-12 16:31:06 +03:00
consensus Merge pull request #1335 from nspcc-dev/tests/binary 2020-08-19 11:33:47 +03:00
core core: don't search through the whole DAO in isTxStillRelevant 2020-08-20 18:50:18 +03:00
crypto core: replace interop names with named constants 2020-08-14 14:21:54 +03:00
encoding remove github.com/pkg/errors from dependencies 2020-08-07 12:21:52 +03:00
internal core: verification script must return exactly one value 2020-08-17 22:02:15 +03:00
interop *: fix misspellings found in Go Report Card 2020-08-14 12:16:24 +03:00
io always wrap errors when creating new ones with fmt.Errorf() 2020-08-07 12:21:52 +03:00
network network: decode CMDNotFound 2020-08-18 14:24:27 +03:00
rpc Merge pull request #1328 from nspcc-dev/tests/addnetworkfee 2020-08-18 15:30:47 +03:00
smartcontract Merge pull request #1318 from nspcc-dev/fix/verifytests 2020-08-14 17:24:03 +03:00
util *: use proper YAML library import path, fix #1306 2020-08-12 16:31:06 +03:00
vm vm: fix debugger and add tests 2020-08-18 11:26:27 +03:00
wallet wallet: emit proper multisignature 2020-08-18 11:24:48 +03:00