pub enum FollowWithProofAction {
None,
BlockAdded(Block, SpvProof),
BlockReorged(Block, SpvProof, Header),
}
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, SpvProof)
A block has been added to the chain. Provides the new block.
BlockReorged(Block, SpvProof, Header)
The current block has been reorganized out of the chain. Provides the block that was reorged out. Note that the transactions should be “un-processed” in reverse order in case they have inter-dependencies.
Also provides the previous block header.
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