Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
feat: use src from itinerary for dst accumulated user message
Browse files Browse the repository at this point in the history
  • Loading branch information
madadam committed Mar 18, 2021
1 parent 44fa7b7 commit 31838e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routing/approved.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2112,11 +2112,12 @@ impl Approved {

let variant = Variant::UserMessage(content);

// If the msg is to be aggregated at dst, we don't vote among our peers, wemsimply send the msg as our vote to the dst.
// If the msg is to be aggregated at dst, we don't vote among our peers, we simply send the
// msg as our vote to the dst.
let msg = if itinerary.aggregate_at_dst() {
Message::for_dst_accumulation(
self.section_keys_provider.key_share()?,
self.section().prefix().name(),
itinerary.src.name(),
itinerary.dst,
variant,
self.create_proof_chain(&itinerary.dst, None)?,
Expand Down

0 comments on commit 31838e9

Please sign in to comment.