From 2f96946805698b0ec4350218b6ce0a42e7e883dc Mon Sep 17 00:00:00 2001 From: philemon Date: Thu, 28 Jul 2016 18:50:57 +0300 Subject: [PATCH] Tx sending reenabled --- mmgen/main_txsend.py | 2 +- mmgen/rpc.py | 1 + mmgen/util.py | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mmgen/main_txsend.py b/mmgen/main_txsend.py index d31d8b31..f8f805f7 100755 --- a/mmgen/main_txsend.py +++ b/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() diff --git a/mmgen/rpc.py b/mmgen/rpc.py index c7b12743..8fadfb34 100755 --- a/mmgen/rpc.py +++ b/mmgen/rpc.py @@ -146,6 +146,7 @@ class BitcoinRPCConnection(object): 'listunspent', 'sendrawtransaction', 'signrawtransaction', + 'getrawmempool', ) for name in rpcmethods: diff --git a/mmgen/util.py b/mmgen/util.py index 92659993..013e16ae 100755 --- a/mmgen/util.py +++ b/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)