reduce time to check broadcasted tx

This commit is contained in:
Craig Raw 2020-12-16 12:37:38 +02:00
parent eda96af607
commit 3134a9ad42

View file

@ -801,7 +801,7 @@ public class HeadersController extends TransactionFormController implements Init
} }
transactionMempoolService = new ElectrumServer.TransactionMempoolService(headersForm.getSigningWallet(), headersForm.getTransaction().getTxId(), headersForm.getSigningWalletNodes()); transactionMempoolService = new ElectrumServer.TransactionMempoolService(headersForm.getSigningWallet(), headersForm.getTransaction().getTxId(), headersForm.getSigningWalletNodes());
transactionMempoolService.setDelay(Duration.seconds(5)); transactionMempoolService.setDelay(Duration.seconds(3));
transactionMempoolService.setPeriod(Duration.seconds(10)); transactionMempoolService.setPeriod(Duration.seconds(10));
transactionMempoolService.setOnSucceeded(mempoolWorkerStateEvent -> { transactionMempoolService.setOnSucceeded(mempoolWorkerStateEvent -> {
Set<String> scriptHashes = transactionMempoolService.getValue(); Set<String> scriptHashes = transactionMempoolService.getValue();