Skip to content

Commit d9dd3c0

Browse files
authored
Merge pull request #1475 from bhandras/commitvirtualpsbts-custom-lock
taprpc: support custom lock ID and expiration in CommitVirtualPsbts
2 parents 09b41d0 + 19b5d96 commit d9dd3c0

File tree

5 files changed

+272
-218
lines changed

5 files changed

+272
-218
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
run:
22
# timeout for analysis
3-
timeout: 4m
3+
timeout: 10m
44

55
linters-settings:
66
errorlint:

rpcserver.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -2532,8 +2532,10 @@ func (r *rpcServer) CommitVirtualPsbts(ctx context.Context,
25322532
Template: &walletrpc.FundPsbtRequest_CoinSelect{
25332533
CoinSelect: coinSelect,
25342534
},
2535-
MinConfs: 1,
2536-
ChangeType: P2TRChangeType,
2535+
MinConfs: 1,
2536+
ChangeType: P2TRChangeType,
2537+
CustomLockId: req.CustomLockId,
2538+
LockExpirationSeconds: req.LockExpirationSeconds,
25372539
}
25382540

25392541
// Unfortunately we can't use the same RPC types, so we have to do a

0 commit comments

Comments
 (0)