Documentation ¶
Overview ¶
Package txrules provides transaction rules that should be followed by transaction authors for wide mempool acceptance and quick mining.
Index ¶
Constants ¶
View Source
const DefaultRelayFeePerKb ltcutil.Amount = 1e3
DefaultRelayFeePerKb is the default minimum relay fee policy for a mempool.
Variables ¶
View Source
var ( ErrAmountNegative = errors.New("transaction output amount is negative") ErrAmountExceedsMax = errors.New("transaction output amount exceeds maximum value") ErrOutputIsDust = errors.New("transaction output is dust") )
Transaction rule violations
Functions ¶
func CheckOutput ¶
CheckOutput performs simple consensus and policy tests on a transaction output.
func FeeForSerializeSize ¶
FeeForSerializeSize calculates the required fee for a transaction of some arbitrary size given a mempool's relay fee policy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.