projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OutboundOnionPayload: hold Vec fields as references.
[rust-lightning]
/
lightning
/
src
/
offers
/
test_utils.rs
diff --git
a/lightning/src/offers/test_utils.rs
b/lightning/src/offers/test_utils.rs
index b4329803016fadb395689bf696e30d78c2984e97..ee8cf3a7c1764e018bfd7d096218c8e67aff09c4 100644
(file)
--- a/
lightning/src/offers/test_utils.rs
+++ b/
lightning/src/offers/test_utils.rs
@@
-13,9
+13,9
@@
use bitcoin::secp256k1::{KeyPair, PublicKey, Secp256k1, SecretKey};
use bitcoin::secp256k1::schnorr::Signature;
use core::time::Duration;
use bitcoin::secp256k1::schnorr::Signature;
use core::time::Duration;
-use crate::blinded_path::{BlindedHop, BlindedPath};
+use crate::blinded_path::{BlindedHop, BlindedPath
, IntroductionNode
};
use crate::sign::EntropySource;
use crate::sign::EntropySource;
-use crate::ln::PaymentHash;
+use crate::ln::
types::
PaymentHash;
use crate::ln::features::BlindedHopFeatures;
use crate::offers::invoice::BlindedPayInfo;
use crate::offers::merkle::TaggedHash;
use crate::ln::features::BlindedHopFeatures;
use crate::offers::invoice::BlindedPayInfo;
use crate::offers::merkle::TaggedHash;
@@
-69,7
+69,7
@@
pub(super) fn privkey(byte: u8) -> SecretKey {
pub(crate) fn payment_paths() -> Vec<(BlindedPayInfo, BlindedPath)> {
let paths = vec![
BlindedPath {
pub(crate) fn payment_paths() -> Vec<(BlindedPayInfo, BlindedPath)> {
let paths = vec![
BlindedPath {
- introduction_node
_id: pubkey(40
),
+ introduction_node
: IntroductionNode::NodeId(pubkey(40)
),
blinding_point: pubkey(41),
blinded_hops: vec![
BlindedHop { blinded_node_id: pubkey(43), encrypted_payload: vec![0; 43] },
blinding_point: pubkey(41),
blinded_hops: vec![
BlindedHop { blinded_node_id: pubkey(43), encrypted_payload: vec![0; 43] },
@@
-77,7
+77,7
@@
pub(crate) fn payment_paths() -> Vec<(BlindedPayInfo, BlindedPath)> {
],
},
BlindedPath {
],
},
BlindedPath {
- introduction_node
_id: pubkey(40
),
+ introduction_node
: IntroductionNode::NodeId(pubkey(40)
),
blinding_point: pubkey(41),
blinded_hops: vec![
BlindedHop { blinded_node_id: pubkey(45), encrypted_payload: vec![0; 45] },
blinding_point: pubkey(41),
blinded_hops: vec![
BlindedHop { blinded_node_id: pubkey(45), encrypted_payload: vec![0; 45] },