//! Inserts `FEE_SPONSORSHIP` notes from a committed block.
use DatabaseError;
use WriteTx;
use crateSponsorshipNote;
const SQL: &str = include_str!;
/// Inserts `FEE_SPONSORSHIP` notes from a committed block. Uses `INSERT OR IGNORE` so re-applying
/// the same block (e.g. on a redelivery from the subscription stream) is a no-op rather than a
/// constraint violation.
///
/// The feature note the sponsorship is bound to does not have to be known yet: the binding is
/// resolved at selection time by joining `feature_note_id` against `notes.note_id`.