fix issue where gap limit was not increased when wallet could partially sign transaction

This commit is contained in:
Craig Raw 2024-04-12 09:12:33 +02:00
parent 3600d32ffd
commit 93893111c6
2 changed files with 2 additions and 2 deletions

2
drongo

@ -1 +1 @@
Subproject commit b128bb895d43dfb97ddb4625425b975182753e5d
Subproject commit 42de57026c2c2d8f0feaa2e7a9db33e4decc617f

View file

@ -1386,7 +1386,7 @@ public class HeadersController extends TransactionFormController implements Init
@Subscribe
public void openWallets(OpenWalletsEvent event) {
if(id.getScene().getWindow().equals(event.getWindow()) && headersForm.getPsbt() != null && headersForm.getBlockTransaction() == null) {
List<Wallet> availableWallets = event.getWallets().stream().filter(wallet -> wallet.canSign(headersForm.getPsbt())).sorted(new WalletSignComparator()).collect(Collectors.toList());
List<Wallet> availableWallets = event.getWallets().stream().filter(wallet -> wallet.canSignAllInputs(headersForm.getPsbt())).sorted(new WalletSignComparator()).collect(Collectors.toList());
if(availableWallets.isEmpty()) {
for(Wallet wallet : event.getWalletsMap().keySet()) {
if(wallet.isValid() && !wallet.getSigningKeystores(headersForm.getPsbt()).isEmpty()) {