projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add derives where they make sense and the bindings require them
[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 12b504a69ef8dd50aceeeaed1ea9431fd905d8eb..59b7be6073c1dd9a1516adb25f3a41af1d0222f5 100644
(file)
--- a/
lightning/src/util/transaction_utils.rs
+++ b/
lightning/src/util/transaction_utils.rs
@@
-14,7
+14,9
@@
use bitcoin::consensus::encode::VarInt;
use crate::ln::msgs::MAX_VALUE_MSAT;
use crate::ln::msgs::MAX_VALUE_MSAT;
+#[allow(unused_imports)]
use crate::prelude::*;
use crate::prelude::*;
+
use crate::io_extras::sink;
use core::cmp::Ordering;
use crate::io_extras::sink;
use core::cmp::Ordering;
@@
-72,8
+74,8
@@
mod tests {
use super::*;
use bitcoin::blockdata::locktime::absolute::LockTime;
use super::*;
use bitcoin::blockdata::locktime::absolute::LockTime;
- use bitcoin::blockdata::transaction::{T
ransaction, TxOut, T
xIn, OutPoint};
- use bitcoin::blockdata::script::
{ScriptBuf, Builder}
;
+ use bitcoin::blockdata::transaction::{TxIn, OutPoint};
+ use bitcoin::blockdata::script::
Builder
;
use bitcoin::hash_types::{PubkeyHash, Txid};
use bitcoin::hashes::Hash;
use bitcoin::hashes::hex::FromHex;
use bitcoin::hash_types::{PubkeyHash, Txid};
use bitcoin::hashes::Hash;
use bitcoin::hashes::hex::FromHex;