params.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env python3
  2. #
  3. # mmgen = Multi-Mode GENerator, a command-line cryptocurrency wallet
  4. # Copyright (C)2013-2023 The MMGen Project <mmgen@tuta.io>
  5. # Licensed under the GNU General Public License, Version 3:
  6. # https://www.gnu.org/licenses
  7. # Public project repositories:
  8. # https://github.com/mmgen/mmgen
  9. # https://gitlab.com/mmgen/mmgen
  10. """
  11. proto.bch.params: Bitcoin Cash protocol
  12. """
  13. from ..btc.params import mainnet,_finfo
  14. class mainnet(mainnet):
  15. is_fork_of = 'Bitcoin'
  16. mmtypes = ('L','C')
  17. sighash_type = 'ALL|FORKID'
  18. forks = [
  19. _finfo(478559,'000000000000000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec','BTC',False)
  20. ]
  21. caps = ()
  22. coin_amt = 'BCHAmt'
  23. max_tx_fee = '0.1'
  24. ignore_daemon_version = False
  25. def pubhash2redeem_script(self,pubkey): raise NotImplementedError
  26. def pubhash2segwitaddr(self,pubkey): raise NotImplementedError
  27. class testnet(mainnet):
  28. addr_ver_info = { '6f': 'p2pkh', 'c4': 'p2sh' }
  29. wif_ver_num = { 'std': 'ef' }
  30. class regtest(testnet):
  31. halving_interval = 150