neoneo-go/pkg/core/mempool
Roman Khimov 9591d64e53 mempool: don't sort items by hash
There is nothing requiring us to do so. It also is bad because it allows for
new transaction to replace some already existing one with the same fee
parameters just because it has "better" hash.

But the other thing is that for transactions with equal fees it's always
better for us to append them to the end of the list, instead of inserting them
in the middle, so this change allows to reduce slice item movements and gain
some 6-7% increase for single-node TPS.
2020-09-09 20:46:31 +03:00
..
feer.go mempool: replace timeStamp with blockStamp 2020-09-09 20:46:31 +03:00
mem_pool.go mempool: don't sort items by hash 2020-09-09 20:46:31 +03:00
mem_pool_test.go mempool: replace timeStamp with blockStamp 2020-09-09 20:46:31 +03:00
prometheus.go mempool: remove unverified transactions pool 2020-02-06 15:45:16 +03:00