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=9fc479f337b5066860dfa427954734e6e5e4d5ce;hp=0000000000000000000000000000000000000000;hb=c246b5f5bd292003d775789832f84c2a13cc9eb2;hpb=e737e057559f697e1c824188e314eb7e2b95fa47 diff --git a/backends/libbitcoin/history1/__init__.py b/backends/libbitcoin/history1/__init__.py new file mode 100644 index 0000000..9fc479f --- /dev/null +++ b/backends/libbitcoin/history1/__init__.py @@ -0,0 +1,11 @@ +import _history +from bitcoin import bind, _1 + +def wrap_finish(handle_finish, ec): + handle_finish(ec) + +def payment_history(service, chain, txpool, address, finish): + _history.payment_history(service.internal_ptr, chain.internal_ptr, + txpool.internal_ptr, address, + bind(wrap_finish, finish, _1)) +