config: cswal_light, mempool_broadcast, mempool_reap

This commit is contained in:
Ethan Buchman
2016-03-01 16:04:19 -05:00
parent 69d906f7dd
commit 3891e4d66d
12 changed files with 51 additions and 7 deletions

View File

@ -20,6 +20,7 @@ var Routes = map[string]*rpc.RPCFunc{
"broadcast_tx_sync": rpc.NewRPCFunc(BroadcastTxSyncResult, "tx"),
"broadcast_tx_async": rpc.NewRPCFunc(BroadcastTxAsyncResult, "tx"),
"unconfirmed_txs": rpc.NewRPCFunc(UnconfirmedTxsResult, ""),
"test_start_mempool": rpc.NewRPCFunc(TestStartMempoolResult, ""), // move to test server ?
// subscribe/unsubscribe are reserved for websocket events.
}
@ -126,3 +127,11 @@ func BroadcastTxAsyncResult(tx []byte) (ctypes.TMResult, error) {
return r, nil
}
}
func TestStartMempoolResult() (ctypes.TMResult, error) {
if r, err := TestStartMempool(); err != nil {
return nil, err
} else {
return r, nil
}
}