mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
c7032022f8
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%. |
||
---|---|---|
.. | ||
compiler | ||
config | ||
consensus | ||
core | ||
crypto | ||
encoding | ||
internal | ||
interop | ||
io | ||
network | ||
rpc | ||
smartcontract | ||
util | ||
vm | ||
wallet |