Browse Source

Tx sending reenabled

philemon 8 years ago
parent
commit
2f96946805
3 changed files with 5 additions and 1 deletions
  1. 1 1
      mmgen/main_txsend.py
  2. 1 0
      mmgen/rpc.py
  3. 3 0
      mmgen/util.py

+ 1 - 1
mmgen/main_txsend.py

@@ -68,6 +68,6 @@ confirm_or_exit(warn,action,expect)
 
 msg('Sending transaction')
 
-tx.send(c,bogus=True)
+tx.send(c,bogus=False)
 
 tx.write_txid_to_file()

+ 1 - 0
mmgen/rpc.py

@@ -146,6 +146,7 @@ class BitcoinRPCConnection(object):
 		'listunspent',
 		'sendrawtransaction',
 		'signrawtransaction',
+		'getrawmempool',
 	)
 
 	for name in rpcmethods:

+ 3 - 0
mmgen/util.py

@@ -215,6 +215,9 @@ def make_timestr(secs=None):
 def secs_to_hms(secs):
 	return '{:02d}:{:02d}:{:02d}'.format(secs/3600, (secs/60) % 60, secs % 60)
 
+def secs_to_ms(secs):
+	return '{:02d}:{:02d}'.format(secs/60, secs % 60)
+
 def _is_whatstring(s,chars):
 	return set(list(s)) <= set(chars)