Skip to content

Commit

Permalink
shell for as Attempt Class for issue renepickhardt#20
Browse files Browse the repository at this point in the history
  • Loading branch information
sebulino committed Jun 22, 2022
1 parent f14fe55 commit b198e40
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pickhardtpayments/Attempt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class Attempt:
"""
An Attempt describes a path (a set of channels) of an amount from sender to receiver.
:param list _path: a list of UncertaintyChannel objects from sender to receiver
:param int _amount: the amount to be transferred from source to destination
:param int _routing_fee: the rounting fee in msat
:param float _probability: the success probability from
:param int _runtime: the number of milliseconds for the path to be found
:param boolean _success: the flag to describe if the path succeeded (True) or failed (False) for the amount in flight
"""

0 comments on commit b198e40

Please sign in to comment.