mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-17 03:05:42 +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:
@@ -26,11 +26,13 @@ extern crate jsonrpc_http_server as http;
|
||||
use std::io;
|
||||
|
||||
/// Construct rpc `IoHandler`
|
||||
pub fn rpc_handler<S>(state: S) -> rpc::IoHandler where
|
||||
pub fn rpc_handler<S, T>(state: S, transaction_pool: T) -> rpc::IoHandler where
|
||||
S: apis::state::StateApi,
|
||||
T: apis::author::AuthorApi,
|
||||
{
|
||||
let mut io = rpc::IoHandler::new();
|
||||
io.extend_with(state.to_delegate());
|
||||
io.extend_with(transaction_pool.to_delegate());
|
||||
io
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user