pub trait ParitySet: Sized + Send + Sync + 'static {
Show 20 methods fn set_min_gas_price(&self, _: U256) -> Result<bool>;
fn set_gas_floor_target(&self, _: U256) -> Result<bool>;
fn set_gas_ceil_target(&self, _: U256) -> Result<bool>;
fn set_extra_data(&self, _: Bytes) -> Result<bool>;
fn set_author(&self, _: H160) -> Result<bool>;
fn set_engine_signer_secret(&self, _: H256) -> Result<bool>;
fn clear_engine_signer(&self) -> Result<bool>;
fn set_transactions_limit(&self, _: usize) -> Result<bool>;
fn set_tx_gas_limit(&self, _: U256) -> Result<bool>;
fn add_reserved_peer(&self, _: String) -> Result<bool>;
fn remove_reserved_peer(&self, _: String) -> Result<bool>;
fn drop_non_reserved_peers(&self) -> Result<bool>;
fn accept_non_reserved_peers(&self) -> Result<bool>;
fn start_network(&self) -> Result<bool>;
fn stop_network(&self) -> Result<bool>;
fn set_mode(&self, _: String) -> Result<bool>;
fn set_spec_name(&self, _: String) -> Result<bool>;
fn hash_content(&self, _: String) -> BoxFuture<H256>;
fn remove_transaction(&self, _: H256) -> Result<Option<Transaction>>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... }
}
Expand description

Parity-specific rpc interface for operations altering the settings.

Required methods

Sets new minimal gas price for mined blocks.

Sets new gas floor target for mined blocks.

Sets new gas ceiling target for mined blocks.

Sets new extra data for mined blocks.

Sets new author for mined block.

Sets the secret of engine signer account.

Unsets the engine signer account address.

Sets the limits for transaction queue.

Sets the maximum amount of gas a single transaction may consume.

Add a reserved peer.

Remove a reserved peer.

Drop all non-reserved peers.

Accept non-reserved peers (default behavior)

Start the network.

@deprecated - Use set_mode("active") instead.

Stop the network.

@deprecated - Use set_mode("offline") instead.

Set the mode. Argument must be one of: “active”, “passive”, “dark”, “offline”.

Set the network spec. Argument must be one of pre-configured chains or a filename.

Hash a file content under given URL.

Removes transaction from transaction queue. Makes sense only for transactions that were not propagated to other peers yet like scheduled transactions or transactions in future. It might also work for some local transactions with to low gas price or excessive gas limit that are not accepted by other peers whp. Returns true when transaction was removed, false if it was not found.

Provided methods

Create an IoDelegate, wiring rpc calls to the trait methods.

Implementors