mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
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.
22 lines
486 B
Go
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
|
|
}
|