]> git.bitcoin.ninja Git - rapid-gossip-sync-server/commit
Don't hold the counter lock while verifying gossip/waiting on DB
authorMatt Corallo <git@bluematt.me>
Mon, 22 Aug 2022 04:14:24 +0000 (04:14 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Aug 2022 00:23:13 +0000 (00:23 +0000)
commit9e7d4324f57d6222fce201acdfb86d25dd8d639e
treef6161e1996f2455f63bd2fbac69b72465d239881
parent0f9d10c1608e8b6549b2bcdb83fcef66ade6c596
Don't hold the counter lock while verifying gossip/waiting on DB

This resolves a deadlock if we block on the DB where we have one
thread blocked waiting on DB in a blocking thread, and the tokio
reactor blocked waiting on the counter lock which the blocking
thread holds.
src/downloader.rs