diff options
author | Ryan Schneider <ryanleeschneider@gmail.com> | 2018-05-23 20:55:42 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-05-23 20:55:42 +0800 |
commit | 55b579e02ce6f374bf81061269eabde0d82ae567 (patch) | |
tree | bd342772873ac0eb434d49a339850df6a3cf633b /core/chain_makers_test.go | |
parent | be22ee8ddac890044ca66500f4f8b32c635e3d1f (diff) | |
download | dexon-55b579e02ce6f374bf81061269eabde0d82ae567.tar dexon-55b579e02ce6f374bf81061269eabde0d82ae567.tar.gz dexon-55b579e02ce6f374bf81061269eabde0d82ae567.tar.bz2 dexon-55b579e02ce6f374bf81061269eabde0d82ae567.tar.lz dexon-55b579e02ce6f374bf81061269eabde0d82ae567.tar.xz dexon-55b579e02ce6f374bf81061269eabde0d82ae567.tar.zst dexon-55b579e02ce6f374bf81061269eabde0d82ae567.zip |
core: use a wrapped map to remove contention in `TxPool.Get`. (#16670)
* core: use a wrapped `map` and `sync.RWMutex` for `TxPool.all` to remove contention in `TxPool.Get`.
* core: Remove redundant `txLookup.Find` and improve comments on txLookup methods.
Diffstat (limited to 'core/chain_makers_test.go')
0 files changed, 0 insertions, 0 deletions