lowercase

This commit is contained in:
Peter D. Gray 2024-10-15 09:36:30 -04:00 committed by scgbckbone
parent 0ccd701421
commit 6445fad042
2 changed files with 3 additions and 4 deletions

View File

@ -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")

View File

@ -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
# <https://github.com/satoshilabs/slips/blob/master/slip-0044.md>