assert_eq!(reply_path.introduction_node(), &IntroductionNode::NodeId(charlie_id));
let onion_message = alice.onion_messenger.next_onion_message_for_peer(charlie_id).unwrap();
- charlie.onion_messenger.handle_onion_message(&alice_id, &onion_message);
+ charlie.onion_messenger.handle_onion_message(alice_id, &onion_message);
let onion_message = charlie.onion_messenger.next_onion_message_for_peer(david_id).unwrap();
- david.onion_messenger.handle_onion_message(&charlie_id, &onion_message);
+ david.onion_messenger.handle_onion_message(charlie_id, &onion_message);
- let (invoice, _) = extract_invoice(david, &onion_message);
+ let (invoice, reply_path) = extract_invoice(david, &onion_message);
assert_eq!(invoice.amount_msats(), 10_000_000);
assert_ne!(invoice.signing_pubkey(), alice_id);
assert!(!invoice.payment_paths().is_empty());
connect_peers(alice, charlie);
let onion_message = alice.onion_messenger.next_onion_message_for_peer(charlie_id).unwrap();
- charlie.onion_messenger.handle_onion_message(&alice_id, &onion_message);
+ charlie.onion_messenger.handle_onion_message(alice_id, &onion_message);
let onion_message = charlie.onion_messenger.next_onion_message_for_peer(david_id).unwrap();
- david.onion_messenger.handle_onion_message(&charlie_id, &onion_message);
+ david.onion_messenger.handle_onion_message(charlie_id, &onion_message);
- let (invoice, _) = extract_invoice(david, &onion_message);
+ let (invoice, reply_path) = extract_invoice(david, &onion_message);
assert_eq!(invoice, expected_invoice);
assert_eq!(invoice.amount_msats(), 10_000_000);
assert_eq!(reply_path.introduction_node(), &IntroductionNode::NodeId(bob_id));
let onion_message = alice.onion_messenger.next_onion_message_for_peer(bob_id).unwrap();
- bob.onion_messenger.handle_onion_message(&alice_id, &onion_message);
+ bob.onion_messenger.handle_onion_message(alice_id, &onion_message);
- let (invoice, _) = extract_invoice(bob, &onion_message);
+ let (invoice, reply_path) = extract_invoice(bob, &onion_message);
assert_eq!(invoice.amount_msats(), 10_000_000);
assert_ne!(invoice.signing_pubkey(), alice_id);
assert!(!invoice.payment_paths().is_empty());
let expected_invoice = alice.node.request_refund_payment(&refund).unwrap();
let onion_message = alice.onion_messenger.next_onion_message_for_peer(bob_id).unwrap();
- bob.onion_messenger.handle_onion_message(&alice_id, &onion_message);
+ bob.onion_messenger.handle_onion_message(alice_id, &onion_message);
- let (invoice, _) = extract_invoice(bob, &onion_message);
+ let (invoice, reply_path) = extract_invoice(bob, &onion_message);
assert_eq!(invoice, expected_invoice);
assert_eq!(invoice.amount_msats(), 10_000_000);
assert_eq!(reply_path.introduction_node(), &IntroductionNode::NodeId(alice_id));
let onion_message = alice.onion_messenger.next_onion_message_for_peer(bob_id).unwrap();
- bob.onion_messenger.handle_onion_message(&alice_id, &onion_message);
+ bob.onion_messenger.handle_onion_message(alice_id, &onion_message);
- let (invoice, _) = extract_invoice(bob, &onion_message);
+ let (invoice, reply_path) = extract_invoice(bob, &onion_message);
assert_ne!(invoice.signing_pubkey(), alice_id);
assert!(!invoice.payment_paths().is_empty());
for path in invoice.payment_paths() {