Struct ethcore::spec::SpecHardcodedSync
[−]
[src]
pub struct SpecHardcodedSync {
pub header: Header,
pub total_difficulty: U256,
pub chts: Vec<H256>,
}Part of Spec. Describes the hardcoded synchronization parameters.
Fields
header: Header
Header of the block to jump to for hardcoded sync, and total difficulty.
total_difficulty: U256
Total difficulty of the block to jump to.
chts: Vec<H256>
List of hardcoded CHTs, in order. If hardcoded_sync is set, the CHTs should include the
header of hardcoded_sync.
Methods
impl SpecHardcodedSync[src]
impl SpecHardcodedSyncpub fn to_json(self) -> HardcodedSync[src]
pub fn to_json(self) -> HardcodedSyncTurns this specifications back into JSON. Useful for pretty printing.
Trait Implementations
impl From<SpecHardcodedSync> for HardcodedSync[src]
impl From<SpecHardcodedSync> for HardcodedSyncfn from(sync: SpecHardcodedSync) -> HardcodedSync[src]
fn from(sync: SpecHardcodedSync) -> HardcodedSyncPerforms the conversion.
Auto Trait Implementations
impl Send for SpecHardcodedSync
impl Send for SpecHardcodedSyncimpl Sync for SpecHardcodedSync
impl Sync for SpecHardcodedSync