1
0

Merge pull request #526 from ortutay/buybackplugin

Coinbase BuyBack plugin
This commit is contained in:
ThomasV
2014-01-07 22:32:51 -08:00
9 changed files with 363 additions and 7 deletions

View File

@@ -1388,7 +1388,7 @@ class Wallet:
# synchronous
h = self.send_tx(tx)
self.tx_event.wait()
return self.receive_tx(h)
return self.receive_tx(h, tx)
def send_tx(self, tx):
# asynchronous
@@ -1400,10 +1400,11 @@ class Wallet:
self.tx_result = r.get('result')
self.tx_event.set()
def receive_tx(self,tx_hash):
def receive_tx(self, tx_hash, tx):
out = self.tx_result
if out != tx_hash:
return False, "error: " + out
run_hook('receive_tx', tx, self)
return True, out