mempool: fixes

This commit is contained in:
nym21
2026-05-06 19:31:18 +02:00
parent 086bfd9938
commit cb74087f27
10 changed files with 157 additions and 209 deletions

View File

@@ -254,4 +254,13 @@ impl Query {
})
.collect())
}
/// Opaque content hash that changes whenever the projected next
/// block changes. Same value used as the mempool ETag, surfaced as
/// JSON so external monitors can detect a frozen update loop by
/// polling: if the value doesn't change for tens of seconds on a
/// live network, the mempool sync has stalled.
pub fn mempool_hash(&self) -> Result<u64> {
Ok(self.require_mempool()?.next_block_hash())
}
}