pub struct ParitySet<T> { /* private fields */ }
Expand description
Parity_Set
Specific API
Implementations§
Source§impl<T: Transport> ParitySet<T>
impl<T: Transport> ParitySet<T>
Sourcepub fn accept_non_reserved_peers(&self) -> CallFuture<bool, T::Out> ⓘ
pub fn accept_non_reserved_peers(&self) -> CallFuture<bool, T::Out> ⓘ
Set Parity to accept non-reserved peers (default behavior)
Sourcepub fn add_reserved_peer(&self, enode: &str) -> CallFuture<bool, T::Out> ⓘ
pub fn add_reserved_peer(&self, enode: &str) -> CallFuture<bool, T::Out> ⓘ
Add a reserved peer
Sourcepub fn drop_non_reserved_peers(&self) -> CallFuture<bool, T::Out> ⓘ
pub fn drop_non_reserved_peers(&self) -> CallFuture<bool, T::Out> ⓘ
Set Parity to drop all non-reserved peers. To restore default behavior call parity_acceptNonReservedPeers
Sourcepub fn parity_net_peers(&self) -> CallFuture<ParityPeerType, T::Out> ⓘ
pub fn parity_net_peers(&self) -> CallFuture<ParityPeerType, T::Out> ⓘ
Get list of connected/connecting peers.
Sourcepub fn execute_upgrade(&self) -> CallFuture<bool, T::Out> ⓘ
pub fn execute_upgrade(&self) -> CallFuture<bool, T::Out> ⓘ
Attempts to upgrade Parity to the version specified in parity_upgradeReady
Sourcepub fn hash_content(&self, url: &str) -> CallFuture<H256, T::Out> ⓘ
pub fn hash_content(&self, url: &str) -> CallFuture<H256, T::Out> ⓘ
Creates a hash of a file at a given URL
Sourcepub fn remove_reserved_peer(&self, enode: &str) -> CallFuture<bool, T::Out> ⓘ
pub fn remove_reserved_peer(&self, enode: &str) -> CallFuture<bool, T::Out> ⓘ
Remove a reserved peer
Changes author (coinbase) for mined blocks
Sourcepub fn set_chain(&self, chain: &str) -> CallFuture<bool, T::Out> ⓘ
pub fn set_chain(&self, chain: &str) -> CallFuture<bool, T::Out> ⓘ
Sets the network spec file Parity is using
Sourcepub fn set_engine_signer(
&self,
address: &Address,
password: &str,
) -> CallFuture<bool, T::Out> ⓘ
pub fn set_engine_signer( &self, address: &Address, password: &str, ) -> CallFuture<bool, T::Out> ⓘ
Sets an authority account for signing consensus messages
Sourcepub fn set_extra_data(&self, data: &H256) -> CallFuture<bool, T::Out> ⓘ
pub fn set_extra_data(&self, data: &H256) -> CallFuture<bool, T::Out> ⓘ
Changes extra data for newly mined blocks
Sourcepub fn set_gas_ceil_target(&self, quantity: &H256) -> CallFuture<bool, T::Out> ⓘ
pub fn set_gas_ceil_target(&self, quantity: &H256) -> CallFuture<bool, T::Out> ⓘ
Sets new gas ceiling target for mined blocks
Sourcepub fn set_gas_floor_target(&self, quantity: &H256) -> CallFuture<bool, T::Out> ⓘ
pub fn set_gas_floor_target(&self, quantity: &H256) -> CallFuture<bool, T::Out> ⓘ
Sets a new gas floor target for mined blocks
Sourcepub fn set_max_transaction_gas(
&self,
quantity: &H256,
) -> CallFuture<bool, T::Out> ⓘ
pub fn set_max_transaction_gas( &self, quantity: &H256, ) -> CallFuture<bool, T::Out> ⓘ
Sets the maximum amount of gas a single transaction may consume
Sourcepub fn set_min_gas_price(&self, quantity: &H256) -> CallFuture<bool, T::Out> ⓘ
pub fn set_min_gas_price(&self, quantity: &H256) -> CallFuture<bool, T::Out> ⓘ
Changes minimal gas price for transaction to be accepted to the queue
Sourcepub fn set_mode(&self, mode: &str) -> CallFuture<bool, T::Out> ⓘ
pub fn set_mode(&self, mode: &str) -> CallFuture<bool, T::Out> ⓘ
Changes the operating mode of Parity.
Sourcepub fn set_transactions_limit(&self, limit: &H256) -> CallFuture<bool, T::Out> ⓘ
pub fn set_transactions_limit(&self, limit: &H256) -> CallFuture<bool, T::Out> ⓘ
Changes limit for transactions in queue. (NOT WORKING !)
Sourcepub fn upgrade_ready(&self) -> CallFuture<Option<String>, T::Out> ⓘ
pub fn upgrade_ready(&self) -> CallFuture<Option<String>, T::Out> ⓘ
Returns a ReleaseInfo object describing the release which is available for upgrade or null if none is available.