pub struct Records {
pub claims: HashMap<(String, u32), u32>,
pub pegouts: BTreeMap<(String, u32), Burn>,
}Expand description
What the sidestr overlay remembers across blocks (siding/lib/overlay.mjs):
outpoints claimed so far by the height that claimed them, and burns seen.
Validation is idempotent for one height (a block re-validated, or a
competing block at the same height, may claim the same outpoint); a
different height may not. Level 1: no reorgs, so nothing is unwound.
Fields§
§claims: HashMap<(String, u32), u32>Parent outpoint (txid:vout, txid display order) → height that claimed it.
pegouts: BTreeMap<(String, u32), Burn>Sidechain outpoint → the burn.
Implementations§
Trait Implementations§
impl Eq for Records
impl StructuralPartialEq for Records
Auto Trait Implementations§
impl Freeze for Records
impl RefUnwindSafe for Records
impl Send for Records
impl Sync for Records
impl Unpin for Records
impl UnsafeUnpin for Records
impl UnwindSafe for Records
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.