X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=blobdiff_plain;f=backends%2Flibbitcoin%2Fhistory1%2F__init__.py;fp=backends%2Flibbitcoin%2Fhistory1%2F__init__.py;h=be555b1ec3c9aac25ade024535d805fb10fbdbad;hp=3bce9ab03bda6e81a1d75a592bc7fad00673efca;hb=c9c337a89a3f04d7a985a521ca552d421fd94fda;hpb=9247a1ff10c5d6967f95ce0ace4e5aba7c5d3f3e diff --git a/backends/libbitcoin/history1/__init__.py b/backends/libbitcoin/history1/__init__.py index 3bce9ab..be555b1 100644 --- a/backends/libbitcoin/history1/__init__.py +++ b/backends/libbitcoin/history1/__init__.py @@ -1,7 +1,9 @@ -import _history -from bitcoin import bind, _1, _2 import json +from bitcoin import bind, _1, _2 +import _history + + def wrap_finish(handle_finish, ec, result_json): try: result = json.loads(result_json) @@ -11,8 +13,8 @@ def wrap_finish(handle_finish, ec, result_json): else: handle_finish(ec, result) + def payment_history(service, chain, txpool, membuf, address, finish): _history.payment_history(service.internal_ptr, chain.internal_ptr, txpool.internal_ptr, membuf.internal_ptr, str(address), bind(wrap_finish, finish, _1, _2)) -