Branch: refs/heads/master
Home: https://github.com/btcsuite/btcutil
Commit: 0df67ee0646e5fb24d4d25cb0b58abc642cd80a9
https://github.com/btcsuite/btcutil/commit/0df67ee0646e5fb24d4d25cb0b58abc642cd80a9
Author: Dave Collins <[email protected]>
Date: 2015-10-23 (Fri, 23 Oct 2015)
Changed paths:
M txsort/txsort.go
M txsort/txsort_test.go
Log Message:
-----------
txsort: Add InPlaceSort function.
This adds a new function with loud warnings which allows sorting a
transaction in place by mutating it. This is more efficient for the
caller if they are the ones creating the transaction and are sure it
will not invalid any cache or containing structures.
The Sort function which makes a copy and is therefore does not mutate
the passed transaction is still available and the default method.