Open jonathangenlambda opened 5 months ago
Also it seems that query_next_tx
blocks forever if there is no TX in the mempool - not sure if this is the intended behaviour.
Using a tokio timeout also doesnt work with query_next_tx
as it renders the client in an invalid state ending up all subsequent requests in Err(AgencyIsTheirs)
:
let query_next_tx_result = monitor_client.query_next_tx();
if let Err(_) = tokio::time::timeout(Duration::from_millis(10), query_next_tx_result).await {
info!("query_next_tx_result didnt return");
}
@jonathangenlambda thanks for reporting. I'll try to reproduce and then get back to you.
I have added the
txmonitor::client
to network facades, (see https://github.com/txpipe/pallas/pull/442/files) and am trying to use the mempool querying functionality now.query_size_and_capacity
works repeatedly (when doing it in a loop, for example each block) perfectly fine, butquery_has_tx
fails withErr(Plexer(AgentDequeue))
.Here is my testcode: