projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
f
[rust-lightning]
/
lightning
/
src
/
util
/
transaction_utils.rs
diff --git
a/lightning/src/util/transaction_utils.rs
b/lightning/src/util/transaction_utils.rs
index 34d0fb275764a339ce13c9b50bef0eaebda43683..5c02fe156aaeffad0355c9f95aaafc3fbba26c88 100644
(file)
--- a/
lightning/src/util/transaction_utils.rs
+++ b/
lightning/src/util/transaction_utils.rs
@@
-14,6
+14,7
@@
use bitcoin::consensus::encode::VarInt;
use ln::msgs::MAX_VALUE_MSAT;
use ln::msgs::MAX_VALUE_MSAT;
+use prelude::*;
use core::cmp::Ordering;
pub fn sort_outputs<T, C : Fn(&T, &T) -> Ordering>(outputs: &mut Vec<(TxOut, T)>, tie_breaker: C) {
use core::cmp::Ordering;
pub fn sort_outputs<T, C : Fn(&T, &T) -> Ordering>(outputs: &mut Vec<(TxOut, T)>, tie_breaker: C) {
@@
-83,6
+84,8
@@
mod tests {
use hex::decode;
use hex::decode;
+ use alloc::vec;
+
#[test]
fn sort_output_by_value() {
let txout1 = TxOut {
#[test]
fn sort_output_by_value() {
let txout1 = TxOut {