2022-07-22 08:18:18 +08:00
|
|
|
package rpc
|
|
|
|
|
2022-12-08 11:48:51 +01:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/lightningnetwork/lnd/lnrpc/signrpc"
|
|
|
|
)
|
|
|
|
|
2022-07-22 08:18:18 +08:00
|
|
|
// =====================
|
|
|
|
// Signer related RPCs.
|
|
|
|
// =====================
|
2022-12-08 11:48:51 +01:00
|
|
|
|
|
|
|
// SignOutputRaw makes a RPC call to node's SignOutputRaw and asserts.
|
|
|
|
func (h *HarnessRPC) SignOutputRaw(req *signrpc.SignReq) *signrpc.SignResp {
|
|
|
|
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
|
|
|
defer cancel()
|
|
|
|
|
|
|
|
resp, err := h.Signer.SignOutputRaw(ctxt, req)
|
|
|
|
h.NoError(err, "SignOutputRaw")
|
|
|
|
|
|
|
|
return resp
|
|
|
|
}
|