Skip to content
Browse files

Got rid of annoying messages and fixed shell repeating importing comm…

…ands such as send and update
  • Loading branch information...
1 parent fe53a51 commit 0a49cba368c6788d13855ee41f7d0c697b600484 Max00355 committed
Showing with 7 additions and 3 deletions.
  1. +1 −1 send_coin.py
  2. +0 −1 send_command.py
  3. +6 −1 shell.py
View
2 send_coin.py
@@ -53,7 +53,7 @@ def send(address, amount):
"plain":x['starter'],
"difficulty":x['difficulty'],
}
- print out_s
+
send_command.send(out_s)
print "Coins sent!"
View
1 send_command.py
@@ -19,7 +19,6 @@ def send(cmd, out=False, god=False):
s.close()
continue
else:
- print x['ip'], str(x['port'])
s.send(json.dumps({"cmd":"get_version"}))
data = s.recv(1024)
if data == config.version:
View
7 shell.py
@@ -4,11 +4,13 @@
import threading
import urllib
import get_db
+import sys
class zc(cmd.Cmd):
prompt = "zShell$ "
intro = "Welcome to the zCoin shell, type `help` to get started."
def do_send(self, line):
+ self.lastcmd = ""
line = line.split()
try:
to = line[0]
@@ -18,8 +20,10 @@ def do_send(self, line):
else:
print "Coins are being sent"
threading.Thread(target=send_coin.send, args=(to, amount)).start()
-
+ print("zShell$"),
+
def do_check(self, lines):
+ self.lastcmd = ""
get_db.send()
def do_totalcoins(self, line):
coin = config.db.find("coins", "all")
@@ -63,6 +67,7 @@ def do_transactions(self, line):
def do_update(self, line):
+ self.lastcmd = ""
files = {
"check_coin.py":"https://raw.github.com/Max00355/zCoin/master/check_coin.py",
"coin_count.py":"https://raw.github.com/Max00355/zCoin/master/coin_count.py",

0 comments on commit 0a49cba

Please sign in to comment.
Something went wrong with that request. Please try again.