pub fn node_apis<B, P>(
addr: &str,
chain: Arc<Chain>,
tx_pool: Arc<RwLock<TransactionPool<B, P>>>,
peers: Arc<Peers>,
sync_state: Arc<SyncState>,
api_secret: Option<String>,
foreign_api_secret: Option<String>,
tls_config: Option<TLSConfig>,
api_chan: &'static mut (Sender<()>, Receiver<()>),
stop_state: Arc<StopState>
) -> Result<(), Error>where
B: BlockChain + 'static,
P: PoolAdapter + 'static,
Expand description
Listener version, providing same API but listening for requests on a port and wrapping the calls