Commit 7b12808
committed
Fix query kes-period-info hanging indefinitely
getLocalChainTip was called inside executeLocalStateQueryExpr, opening
a second node connection while the state query mux was still active.
The state query thread could not fill its completionVar (and thus close
connection 1) because it was blocked waiting for the second connection
to return. Deadlock.
Fix: use queryChainBlockNo/queryChainPoint within the existing session
and reconstruct ChainTip via makeChainTip — the same pattern used by
runQueryTipCmd.
Fixes: #14341 parent af6862f commit 7b12808
2 files changed
Lines changed: 8 additions & 1 deletion
File tree
- .changes
- cardano-cli/src/Cardano/CLI/EraBased/Query
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
| |||
0 commit comments