PR #7 by @freddiehonohan allowed the hardcoded dust limit to be overridden by the user with a dustLimit config option. This has been merged but not released yet.
Propose reverting this change and replacing the dust limit constant with a function that is determined by output script size and miner relay fee.
rates config option should include mine and relay figures. User can provide their own rates object straight from minercraft. Care needed to ensure this isn't a breaking change for some.
the build() function should calculate the dustLimit for each output programatically - as per function above
PR #7 by @freddiehonohan allowed the hardcoded dust limit to be overridden by the user with a
dustLimit
config option. This has been merged but not released yet.Propose reverting this change and replacing the dust limit constant with a function that is determined by output script size and miner relay fee.
See https://github.com/bitcoin-sv/bitcoin-sv/blob/master/src/primitives/transaction.h#L188-L208 for reference.
Correct function should be:
Required changes:
rates
config option should include mine and relay figures. User can provide their own rates object straight from minercraft. Care needed to ensure this isn't a breaking change for some.build()
function should calculate the dustLimit for each output programatically - as per function above