mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
FIX: incorrect fees occasionally (for some electrum servers); better fee estimation
This commit is contained in:
parent
ba737f9cf2
commit
7ddc0e8f0a
@ -10,6 +10,10 @@ export const NetworkTransactionFeeType = Object.freeze({
|
||||
export class NetworkTransactionFee {
|
||||
static StorageKey = 'NetworkTransactionFee';
|
||||
|
||||
private fastestFee: number;
|
||||
private mediumFee: number;
|
||||
private slowFee: number;
|
||||
|
||||
constructor(fastestFee = 2, mediumFee = 1, slowFee = 1) {
|
||||
this.fastestFee = fastestFee;
|
||||
this.mediumFee = mediumFee;
|
||||
@ -18,7 +22,7 @@ export class NetworkTransactionFee {
|
||||
}
|
||||
|
||||
export default class NetworkTransactionFees {
|
||||
static recommendedFees() {
|
||||
static recommendedFees(): Promise<NetworkTransactionFee> {
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
return new Promise(async resolve => {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user