From b26175b7c60005a4ed9ba1f3170088e9d331f1d6 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Mon, 26 Jul 2021 19:03:33 +0100 Subject: [PATCH] Set DOGE fees to sensible values for mainnet. These can probably be optimized. --- src/main/java/org/qortal/crosschain/Dogecoin.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/qortal/crosschain/Dogecoin.java b/src/main/java/org/qortal/crosschain/Dogecoin.java index 29ae538f..8fdc6874 100644 --- a/src/main/java/org/qortal/crosschain/Dogecoin.java +++ b/src/main/java/org/qortal/crosschain/Dogecoin.java @@ -19,11 +19,11 @@ public class Dogecoin extends Bitcoiny { public static final String CURRENCY_CODE = "DOGE"; - private static final Coin DEFAULT_FEE_PER_KB = Coin.valueOf(10000); // 0.0001 LTC per 1000 bytes + private static final Coin DEFAULT_FEE_PER_KB = Coin.valueOf(500000000); // 5 DOGE per 1000 bytes // Temporary values until a dynamic fee system is written. - private static final long MAINNET_FEE = 1000L; - private static final long NON_MAINNET_FEE = 1000L; // enough for TESTNET3 and should be OK for REGTEST + private static final long MAINNET_FEE = 110000000L; + private static final long NON_MAINNET_FEE = 10000L; // TODO: calibrate this private static final Map DEFAULT_ELECTRUMX_PORTS = new EnumMap<>(ConnectionType.class); static { @@ -145,14 +145,13 @@ public class Dogecoin extends Bitcoiny { // Actual useful methods for use by other classes - /** Default Dogecoin fee is lower than Bitcoin: only 10sats/byte. */ @Override public Coin getFeePerKb() { return DEFAULT_FEE_PER_KB; } /** - * Returns estimated LTC fee, in sats per 1000bytes, optionally for historic timestamp. + * Returns estimated DOGE fee, in sats per 1000bytes, optionally for historic timestamp. * * @param timestamp optional milliseconds since epoch, or null for 'now' * @return sats per 1000bytes, or throws ForeignBlockchainException if something went wrong