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:
Gav Wood
2018-04-09 16:28:06 +02:00
committed by GitHub
parent f72e9e7e13
commit 3024a839f2
19 changed files with 209 additions and 3 deletions
+3 -1
View File
@@ -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
}