Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit de9a97f

Browse files
committed
Convert partial payment websocket return to btc
1 parent 8ad341f commit de9a97f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dht/protocol.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def handleCallResponse(self, result, node):
228228
"""
229229
if result[0]:
230230
if self.isNewConnection(node) and node.id not in self.recent_transfers:
231+
# pylint: disable=W0612
231232
for i in range(len(self.recent_transfers) - 10):
232233
self.recent_transfers.pop()
233234
self.recent_transfers.add(node.id)
@@ -246,6 +247,7 @@ def addToRouter(self, node):
246247
if they are new and within our neighborhood.
247248
"""
248249
if self.isNewConnection(node) and node.id not in self.recent_transfers:
250+
# pylint: disable=W0612
249251
for i in range(len(self.recent_transfers) - 10):
250252
self.recent_transfers.pop()
251253
self.recent_transfers.add(node.id)

market/contracts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def on_tx_received(self, address_version, address_hash, height, block_hash, tx):
876876
notification_json = {
877877
"notification": {
878878
"type": "partial payment",
879-
"amount_funded": self.amount_funded,
879+
"amount_funded": round(self.amount_funded / float(100000000), 8),
880880
"order_id": order_id
881881
}
882882
}

0 commit comments

Comments
 (0)