forked from Qortal/qortal
Set DOGE fees to sensible values for mainnet. These can probably be optimized.
This commit is contained in:
parent
ffc6befb38
commit
b26175b7c6
@ -19,11 +19,11 @@ public class Dogecoin extends Bitcoiny {
|
|||||||
|
|
||||||
public static final String CURRENCY_CODE = "DOGE";
|
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.
|
// Temporary values until a dynamic fee system is written.
|
||||||
private static final long MAINNET_FEE = 1000L;
|
private static final long MAINNET_FEE = 110000000L;
|
||||||
private static final long NON_MAINNET_FEE = 1000L; // enough for TESTNET3 and should be OK for REGTEST
|
private static final long NON_MAINNET_FEE = 10000L; // TODO: calibrate this
|
||||||
|
|
||||||
private static final Map<ConnectionType, Integer> DEFAULT_ELECTRUMX_PORTS = new EnumMap<>(ConnectionType.class);
|
private static final Map<ConnectionType, Integer> DEFAULT_ELECTRUMX_PORTS = new EnumMap<>(ConnectionType.class);
|
||||||
static {
|
static {
|
||||||
@ -145,14 +145,13 @@ public class Dogecoin extends Bitcoiny {
|
|||||||
|
|
||||||
// Actual useful methods for use by other classes
|
// Actual useful methods for use by other classes
|
||||||
|
|
||||||
/** Default Dogecoin fee is lower than Bitcoin: only 10sats/byte. */
|
|
||||||
@Override
|
@Override
|
||||||
public Coin getFeePerKb() {
|
public Coin getFeePerKb() {
|
||||||
return DEFAULT_FEE_PER_KB;
|
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'
|
* @param timestamp optional milliseconds since epoch, or null for 'now'
|
||||||
* @return sats per 1000bytes, or throws ForeignBlockchainException if something went wrong
|
* @return sats per 1000bytes, or throws ForeignBlockchainException if something went wrong
|
||||||
|
Loading…
x
Reference in New Issue
Block a user