aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/chain.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-04-01 11:09:32 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-04-01 11:09:40 -0400
commit35477e9e4e3f0f207ac6fa5764886b15bf9af8d0 (patch)
tree16c5d204c445cff346fc1ba2e5e6421684fc5259 /src/interfaces/chain.h
parent79c345a0114c9a83fd40e01150519373c017b130 (diff)
parent866c8058a706931f025335b3e794ed2f4d287918 (diff)
downloadbitcoin-35477e9e4e3f0f207ac6fa5764886b15bf9af8d0.tar.xz
Merge #15644: Make orphan processing interruptible
866c8058a7 Interrupt orphan processing after every transaction (Pieter Wuille) 6e051f3d32 [MOVEONLY] Move processing of orphan queue to ProcessOrphanTx (Pieter Wuille) 9453018fdc Simplify orphan processing in preparation for interruptibility (Pieter Wuille) Pull request description: As individual orphan transactions can be relatively expensive to handle, it's undesirable to process all of them (max 100) as soon as the parent becomes available, as it pegs the net processing the whole time. Change this by interrupting orphan handling after every transactions, and continue in the next processing slot of the peer that gave us the parent - similar to how getdata processing works now. Messages from other peers arriving in the mean time are processed normally, but other messages from the peer that gave us the parent have to wait until all orphan processing is done. ACKs for commit 866c80: sdaftuar: ACK 866c8058a706931f025335b3e794ed2f4d287918 MarcoFalke: utACK 866c8058a706931f025335b3e794ed2f4d287918 promag: utACK 866c805. Verified refactor in 9453018fdc8f02d42832374bcf1d6e3a1df02281 and moved code in 6e051f3d323af1d209c02e7a4319834f1947ffa7. Not so sure about change in 866c8058a706931f025335b3e794ed2f4d287918 just because I'm not familiar with net processing. Tree-SHA512: d8e8a1ee5f2999446cdeb8fc9756ed9c24f3d5cd769a7774ec4c317fc8d463fdfceec88de97266f389b715a5dfcc2b0a3abaa573955ea451786cc43b870e8cde
Diffstat (limited to 'src/interfaces/chain.h')
0 files changed, 0 insertions, 0 deletions