From 6445fad042813ece19df3a7ef60bf0135e3e5015 Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Tue, 15 Oct 2024 09:36:30 -0400 Subject: [PATCH] lowercase --- shared/ccc.py | 5 ++--- shared/chains.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/shared/ccc.py b/shared/ccc.py index 556221dc..e675a901 100644 --- a/shared/ccc.py +++ b/shared/ccc.py @@ -78,8 +78,7 @@ class CCCFeature: # a very basic an permissive policy, but non-zero too. # - 1BTC per day chain = chains.current_chain() - return dict(mag=1, vel=144, block_h=chain.CCC_MIN_BLOCK, - web2fa='', addrs=[]) + return dict(mag=1, vel=144, block_h=chain.ccc_min_block, web2fa='', addrs=[]) @classmethod def get_policy(cls): @@ -141,7 +140,7 @@ class CCCFeature: # this is unix timestamp - not allowed - fail raise CCCPolicyViolationError("nLockTime not block height") - block_h = pol.get("block_h", chains.current_chain().CCC_MIN_BLOCK) + block_h = pol.get("block_h", chains.current_chain().ccc_min_block) if psbt.lock_time <= block_h: raise CCCPolicyViolationError("rewound") diff --git a/shared/chains.py b/shared/chains.py index 1b46f260..1c2f4ef1 100644 --- a/shared/chains.py +++ b/shared/chains.py @@ -34,7 +34,7 @@ class ChainsBase: curve = 'secp256k1' menu_name = None # use 'name' if this isn't defined core_name = None # name of chain's "core" p2p software - CCC_MIN_BLOCK = 0 + ccc_min_block = 0 # block height at which CCC feature was developed # b44_cointype comes from #