From 0dc601714dd0b3d47129eca8f881ed5842eea537 Mon Sep 17 00:00:00 2001 From: Adam Gibson Date: Mon, 14 Aug 2017 15:39:43 +0300 Subject: [PATCH] bugfix transfer of already-seen commitments --- jmdaemon/jmdaemon/daemon_protocol.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jmdaemon/jmdaemon/daemon_protocol.py b/jmdaemon/jmdaemon/daemon_protocol.py index f6e4424..99c7dfb 100644 --- a/jmdaemon/jmdaemon/daemon_protocol.py +++ b/jmdaemon/jmdaemon/daemon_protocol.py @@ -341,8 +341,7 @@ class JMDaemonServerProtocol(amp.AMP, OrderbookWatch): #Note that broadcast is happening here to reflect an already #consumed commitment; it can also be broadcast separately (earlier) on #valid usage - #Keep the type byte for communication so not scommit: - self.transfer_commitment(commit) + self.transfer_commitment(scommit) return offer_s = [o for o in self.offerlist if o['oid'] == oid] if len(offer_s) == 0: