Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
fix force payment playbook (#4272)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeofblue committed Jun 4, 2019
1 parent 510525f commit 256be69
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ def on_success(result):
int(p.get('value'))
for p in result
if p.get('payer') == self.nodes_keys[NodeId.requestor] and
p.get('subtask') in self.subtasks
p.get('subtask') in self.subtasks[NodeId.provider]
]))
if not self.expected_payment:
self.fail("No expected payments found for the task.")
print("No expected payments found for the task...")
return

print("Expected payment: %s" % self.expected_payment)
self.next()
Expand Down

0 comments on commit 256be69

Please sign in to comment.