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§
Sourcefn should_retain_sapling(&self, note: &ReceivedNote<NoteRef, Note>) -> bool
fn should_retain_sapling(&self, note: &ReceivedNote<NoteRef, Note>) -> bool
Returns whether the specified Sapling note should be retained.
Sourcefn should_retain_orchard(&self, note: &ReceivedNote<NoteRef, Note>) -> bool
Available on crate feature orchard
only.
fn should_retain_orchard(&self, note: &ReceivedNote<NoteRef, Note>) -> bool
orchard
only.Returns whether the specified Orchard note should be retained.