Skip to content

Commit

Permalink
Set Litecoin dust amount as 5460 (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
farukterzioglu authored Oct 29, 2024
1 parent 1340f17 commit 27a2fda
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions NBitcoin.Altcoins/Litecoin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,25 @@ public override Block CreateBlock()
{
return new LitecoinBlock(new LitecoinBlockHeader());
}
public override TxOut CreateTxOut()
{
return new LitecoinTxOut();
}
}

public class LitecoinTxOut : TxOut
{
public override Money GetDustThreshold()
{
// https://github.com/litecoin-project/litecoin/issues/791#issuecomment-1171535527
// https://github.com/litecoin-project/litecoin/commit/a02856e36a261173bd14d56c34caa7066f2a9e32#diff-1fc0f6b5081e8ed5dfa8bf230744ad08cc6f4c1147e98552f1f424b0492fe9bdR48
return Money.Coins(0.00005460m);
}
public override ConsensusFactory GetConsensusFactory()
{
return LitecoinConsensusFactory.Instance;
}
}

public class LitecoinTransaction : Transaction
{
Expand Down

0 comments on commit 27a2fda

Please sign in to comment.