mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Adjust fee estimation to avoid risk for unconfirmed txs. Reduce maxBlocks from 20 to 15 and change timespan for average from 1 hour to 30 min.
This commit is contained in:
parent
43fc8eb365
commit
b348255be9
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ import java.util.LinkedList;
|
|||
//TODO consider alternative https://www.bitgo.com/api/v1/tx/fee?numBlocks=3
|
||||
@Slf4j
|
||||
public class BtcFeesProvider {
|
||||
static int CAPACITY = 12; // we request each 5 min. so we take average of last hour
|
||||
static int MAX_BLOCKS = 20;
|
||||
static int CAPACITY = 6; // we request each 5 min. so we take average of last 30 min.
|
||||
static int MAX_BLOCKS = 15;
|
||||
|
||||
private final HttpClient httpClient;
|
||||
LinkedList<Long> fees = new LinkedList<>();
|
||||
|
|
Loading…
Add table
Reference in a new issue