diff --git a/electrumx/lib/coins.py b/electrumx/lib/coins.py index b16928d..c09eaee 100644 --- a/electrumx/lib/coins.py +++ b/electrumx/lib/coins.py @@ -403,6 +403,17 @@ class BitcoinCash(BitcoinMixin, Coin): ] BLOCK_PROCESSOR = block_proc.LTORBlockProcessor + @classmethod + def upgrade_required(cls, client_ver): + if client_ver < (3, 3, 4): + return ('

' + 'Your transaction was successfully broadcast.

' + 'However, you are using a VULNERABLE version of Electron Cash.
' + 'Download the latest version from this web site ONLY:
' + 'https://electroncash.org/' + '

') + return False + class BitcoinSegwit(BitcoinMixin, Coin): NAME = "BitcoinSegwit" @@ -600,6 +611,17 @@ class BitcoinCashTestnet(BitcoinTestnetMixin, Coin): ] BLOCK_PROCESSOR = block_proc.LTORBlockProcessor + @classmethod + def upgrade_required(cls, client_ver): + if client_ver < (3, 3, 4): + return ('

' + 'Your transaction was successfully broadcast.

' + 'However, you are using a VULNERABLE version of Electron Cash.
' + 'Download the latest version from this web site ONLY:
' + 'https://electroncash.org/' + '

') + return False + class BitcoinSVRegtest(BitcoinSVTestnet): NET = "regtest"