mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
fix issue where gap limit was not increased when wallet could partially sign transaction
This commit is contained in:
parent
3600d32ffd
commit
93893111c6
2 changed files with 2 additions and 2 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
||||||
Subproject commit b128bb895d43dfb97ddb4625425b975182753e5d
|
Subproject commit 42de57026c2c2d8f0feaa2e7a9db33e4decc617f
|
|
@ -1386,7 +1386,7 @@ public class HeadersController extends TransactionFormController implements Init
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void openWallets(OpenWalletsEvent event) {
|
public void openWallets(OpenWalletsEvent event) {
|
||||||
if(id.getScene().getWindow().equals(event.getWindow()) && headersForm.getPsbt() != null && headersForm.getBlockTransaction() == null) {
|
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()) {
|
if(availableWallets.isEmpty()) {
|
||||||
for(Wallet wallet : event.getWalletsMap().keySet()) {
|
for(Wallet wallet : event.getWalletsMap().keySet()) {
|
||||||
if(wallet.isValid() && !wallet.getSigningKeystores(headersForm.getPsbt()).isEmpty()) {
|
if(wallet.isValid() && !wallet.getSigningKeystores(headersForm.getPsbt()).isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue