bitcoinj 0.15: BisqRiskAnalisys: Add commented out code to match original DefaultRiskAnalysis.

This commit is contained in:
Oscar Guindzberg 2019-04-22 18:50:42 -03:00
parent d8e0ba752f
commit 5a00770377
No known key found for this signature in database
GPG Key ID: 209796BF2E1D4F75

View File

@ -115,6 +115,13 @@ public class BisqRiskAnalysis implements RiskAnalysis {
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()) {