dogecoin / dogecoin/libdohj

Litecoin minNonDustOutput is wrong?

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
126
Forks
95
PR merge metrics
No merged PRs in 30d

Description

According to the following site:
[https://litecoin.info/Transaction_fees](https://litecoin.info/Transaction_fees)
The minimum non-dust output of litecoin is 0.001 LTC.

In the AbstractLitecoinParams.java file this parameter is set to Coin.COIN:

@Override
public Coin getMinNonDustOutput() {
return Coin.COIN;
}

Which is 1 LTC:

/**
* The number of satoshis equal to one bitcoin.
*/
private static final long COIN_VALUE = LongMath.pow(10, SMALLEST_UNIT_EXPONENT);

/**
* One Bitcoin.
*/
public static final Coin COIN = Coin.valueOf(COIN_VALUE);

Note: in Doge it's also set to 1 Doge (litecoin probably copy-pasted this), in namecoin it's set to the bitcoin default `Transaction.MIN_NONDUST_OUTPUT;` which is 2730 satoshi.

Proposal:

@Override
public Coin getMinNonDustOutput() {
return Coin.valueof(100000);
}

Can anyone confirm this interpretation?
Should the other values in that table be checked as well?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.