mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
itest: add gettransactiondetails
This commit is contained in:
@@ -3,6 +3,7 @@ package rpc
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/lightningnetwork/lnd/lnrpc"
|
||||
"github.com/lightningnetwork/lnd/lnrpc/signrpc"
|
||||
"github.com/lightningnetwork/lnd/lnrpc/walletrpc"
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -196,6 +197,19 @@ func (h *HarnessRPC) PublishTransaction(
|
||||
return resp
|
||||
}
|
||||
|
||||
// GetTransaction makes a RPC call to the node's WalletKitClient and asserts.
|
||||
func (h *HarnessRPC) GetTransaction(
|
||||
req *walletrpc.GetTransactionRequest) *lnrpc.Transaction {
|
||||
|
||||
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
||||
defer cancel()
|
||||
|
||||
resp, err := h.WalletKit.GetTransaction(ctxt, req)
|
||||
h.NoError(err, "GetTransaction")
|
||||
|
||||
return resp
|
||||
}
|
||||
|
||||
// BumpFee makes a RPC call to the node's WalletKitClient and asserts.
|
||||
func (h *HarnessRPC) BumpFee(
|
||||
req *walletrpc.BumpFeeRequest) *walletrpc.BumpFeeResponse {
|
||||
|
||||
Reference in New Issue
Block a user