good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit b35e4fce authored by Hao Duan's avatar Hao Duan Committed by GitHub
Browse files

core: avoid modification of accountSet cache in tx_pool (#21159)


* core: avoid modification of accountSet cache in tx_pool

when runReorg, we may copy the dirtyAccounts' accountSet cache to promoteAddrs
in which accounts will be promoted, however, if we have reset request at the
same time, we may reuse promoteAddrs and modify the cache content which is
against the original intention of accountSet cache. So, we need to make a new
slice here to avoid modify accountSet cache.

* core: fix flatten condition + comment

Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
parent e24e05dd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment