mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 14:31:02 +00:00
Transaction queue integration + submission RPC (#99)
* Implement transaction queue RPC. * whitespace * Support without_std env in environmental! (#110) * Make environmental crate support without_std env. * Small doc fixes. * Remove dead code.
This commit is contained in:
@@ -118,7 +118,7 @@ pub fn run<I, T>(args: I, exit: mpsc::Receiver<()>) -> error::Result<()> where
|
||||
let rpc_port: u16 = port.parse().expect("Invalid RPC port value specified.");
|
||||
address.set_port(rpc_port);
|
||||
}
|
||||
let handler = rpc::rpc_handler(service.client());
|
||||
let handler = rpc::rpc_handler(service.client(), service.transaction_pool());
|
||||
let _server = rpc::start_http(&address, handler)?;
|
||||
|
||||
exit.recv().ok();
|
||||
@@ -150,6 +150,7 @@ fn default_base_path() -> PathBuf {
|
||||
&app_info,
|
||||
).expect("app directories exist on all supported platforms; qed")
|
||||
}
|
||||
|
||||
fn init_logger(pattern: &str) {
|
||||
let mut builder = env_logger::LogBuilder::new();
|
||||
// Disable info logging by default for some modules:
|
||||
|
||||
Reference in New Issue
Block a user