Trait NoteRetention

Source
pub trait NoteRetention<NoteRef> {
    // Required methods
    fn should_retain_sapling(&self, note: &ReceivedNote<NoteRef, Note>) -> bool;
    fn should_retain_orchard(&self, note: &ReceivedNote<NoteRef, Note>) -> bool;
}
Expand description

A predicate that can be used to choose whether or not a particular note is retained in note selection.

Required Methods§

Source

fn should_retain_sapling(&self, note: &ReceivedNote<NoteRef, Note>) -> bool

Returns whether the specified Sapling note should be retained.

Source

fn should_retain_orchard(&self, note: &ReceivedNote<NoteRef, Note>) -> bool

Available on crate feature orchard only.

Returns whether the specified Orchard note should be retained.

Implementors§