aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2021-09-30 09:08:40 +0100
committerglozow <gloriajzhao@gmail.com>2021-10-04 15:00:28 +0100
commit54c6f3c1da01090aee9691a2c2bee0984a054ce8 (patch)
tree2f0759ff420949138f3ddf882ef4fa4168ad4293 /autogen.sh
parent30e240f65e69c6dffcd033afc63895345bd51f53 (diff)
[mempool] speed up check() by using coins cache and iterating in topo order
No behavior changes. Before, we're always adding transactions to the "check later" queue if they have any parents in the mempool. But there's no reason to do this if all of its inputs are already available from mempoolDuplicate. Instead, check for inputs, and only mark fDependsWait=true if the parents haven't been processed yet. Reduce the amount of "check later" transactions by looking at ancestors before descendants. Do this by iterating through them in ascending order by ancestor count. This works because a child will always have more in-mempool ancestors than its parent. We should never have any entries in the "check later" queue after this commit.
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions