lnd/lntemp/rpc/signer.go
Oliver Gugger 2221d0ccb1
lntest+lntemp: add itest case for wallet rescan problem
In this commit we add a test that demonstrates the problem of ghost
UTXOs lingering in the wallet after a re-scan, even if they were spent.

NOTE: This test shows the incorrect behavior and will be adjusted in a
follow-up commit to show the correct behavior after patching the
btcwallet version.
2022-12-09 00:56:49 +01:00

22 lines
486 B
Go

package rpc
import (
"context"
"github.com/lightningnetwork/lnd/lnrpc/signrpc"
)
// =====================
// Signer related RPCs.
// =====================
// 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
}