Struct ethcore_rpc::v1::ParitySetClient
[−]
[src]
pub struct ParitySetClient<C, M, U, F = Client> where C: MiningBlockChainClient, M: MinerService, U: UpdateService, F: Fetch { /* fields omitted */ }
Parity-specific rpc interface for operations altering the settings.
Methods
impl<C, M, U, F> ParitySetClient<C, M, U, F> where C: MiningBlockChainClient, M: MinerService, U: UpdateService, F: Fetch
[src]
fn new(client: &Arc<C>,
miner: &Arc<M>,
updater: &Arc<U>,
net: &Arc<ManageNetwork>,
fetch: F)
-> Self
miner: &Arc<M>,
updater: &Arc<U>,
net: &Arc<ManageNetwork>,
fetch: F)
-> Self
Creates new ParitySetClient
with given Fetch
.
Trait Implementations
impl<C, M, U, F> ParitySet for ParitySetClient<C, M, U, F> where C: MiningBlockChainClient + 'static, M: MinerService + 'static, U: UpdateService + 'static, F: Fetch + 'static
[src]
fn set_min_gas_price(&self, gas_price: U256) -> Result<bool, Error>
Sets new minimal gas price for mined blocks.
fn set_gas_floor_target(&self, target: U256) -> Result<bool, Error>
Sets new gas floor target for mined blocks.
fn set_gas_ceil_target(&self, target: U256) -> Result<bool, Error>
Sets new gas ceiling target for mined blocks.
fn set_extra_data(&self, extra_data: Bytes) -> Result<bool, Error>
Sets new extra data for mined blocks.
Sets new author for mined block.
fn set_engine_signer(&self,
address: H160,
password: String)
-> Result<bool, Error>
address: H160,
password: String)
-> Result<bool, Error>
Sets account for signing consensus messages.
fn set_transactions_limit(&self, limit: usize) -> Result<bool, Error>
Sets the limits for transaction queue.
fn set_tx_gas_limit(&self, limit: U256) -> Result<bool, Error>
Sets the maximum amount of gas a single transaction may consume.
fn add_reserved_peer(&self, peer: String) -> Result<bool, Error>
Add a reserved peer.
fn remove_reserved_peer(&self, peer: String) -> Result<bool, Error>
Remove a reserved peer.
fn drop_non_reserved_peers(&self) -> Result<bool, Error>
Drop all non-reserved peers.
fn accept_non_reserved_peers(&self) -> Result<bool, Error>
Accept non-reserved peers (default behavior)
fn start_network(&self) -> Result<bool, Error>
Start the network. Read more
fn stop_network(&self) -> Result<bool, Error>
Stop the network. Read more
fn set_mode(&self, mode: String) -> Result<bool, Error>
Set the mode. Argument must be one of: "active", "passive", "dark", "offline".
fn hash_content(&self, url: String) -> BoxFuture<H256, Error>
Hash a file content under given URL.
fn upgrade_ready(&self) -> Result<Option<ReleaseInfo>, Error>
Is there a release ready for install?
fn execute_upgrade(&self) -> Result<bool, Error>
Execute a release which is ready according to upgrade_ready().
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Transform this into an IoDelegate
, automatically wrapping the parameters. Read more