Commit 3136a05
committed
Serialize startup chain source requests
When concurrent requests share an Electrum client connection, a clean
EOF can cause the active reader to return an error without waking other
requests waiting on the connection. Those requests remain blocked in
spawn_blocking, causing Tokio runtime shutdown to wait indefinitely
for them to finish.
As a temporary fix, we run the startup fee update and zero-fee
commitment validation in sequence. This avoids concurrent requests on
the shared Electrum connection leaving a blocking task stranded after
connection closure.
Co-Authored-By: HAL 90001 parent 2da79df commit 3136a05
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
0 commit comments