mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-11-05 11:56:37 +00:00
Add STATIC_1_SAT_PER_VBYTE as FeeRatesSource
Uses a hardcoded url to the raw file feeRatesSource-static-1-sat-per-vbyte.json, queried from https://raw.githubusercontent.com/sparrowwallet/sparrow/master/src/main/resources/com/sparrowwallet/sparrow/preferences/
This commit is contained in:
parent
b66e607837
commit
41505d67de
1 changed files with 7 additions and 0 deletions
|
|
@ -35,6 +35,13 @@ public enum FeeRatesSource {
|
|||
String url = "https://bitcoinfees.earn.com/api/v1/fees/recommended";
|
||||
return getThreeTierFeeRates(defaultblockTargetFeeRates, url);
|
||||
}
|
||||
},
|
||||
STATIC_1_SAT_PER_VBYTE("Static: Always 1 sat/vB") {
|
||||
@Override
|
||||
public Map<Integer, Double> getBlockTargetFeeRates(Map<Integer, Double> defaultblockTargetFeeRates) {
|
||||
String url = "https://raw.githubusercontent.com/sparrowwallet/sparrow/master/src/main/resources/com/sparrowwallet/sparrow/preferences/feeRatesSource-static-1-sat-per-vbyte.json";
|
||||
return getThreeTierFeeRates(defaultblockTargetFeeRates, url);
|
||||
}
|
||||
};
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(FeeRatesSource.class);
|
||||
|
|
|
|||
Loading…
Reference in a new issue