1
0

move channel_state into HTLCStateMachine

This commit is contained in:
Janus
2018-07-16 16:51:32 +02:00
committed by ThomasV
parent 3caccbebcd
commit d740475e7a
5 changed files with 26 additions and 20 deletions

View File

@@ -139,6 +139,8 @@ class HTLCStateMachine(PrintError):
self.local_commitment = self.pending_local_commitment
self.remote_commitment = self.pending_remote_commitment
self.state = 'DISCONNECTED'
def add_htlc(self, htlc):
"""
AddHTLC adds an HTLC to the state machine's local update log. This method