mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
s/bitmonerod/daemon/
This commit is contained in:
parent
2dda53240c
commit
7efb942a96
1 changed files with 7 additions and 7 deletions
14
tipbot.py
14
tipbot.py
|
@ -44,8 +44,8 @@ irc_timeout_seconds = 600
|
|||
redis_host="127.0.0.1"
|
||||
redis_port=7777
|
||||
|
||||
bitmonerod_host = 'testfull.monero.cc' # '127.0.0.1'
|
||||
bitmonerod_port = 28081 # 6060
|
||||
daemon_host = 'testfull.monero.cc' # '127.0.0.1'
|
||||
daemon_port = 28081 # 6060
|
||||
wallet_host = '127.0.0.1'
|
||||
wallet_port = 6061
|
||||
wallet_update_time = 30 # seconds
|
||||
|
@ -670,16 +670,16 @@ def SendHTMLCommand(host,port,method):
|
|||
def SendWalletJSONRPCCommand(method,params):
|
||||
return SendJSONRPCCommand(wallet_host,wallet_port,method,params)
|
||||
|
||||
def SendBitmonerodJSONRPCCommand(method,params):
|
||||
return SendJSONRPCCommand(bitmonerod_host,bitmonerod_port,method,params)
|
||||
def SendDaemonJSONRPCCommand(method,params):
|
||||
return SendJSONRPCCommand(daemon_host,daemon_port,method,params)
|
||||
|
||||
def SendBitmonerodHTMLCommand(method):
|
||||
return SendHTMLCommand(bitmonerod_host,bitmonerod_port,method)
|
||||
def SendDaemonHTMLCommand(method):
|
||||
return SendHTMLCommand(daemon_host,daemon_port,method)
|
||||
|
||||
def GetHeight(nick,data):
|
||||
log_info('GetHeight: %s wants to know block height' % nick)
|
||||
try:
|
||||
j = SendBitmonerodHTMLCommand("getheight")
|
||||
j = SendDaemonHTMLCommand("getheight")
|
||||
except Exception,e:
|
||||
log_error('GetHeight: error: %s' % str(e))
|
||||
SendTo(nick,"An error has occured")
|
||||
|
|
Loading…
Reference in a new issue