lbryio / lbcd

An alternative full node implementation of LBRY's blockchain written in Go (golang)
https://lbry.com/
ISC License
38 stars 25 forks source link

policy: relax dust thrashold to 1000 dewies/kB, which aligns to lbrycrd #92

Closed roylee17 closed 2 years ago

roylee17 commented 2 years ago

An output is considered dust if the cost to the network to spend the coins is more than 1/3 of the minimum free transaction relay fee, which has a default rate of 1000 satoshis/kb

bitcoind refactored dust threshold calculation, which removed the multiply factor of 3 from the code, but increased the DUST_RELAY_TX_FEE from 1000 to 3000 (satoshi/kb).

lbrycrd adopted the refactored code but also kept the rate to 1000 dewies/kB, which means:

An output is considered dust if the cost to the network to spend the
coins is more than the minimum free transaction relay fee.

This commit updates lbcd to align the policy.

roylee17 commented 2 years ago

Reference:

roylee17 commented 2 years ago

Fix #89

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 2975325203


Files with Coverage Reduction New Missed Lines %
mempool/mempool.go 1 65.36%
peer/peer.go 8 76.31%
<!-- Total: 9 -->
Totals Coverage Status
Change from base Build 2968257507: 0.01%
Covered Lines: 22486
Relevant Lines: 43533

💛 - Coveralls