projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use ChainWatchInterfaceUtil directly in tests instead of a wrapper
[rust-lightning]
/
src
/
util
/
transaction_utils.rs
diff --git
a/src/util/transaction_utils.rs
b/src/util/transaction_utils.rs
index d597b775435d35b6a1d5b62cdeae605d27991153..8ecd78acc482ccd5c35df234de9e4d00cab113ec 100644
(file)
--- a/
src/util/transaction_utils.rs
+++ b/
src/util/transaction_utils.rs
@@
-8,9
+8,9
@@
pub fn sort_outputs<T>(outputs: &mut Vec<(TxOut, T)>) { //TODO: Make static and
Ordering::Less
} else if b.0.value < a.0.value {
Ordering::Greater
Ordering::Less
} else if b.0.value < a.0.value {
Ordering::Greater
- } else if a.0.script_pubkey[..] < b.0.script_pubkey[..] { //TODO: ordering of scripts shouldnt be len-based
+ } else if a.0.script_pubkey[..] < b.0.script_pubkey[..] { //TODO: ordering of scripts shouldn
'
t be len-based
Ordering::Less
Ordering::Less
- } else if b.0.script_pubkey[..] < a.0.script_pubkey[..] { //TODO: ordering of scripts shouldnt be len-based
+ } else if b.0.script_pubkey[..] < a.0.script_pubkey[..] { //TODO: ordering of scripts shouldn
'
t be len-based
Ordering::Greater
} else {
Ordering::Equal
Ordering::Greater
} else {
Ordering::Equal