projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up excess \ns in route debug, use all debug encoders
[rust-lightning]
/
src
/
util
/
transaction_utils.rs
diff --git
a/src/util/transaction_utils.rs
b/src/util/transaction_utils.rs
index 9ad0b82436ef6e4cb22e3b81ab79355b3c90f716..92bc209abb1978aa29cb75edecff7bc094204c6e 100644
(file)
--- a/
src/util/transaction_utils.rs
+++ b/
src/util/transaction_utils.rs
@@
-40,11
+40,11
@@
mod tests {
use bitcoin::blockdata::script::{Script, Builder};
use bitcoin::blockdata::transaction::TxOut;
use bitcoin::blockdata::script::{Script, Builder};
use bitcoin::blockdata::transaction::TxOut;
- use bitcoin::util::hash::Sha256dHash;
+
use bitcoin::util::hash::Sha256dHash;
use hex::decode;
use hex::decode;
- #[test]
+
#[test]
fn sort_output_by_value() {
let txout1 = TxOut {
value: 100,
fn sort_output_by_value() {
let txout1 = TxOut {
value: 100,
@@
-67,7
+67,7
@@
mod tests {
);
}
);
}
- #[test]
+
#[test]
fn sort_output_by_script_pubkey() {
let txout1 = TxOut {
value: 100,
fn sort_output_by_script_pubkey() {
let txout1 = TxOut {
value: 100,
@@
-90,7
+90,7
@@
mod tests {
);
}
);
}
- #[test]
+
#[test]
fn sort_output_by_bip_test() {
let txout1 = TxOut {
value: 100000000,
fn sort_output_by_bip_test() {
let txout1 = TxOut {
value: 100000000,
@@
-136,7
+136,7
@@
mod tests {
assert_eq!(outputs, expected);
}
assert_eq!(outputs, expected);
}
- )*
+
)*
}
}
}
}