pub struct HardcodedSync {
pub header: Bytes,
pub total_difficulty: Uint,
pub chts: Vec<H256>,
}
Expand description
Spec hardcoded sync.
Fields§
§header: Bytes
Hexadecimal of the RLP encoding of the header of the block to start synchronization from.
total_difficulty: Uint
Total difficulty including the block of header
.
chts: Vec<H256>
Ordered trie roots of blocks before and including header
.
Trait Implementations§
Source§impl Debug for HardcodedSync
impl Debug for HardcodedSync
Source§impl<'de> Deserialize<'de> for HardcodedSync
impl<'de> Deserialize<'de> for HardcodedSync
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HardcodedSync
impl PartialEq for HardcodedSync
impl StructuralPartialEq for HardcodedSync
Auto Trait Implementations§
impl Freeze for HardcodedSync
impl RefUnwindSafe for HardcodedSync
impl Send for HardcodedSync
impl Sync for HardcodedSync
impl Unpin for HardcodedSync
impl UnwindSafe for HardcodedSync
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