pub enum FollowWithProofAction {
None,
BlockAdded(Block, TxoProof),
BlockReorged(Block, TxoProof, Header, FilterHeader),
}
Expand description
The next action to take when following the chain, with SPV proofs
Variants§
None
No action required, synced to chain tip
BlockAdded(Block, TxoProof)
A block has been added to the chain. Provides the new block.
BlockReorged(Block, TxoProof, Header, FilterHeader)
The current block has been reorganized out of the chain. Provides:
- the block that was reorged out
- the TXO proof for the block that was reorged out
- the previous block header
- the previous filter header Note that the transactions should be “un-processed” in reverse order in case they have inter-dependencies.
Auto Trait Implementations§
impl Freeze for FollowWithProofAction
impl RefUnwindSafe for FollowWithProofAction
impl Send for FollowWithProofAction
impl Sync for FollowWithProofAction
impl Unpin for FollowWithProofAction
impl UnwindSafe for FollowWithProofAction
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