mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-03 04:19:47 -08:00
Version 1.1.0.0 update
This commit is contained in:
@@ -10,9 +10,9 @@ rpcpass = ""
|
||||
|
||||
|
||||
if rpcpass == "":
|
||||
access = ServiceProxy("http://127.0.0.1:8332")
|
||||
access = ServiceProxy("http://127.0.0.1:47970")
|
||||
else:
|
||||
access = ServiceProxy("http://"+rpcuser+":"+rpcpass+"@127.0.0.1:8332")
|
||||
access = ServiceProxy("http://"+rpcuser+":"+rpcpass+"@127.0.0.1:47970")
|
||||
cmd = sys.argv[1].lower()
|
||||
|
||||
if cmd == "backupwallet":
|
||||
@@ -24,7 +24,7 @@ if cmd == "backupwallet":
|
||||
|
||||
elif cmd == "getaccount":
|
||||
try:
|
||||
addr = raw_input("Enter a Bitcoin address: ")
|
||||
addr = raw_input("Enter a CasinoCoin address: ")
|
||||
print access.getaccount(addr)
|
||||
except:
|
||||
print "\n---An error occurred---\n"
|
||||
@@ -126,7 +126,7 @@ elif cmd == "getreceivedbyaccount":
|
||||
|
||||
elif cmd == "getreceivedbyaddress":
|
||||
try:
|
||||
addr = raw_input("Enter a Bitcoin address (optional): ")
|
||||
addr = raw_input("Enter a CasinoCoin address (optional): ")
|
||||
mc = raw_input("Minimum confirmations (optional): ")
|
||||
try:
|
||||
print access.getreceivedbyaddress(addr, mc)
|
||||
@@ -321,4 +321,4 @@ elif cmd == "walletpassphrasechange":
|
||||
print
|
||||
|
||||
else:
|
||||
print "Command not found or not supported"
|
||||
print "Command not found or not supported"
|
||||
|
||||
Reference in New Issue
Block a user