Skip to content

Commit

Permalink
Update to message forwarding to honor all non-witness end roles (#581)
Browse files Browse the repository at this point in the history
Signed-off-by: pfeairheller <[email protected]>
  • Loading branch information
pfeairheller authored Sep 30, 2023
1 parent d558f14 commit a53ef84
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/keri/app/forwarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ def sendEvent(self, hab, fn=0):
yield self.tock

def sendDirect(self, hab, ends, serder, atc):
ctrl, locs = random.choice(list(ends.items()))
witer = agenting.messengerFrom(hab=hab, pre=ctrl, urls=locs)
for ctrl, locs in ends.items():
witer = agenting.messengerFrom(hab=hab, pre=ctrl, urls=locs)

msg = bytearray(serder.raw)
if atc is not None:
msg.extend(atc)
msg = bytearray(serder.raw)
if atc is not None:
msg.extend(atc)

witer.msgs.append(bytearray(msg)) # make a copy
self.extend([witer])
witer.msgs.append(bytearray(msg)) # make a copy
self.extend([witer])

while not witer.idle:
_ = (yield self.tock)
Expand Down

0 comments on commit a53ef84

Please sign in to comment.