From 027f3e1cf1eab544e27084fd804eda0d7a5fb47c Mon Sep 17 00:00:00 2001 From: Adlai Chandrasekhar Date: Mon, 27 Jul 2015 23:20:30 +0300 Subject: [PATCH] kiss walletnotify listener --- lib/blockchaininterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/blockchaininterface.py b/lib/blockchaininterface.py index 024ad58e..076c0520 100644 --- a/lib/blockchaininterface.py +++ b/lib/blockchaininterface.py @@ -2,7 +2,7 @@ import subprocess import unittest import json, threading, abc, pprint, time, random, sys, os, re -import BaseHTTPServer, SimpleHTTPServer, urllib +import BaseHTTPServer, urllib from decimal import Decimal import bitcoin as btc @@ -270,11 +270,11 @@ def query_utxo_set(self, txout): return result -class NotifyRequestHeader(SimpleHTTPServer.SimpleHTTPRequestHandler): +class NotifyRequestHeader(BaseHTTPServer.BaseHTTPRequestHandler): def __init__(self, request, client_address, base_server): self.btcinterface = base_server.btcinterface self.base_server = base_server - SimpleHTTPServer.SimpleHTTPRequestHandler.__init__(self, request, client_address, base_server) + BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, request, client_address, base_server) def do_HEAD(self): pages = ('/walletnotify?', '/alertnotify?')