mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 17:29:23 +00:00
parent
a75f5597df
commit
f67c9e6402
1 changed files with 0 additions and 12 deletions
|
@ -1020,18 +1020,6 @@ class ElectrumXClient {
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
// If the response is -1 or null, return a temporary hardcoded value for
|
|
||||||
// Dogecoin. This is a temporary fix until the fee estimation is fixed.
|
|
||||||
if (coin == Coin.dogecoin &&
|
|
||||||
(response == null ||
|
|
||||||
response == -1 ||
|
|
||||||
Decimal.parse(response.toString()) == Decimal.parse("-1"))) {
|
|
||||||
// Return 0.05 for slow, 0.2 for average, and 1 for fast txs.
|
|
||||||
// These numbers produce tx fees in line with txs in the wild on
|
|
||||||
// https://dogechain.info/
|
|
||||||
return Decimal.parse((1 / blocks).toString());
|
|
||||||
// TODO [prio=med]: Fix fee estimation.
|
|
||||||
}
|
|
||||||
return Decimal.parse(response.toString());
|
return Decimal.parse(response.toString());
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
final String msg = "Error parsing fee rate. Response: $response"
|
final String msg = "Error parsing fee rate. Response: $response"
|
||||||
|
|
Loading…
Reference in a new issue