mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-10-05 11:08:25 +00:00
match the amounts in rbf insufficient fee broadcast errors without backtracking
This commit is contained in:
@@ -84,8 +84,8 @@ public class HeadersController extends TransactionFormController implements Init
|
|||||||
public static final String MIN_LOCKTIME_DATE = "1985-11-05T00:53:20Z";
|
public static final String MIN_LOCKTIME_DATE = "1985-11-05T00:53:20Z";
|
||||||
|
|
||||||
private static final Pattern MIN_MEMPOOL_FEE = Pattern.compile("the transaction was rejected by network rules.*mempool min fee not met, (\\d+) < (\\d+).*", Pattern.DOTALL | Pattern.MULTILINE);
|
private static final Pattern MIN_MEMPOOL_FEE = Pattern.compile("the transaction was rejected by network rules.*mempool min fee not met, (\\d+) < (\\d+).*", Pattern.DOTALL | Pattern.MULTILINE);
|
||||||
private static final Pattern RBF_INSUFFICIENT_FEE = Pattern.compile("insufficient fee, rejecting replacement.*?(\\d+\\.?\\d*) < (\\d+\\.?\\d*)");
|
private static final Pattern RBF_INSUFFICIENT_FEE = Pattern.compile("insufficient fee, rejecting replacement.*?(?<![\\d.])(\\d++\\.?+\\d*+) < (\\d++\\.?+\\d*+)");
|
||||||
private static final Pattern RBF_INSUFFICIENT_FEE_RATE = Pattern.compile("insufficient fee, rejecting replacement.*new feerate (\\d+\\.?\\d*)[^\\d]*(\\d+\\.?\\d*)[^\\d]*");
|
private static final Pattern RBF_INSUFFICIENT_FEE_RATE = Pattern.compile("insufficient fee, rejecting replacement.*new feerate (\\d++\\.?+\\d*+)[^\\d]*+(\\d++\\.?+\\d*+)[^\\d]*+");
|
||||||
|
|
||||||
private static final double FEE_MULTIPLE_LIMIT = 100d;
|
private static final double FEE_MULTIPLE_LIMIT = 100d;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user