From 4e5a7ad02984efbbdc8a2b0b146e7c941d946f7d Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 19 Oct 2020 18:29:57 +0000 Subject: [PATCH] Minor changes --- examples/halving-calculator.py | 3 +++ mmgen/protocol.py | 3 ++- mmgen/tw.py | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/halving-calculator.py b/examples/halving-calculator.py index 15865437..15300600 100755 --- a/examples/halving-calculator.py +++ b/examples/halving-calculator.py @@ -22,6 +22,9 @@ Requires a running coin daemon Specify coin with --coin=btc (default)/--coin=bch/--coin=ltc If necessary, invoke with --rpc-host/--rpc-port/--rpc-user/--rpc-password Specify aiohttp backend with --rpc-backend=aiohttp (Linux only) + +A more full-featured version of this program can be found in the +mmgen-node-tools repository. """ } }) diff --git a/mmgen/protocol.py b/mmgen/protocol.py index fe60e710..ac852819 100755 --- a/mmgen/protocol.py +++ b/mmgen/protocol.py @@ -228,6 +228,7 @@ class CoinProtocol(MMGenObject): avg_bdi = int(9.7 * 60) # average block discovery interval (historical) halving_interval = 210000 max_halvings = 64 + start_subsidy = 50 def hex2wif(self,hexpriv,pubkey_type,compressed): # input is preprocessed hex sec = bytes.fromhex(hexpriv) @@ -321,7 +322,7 @@ class CoinProtocol(MMGenObject): wif_ver_num = { 'std': 'ef' } class BitcoinCashRegtest(BitcoinCashTestnet): - pass + halving_interval = 150 class B2X(Bitcoin): is_fork_of = 'Bitcoin' diff --git a/mmgen/tw.py b/mmgen/tw.py index d9f9d6ca..ad028848 100755 --- a/mmgen/tw.py +++ b/mmgen/tw.py @@ -418,6 +418,8 @@ Actions: [q]uit view, [p]rint to file, pager [v]iew, [w]ide view, add [l]abel: msg(f'Choice must be a single number between 1 and {len(self.unspent)}') else: if action == 'a_lbl_add': + cur_lbl = self.unspent[n-1].label + msg('Current label: {}'.format(cur_lbl.hl() if cur_lbl else '(none)')) while True: s = my_raw_input("Enter label text (or 'q' to return to main menu): ") if s == 'q':