Browse Source

update coin daemon support (BTC, LTC, BCH, Geth)

- Bitcoin Core       v31.0.0
- Litecoin Core      v0.21.5.4
- Bitcoin Cash Node  v29.0.0
- Go-Ethereum        v1.17.2
The MMGen Project 1 week ago
parent
commit
c406336ca4
3 changed files with 10 additions and 5 deletions
  1. 3 3
      mmgen/proto/btc/daemon.py
  2. 1 1
      mmgen/proto/eth/daemon.py
  3. 6 1
      test/modtest_d/dep.py

+ 3 - 3
mmgen/proto/btc/daemon.py

@@ -19,7 +19,7 @@ from ...util import list_gen
 from ...daemon import CoinDaemon, _nw, _dd
 from ...daemon import CoinDaemon, _nw, _dd
 
 
 class bitcoin_core_daemon(CoinDaemon):
 class bitcoin_core_daemon(CoinDaemon):
-	daemon_data = _dd('Bitcoin Core', 300200, '30.2.0')
+	daemon_data = _dd('Bitcoin Core', 310000, '31.0.0')
 	exec_fn = 'bitcoind'
 	exec_fn = 'bitcoind'
 	cli_fn = 'bitcoin-cli'
 	cli_fn = 'bitcoin-cli'
 	testnet_dir = 'testnet3'
 	testnet_dir = 'testnet3'
@@ -123,7 +123,7 @@ class bitcoin_core_daemon(CoinDaemon):
 		return e.args[0]
 		return e.args[0]
 
 
 class bitcoin_cash_node_daemon(bitcoin_core_daemon):
 class bitcoin_cash_node_daemon(bitcoin_core_daemon):
-	daemon_data = _dd('Bitcoin Cash Node', 28000100, '28.0.1')
+	daemon_data = _dd('Bitcoin Cash Node', 29000000, '29.0.0')
 	exec_fn = 'bitcoind-bchn'
 	exec_fn = 'bitcoind-bchn'
 	cli_fn = 'bitcoin-cli-bchn'
 	cli_fn = 'bitcoin-cli-bchn'
 	rpc_ports = _nw(8432, 18432, 18543) # use non-standard ports (core+100)
 	rpc_ports = _nw(8432, 18432, 18543) # use non-standard ports (core+100)
@@ -151,7 +151,7 @@ class bitcoin_cash_node_daemon(bitcoin_core_daemon):
 class litecoin_core_daemon(bitcoin_core_daemon):
 class litecoin_core_daemon(bitcoin_core_daemon):
 	# v0.21.2rc5 crashes when mining more than 431 blocks in regtest mode:
 	# v0.21.2rc5 crashes when mining more than 431 blocks in regtest mode:
 	#   CreateNewBlock: TestBlockValidity failed: bad-txns-vin-empty, Transaction check failed
 	#   CreateNewBlock: TestBlockValidity failed: bad-txns-vin-empty, Transaction check failed
-	daemon_data = _dd('Litecoin Core', 210400, '0.21.4')
+	daemon_data = _dd('Litecoin Core', 210504, '0.21.5.4')
 	exec_fn = 'litecoind'
 	exec_fn = 'litecoind'
 	cli_fn = 'litecoin-cli'
 	cli_fn = 'litecoin-cli'
 	testnet_dir = 'testnet4'
 	testnet_dir = 'testnet4'

+ 1 - 1
mmgen/proto/eth/daemon.py

@@ -96,7 +96,7 @@ class geth_daemon(ethereum_daemon):
 	#   mempool deadlock in dev mode: "transaction indexing is in progress"
 	#   mempool deadlock in dev mode: "transaction indexing is in progress"
 	#   https://github.com/ethereum/go-ethereum/issues/29475
 	#   https://github.com/ethereum/go-ethereum/issues/29475
 	#   offending commit (via git bisect): 0a2f33946b95989e8ce36e72a88138adceab6a23
 	#   offending commit (via git bisect): 0a2f33946b95989e8ce36e72a88138adceab6a23
-	daemon_data = _dd('Geth', 1016007, '1.16.7')
+	daemon_data = _dd('Geth', 1017002, '1.17.2')
 	version_pat = r'Geth/v(\d+)\.(\d+)\.(\d+)'
 	version_pat = r'Geth/v(\d+)\.(\d+)\.(\d+)'
 	exec_fn = 'geth'
 	exec_fn = 'geth'
 	use_pidfile = False
 	use_pidfile = False

+ 6 - 1
test/modtest_d/dep.py

@@ -18,7 +18,7 @@ from ..include.common import cfg, vmsg, check_solc_ver
 
 
 class unit_tests:
 class unit_tests:
 
 
-	altcoin_deps = ('solc', 'keccak', 'pysocks', 'semantic_version')
+	altcoin_deps = ('solc', 'keccak', 'pysocks', 'semantic_version', 'pure_protobuf')
 	win_skip = ('led', 'semantic_version')
 	win_skip = ('led', 'semantic_version')
 
 
 	def secp256k1(self, name, ut):
 	def secp256k1(self, name, ut):
@@ -157,3 +157,8 @@ class unit_tests:
 				msg(cp.stderr)
 				msg(cp.stderr)
 				return False
 				return False
 		return True
 		return True
+
+	def pure_protobuf(self, name, ut):
+		from pure_protobuf.annotations import Field
+		from pure_protobuf.message import BaseMessage
+		return True