projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BDR: Linearizing secp256k1 deps
[rust-lightning]
/
lightning
/
src
/
ln
/
router.rs
diff --git
a/lightning/src/ln/router.rs
b/lightning/src/ln/router.rs
index c7ebe86d7eb0d9b607c68b3831a990e76e61468e..a1a6e42d8f51ec3c00f7524e38458152a89f328f 100644
(file)
--- a/
lightning/src/ln/router.rs
+++ b/
lightning/src/ln/router.rs
@@
-3,12
+3,12
@@
//! You probably want to create a Router and use that as your RoutingMessageHandler and then
//! interrogate it to get routes for your own payments.
//! You probably want to create a Router and use that as your RoutingMessageHandler and then
//! interrogate it to get routes for your own payments.
-use secp256k1::key::PublicKey;
-use secp256k1::Secp256k1;
-use secp256k1;
+use
bitcoin::
secp256k1::key::PublicKey;
+use
bitcoin::
secp256k1::Secp256k1;
+use
bitcoin::
secp256k1;
-use bitcoin
_
hashes::sha256d::Hash as Sha256dHash;
-use bitcoin
_
hashes::Hash;
+use bitcoin
::
hashes::sha256d::Hash as Sha256dHash;
+use bitcoin
::
hashes::Hash;
use bitcoin::blockdata::script::Builder;
use bitcoin::blockdata::opcodes;
use bitcoin::blockdata::script::Builder;
use bitcoin::blockdata::opcodes;
@@
-1085,8
+1085,8
@@
mod tests {
use util::logger::Logger;
use util::ser::{Writeable, Readable};
use util::logger::Logger;
use util::ser::{Writeable, Readable};
- use bitcoin
_
hashes::sha256d::Hash as Sha256dHash;
- use bitcoin
_
hashes::Hash;
+ use bitcoin
::
hashes::sha256d::Hash as Sha256dHash;
+ use bitcoin
::
hashes::Hash;
use bitcoin::network::constants::Network;
use bitcoin::blockdata::constants::genesis_block;
use bitcoin::blockdata::script::Builder;
use bitcoin::network::constants::Network;
use bitcoin::blockdata::constants::genesis_block;
use bitcoin::blockdata::script::Builder;
@@
-1095,9
+1095,9
@@
mod tests {
use hex;
use hex;
- use secp256k1::key::{PublicKey,SecretKey};
- use secp256k1::All;
- use secp256k1::Secp256k1;
+ use
bitcoin::
secp256k1::key::{PublicKey,SecretKey};
+ use
bitcoin::
secp256k1::All;
+ use
bitcoin::
secp256k1::Secp256k1;
use std::sync::Arc;
use std::collections::btree_map::Entry as BtreeEntry;
use std::sync::Arc;
use std::collections::btree_map::Entry as BtreeEntry;