Commit 4a3d2ac7 authored by mdj33's avatar mdj33 Committed by vipwzw

fix relay ut

parent b7ae2556
...@@ -46,7 +46,6 @@ func TestJRPCChannel(t *testing.T) { ...@@ -46,7 +46,6 @@ func TestJRPCChannel(t *testing.T) {
{fn: testCreateRawRelayAcceptTxCmd}, {fn: testCreateRawRelayAcceptTxCmd},
{fn: testCreateRawRevokeTxCmd}, {fn: testCreateRawRevokeTxCmd},
{fn: testCreateRawRelayConfirmTxCmd}, {fn: testCreateRawRelayConfirmTxCmd},
{fn: testCreateRawRelayVerifyBTCTxCmd},
{fn: testCreateRawRelayBtcHeaderCmd}, {fn: testCreateRawRelayBtcHeaderCmd},
{fn: testGetBTCHeaderCurHeight}, {fn: testGetBTCHeaderCurHeight},
} }
...@@ -130,11 +129,7 @@ func testCreateRawRelayConfirmTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) e ...@@ -130,11 +129,7 @@ func testCreateRawRelayConfirmTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) e
return jrpc.Call("relay.CreateRawRelayConfirmTx", params, &res) return jrpc.Call("relay.CreateRawRelayConfirmTx", params, &res)
} }
func testCreateRawRelayVerifyBTCTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
params := pty.RelayVerifyCli{}
var res string
return jrpc.Call("relay.CreateRawRelayVerifyBTCTx", params, &res)
}
func testCreateRawRelayBtcHeaderCmd(t *testing.T, jrpc *jsonclient.JSONClient) error { func testCreateRawRelayBtcHeaderCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
params := pty.BtcHeader{} params := pty.BtcHeader{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment