pub struct DummyAdapter {}
A no-op network adapter used for testing.
Current total difficulty on our chain
A valid transaction has been received from one of our peers
A block has been received from one of our peers. Returns true if the block could be handled properly and is not deemed defective by the chain. Returning false means the block will never be valid and may result in the peer being banned. Read more
A set of block header has been received, typically in response to a block header request. Read more
Finds a list of block headers based on the provided locator. Tries to identify the common chain and gets the headers that follow it immediately. Read more
Gets a full block by its hash.
Provides a reading view into the current txhashset state as well as the required indexes for a consumer to rewind to a consistant state at the provided block hash. Read more
Whether the node is ready to accept a new txhashset. If this isn't the case, the archive is provided without being requested and likely an attack attempt. This should be checked before downloading the whole state data. Read more
Writes a reading view on a txhashset state that's been provided to us. If we're willing to accept that new state, the data stream will be read as a zip file, unzipped and the resulting state files should be rewound to the provided indexes. Read more
Update txhashset downloading progress
Find good peers we know with the provided capability and return their addresses. Read more
A list of peers has been received from one of our peers.
Heard total_difficulty from a connected peer (via ping/pong).
Is this peer currently banned?
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> UnsafeAny for T where T: Any, | |
impl<T> SafeBorrow for T where T: ?Sized, | |
Given ptr
, which was obtained from a prior call to Self::borrow()
, return a value with the same nominal lifetime which is guaranteed to survive mutations to Self
. Read more