//! Cheap existence check for an account's pending notes.
use DatabaseError;
use ReadTx;
use AccountId;
const SQL: &str = include_str!;
/// Returns `true` if the account has any pending note: unconsumed and within the per-note attempt
/// budget. This is the cheap equivalent of "does [`available_notes`](super::available_notes) return
/// a note that is eligible or awaiting a retry window" (every row passing this filter is one or the
/// other), but it tests for existence in SQL and deserializes nothing. The coordinator uses it to
/// decide whether to respawn an actor that just idle-timed-out.