Package txrules provides transaction rules that should be followed by transaction authors for wide mempool acceptance and quick mining.
DefaultRelayFeePerKb is the default minimum relay fee policy for a mempool.
Transaction rule violations
CheckOutput performs simple consensus and policy tests on a transaction output.
FeeForSerializeSize calculates the required fee for a transaction of some arbitrary size given a mempool's relay fee policy.
GetDustThreshold is used to define the amount below which output will be determined as dust. Threshold is determined as 3 times the relay fee.
IsDustAmount determines whether a transaction output value and script length would cause the output to be considered dust. Transactions with dust outputs are not standard and are rejected by mempools with default policies.
IsDustOutput determines whether a transaction output is considered dust. Transactions with dust outputs are not standard and are rejected by mempools with default policies.