Skip to content

Commit

Permalink
bitcoinj 0.15: BisqRiskAnalisys: Add commented out code to match orig…
Browse files Browse the repository at this point in the history
…inal DefaultRiskAnalysis.
  • Loading branch information
oscarguindzberg committed May 9, 2019
1 parent 5957b67 commit a5a272d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/main/java/bisq/core/btc/wallet/BisqRiskAnalysis.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit a5a272d

Please sign in to comment.