Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InPlaceSort ¶
func InPlaceSort(tx *wire.MsgTx)
InPlaceSort modifies the passed transaction inputs and outputs to be sorted according to the description in the package documentation.
WARNING: This function must NOT be called with published transactions since it will mutate the transaction if it's not already sorted. This can cause issues if you mutate a tx in a block, for example, which would invalidate the block. It could also cause cached hashes, such as in a dcrutil.Tx to become invalidated.
The function should only be used if the caller is creating the transaction or is otherwise 100% positive mutating will not cause adverse affects due to other dependencies.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.