From a5a272d4570c18dd3e1766011b72f0190c3a89d3 Mon Sep 17 00:00:00 2001 From: Oscar Guindzberg Date: Mon, 22 Apr 2019 18:50:42 -0300 Subject: [PATCH] bitcoinj 0.15: BisqRiskAnalisys: Add commented out code to match original DefaultRiskAnalysis. --- .../main/java/bisq/core/btc/wallet/BisqRiskAnalysis.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/main/java/bisq/core/btc/wallet/BisqRiskAnalysis.java b/core/src/main/java/bisq/core/btc/wallet/BisqRiskAnalysis.java index 6158359702c..ba360a4baf9 100644 --- a/core/src/main/java/bisq/core/btc/wallet/BisqRiskAnalysis.java +++ b/core/src/main/java/bisq/core/btc/wallet/BisqRiskAnalysis.java @@ -115,6 +115,13 @@ private Result analyzeIsFinal() { if (tx.getConfidence().getSource() == TransactionConfidence.Source.SELF) return Result.OK; +// Commented out to accept replace-by-fee txs. +// // We consider transactions that opt into replace-by-fee at risk of double spending. +// if (tx.isOptInFullRBF()) { +// nonFinal = tx; +// return Result.NON_FINAL; +// } + // Relative time-locked transactions are risky too. We can't check the locks because usually we don't know the // spent outputs (to know when they were created). if (tx.hasRelativeLockTime()) {