Browse Source

test suite: replace invalid transaction file

The MMGen Project 2 weeks ago
parent
commit
6a369f79d7

+ 1 - 1
test/cmdtest_d/ct_ref.py

@@ -91,7 +91,7 @@ class CmdTestRef(CmdTestBase, CmdTestShared):
 			),
 			'eth': (
 				'88FEFD-ETH[23.45495,40000].rawtx',
-				'B472BD-ETH[23.45495,40000].testnet.rawtx'
+				'76CF8C-ETH[99.99895,50000].regtest.rawtx'
 			),
 			'mm1': (
 				'5881D2-MM1[1.23456,50000].rawtx',

+ 0 - 2
test/modtest_d/ut_tx.py

@@ -94,8 +94,6 @@ class unit_tests:
 				'ethereum/5881D2-MM1[1.23456,50000].rawtx',
 				'ethereum/6BDB25-MM1[1.23456,50000].testnet.rawtx',
 				'ethereum/88FEFD-ETH[23.45495,40000].rawtx',
-				'ethereum/B472BD-ETH[23.45495,40000].testnet.rawtx',
-				'ethereum/B472BD-ETH[23.45495,40000].testnet.sigtx',
 				'litecoin/A5A1E0-LTC[1454.64322,1453,tl=1320969600].testnet.rawtx',
 				'litecoin/AF3CDF-LTC[620.76194,1453,tl=1320969600].rawtx',
 			)

+ 1 - 0
test/ref/ethereum/76CF8C-ETH[99.99895,50000].regtest.rawtx

@@ -0,0 +1 @@
+{"MMGenTransaction":{"coin_id":"ETH","chain":"developmentchain","txid":"76CF8C","send_amt":"99.99895","timestamp":"20250317_045533","blockcount":16,"serialized":"{\"from\": \"1f2f0641c80c1f6a13edf22e184292584ddcc9d9\", \"to\": \"657afae1dfa9a866fb29b3e52d7b3eafdf1d55f9\", \"amt\": \"99.99895\", \"gasPrice\": \"0.00000005\", \"startGas\": \"0.000000000000021\", \"nonce\": \"1\", \"chainId\": \"1337\", \"data\": \"\"}","inputs":[{"amt":"100","comment":"","addr":"1f2f0641c80c1f6a13edf22e184292584ddcc9d9","confs":0,"mmid":"98831F3A:E:1"}],"outputs":[{"addr":"657afae1dfa9a866fb29b3e52d7b3eafdf1d55f9","amt":"99.99895","is_chg":true,"mmid":"98831F3A:E:12"}],"comment":"\u5fc5\u8981\u306a\u306e\u306f\u3001\u4fe1\u7528\u3067\u306f\u306a\u304f\u6697\u53f7\u5316\u3055\u308c\u305f\u8a3c\u660e\u306b\u57fa\u3065\u304f\u96fb\u5b50\u53d6\u5f15\u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308a\u3001\u3053\u308c\u306b\u3088\u308a\u5e0c\u671b\u3059\u308b\u4e8c\u8005\u304c\u4fe1\u7528\u3067\u304d\u308b\u7b2c\u4e09\u8005\u6a5f\u95a2\u3092\u4ecb\u3055\u305a\u306b\u76f4\u63a5\u53d6\u5f15\u3067\u304d\u308b\u3088\u3046"},"chksum":"8c9032"}

+ 1 - 0
test/ref/ethereum/76CF8C-ETH[99.99895,50000].regtest.sigtx

@@ -0,0 +1 @@
+{"MMGenTransaction":{"coin_id":"ETH","chain":"developmentchain","txid":"76CF8C","send_amt":"99.99895","timestamp":"20250317_045533","blockcount":16,"serialized":"f86f01850ba43b740082520894657afae1dfa9a866fb29b3e52d7b3eafdf1d55f989056bc3a335360c600080820a96a0a6120a53a55a819f5305c30c4b35c5471586ce664e17c28342cc0cb5f7a1f7b9a004541f89040b482d610364be3eb157b34129bb1c291bcd5a51e229288972f10a","inputs":[{"amt":"100","comment":"","addr":"1f2f0641c80c1f6a13edf22e184292584ddcc9d9","confs":0,"mmid":"98831F3A:E:1"}],"outputs":[{"addr":"657afae1dfa9a866fb29b3e52d7b3eafdf1d55f9","amt":"99.99895","is_chg":true,"mmid":"98831F3A:E:12"}],"comment":"\u5fc5\u8981\u306a\u306e\u306f\u3001\u4fe1\u7528\u3067\u306f\u306a\u304f\u6697\u53f7\u5316\u3055\u308c\u305f\u8a3c\u660e\u306b\u57fa\u3065\u304f\u96fb\u5b50\u53d6\u5f15\u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308a\u3001\u3053\u308c\u306b\u3088\u308a\u5e0c\u671b\u3059\u308b\u4e8c\u8005\u304c\u4fe1\u7528\u3067\u304d\u308b\u7b2c\u4e09\u8005\u6a5f\u95a2\u3092\u4ecb\u3055\u305a\u306b\u76f4\u63a5\u53d6\u5f15\u3067\u304d\u308b\u3088\u3046","coin_txid":"0f89a9fa2d2b4e93db97f771ddb100d46221ede42fc2e120a904395d7614d28f"},"chksum":"369d94"}

+ 0 - 6
test/ref/ethereum/B472BD-ETH[23.45495,40000].testnet.rawtx

@@ -1,6 +0,0 @@
-81edb6
-ETH KOVAN B472BD 23.45495 20180725_111111 7654321
-{"nonce": "0", "chainId": "42", "from": "97ccc3a117b3696340c42561361054b1c9c793d5", "startGas": "0.000000000000021", "to": "b7d06382a998817a16ba487a99636bf8cae29d9d", "data": "", "amt": "23.45495", "gasPrice": "0.00000004"}
-[{'confs': 0, 'label': u'', 'mmid': '98831F3A:E:1', 'amt': '123.456', 'addr': '97ccc3a117b3696340c42561361054b1c9c793d5'}]
-[{'mmid': '98831F3A:E:2', 'amt': '23.45495', 'addr': '2a6db46c87407e6d28fcb97d3bd0f5cf4aafca46'}]
-qRHzrPVpZFYxnQvk3atLzUtp41bZupJ2UQNnKe3ZnmqFsEngS6vaCCvesKKy9khzVq6y2RqarVBcZLnjtXxMpbAcdEtyBWiBYmZdoU8SN4uAbroHT1c7gEbmUNVKKdqHD86ZRRqDNpdh1ztmLiMAy3ibM83puwJHNpGGHgUGjZ1RSEgyVKCs2rZ9wXN8rBMibDDPYo1LgtAst2FkB36Mgf4Vf7ekoRAdiRNGd5YZ3RXAVsSdnZcyn4rdeQDMDkCq7JJDoB25eNEuXQutZFUcf2fEfxkMbW1sXJDNFQq

+ 0 - 7
test/ref/ethereum/B472BD-ETH[23.45495,40000].testnet.sigtx

@@ -1,7 +0,0 @@
-e9feb9
-ETH KOVAN B472BD 23.45495 20180725_111111 7654321
-f86d808509502f900082520894b7d06382a998817a16ba487a99636bf8cae29d9d89014580b8c15e8c60008077a057b7b73b9102fda68922eba0fbb70171425f1f27bad944838d3ded819eb03a63a00acb20276cbb30209923f959c63595b1b35663cbb30d186c6a5a2dbccb3e07fa
-[{'confs': 0, 'label': '', 'mmid': '98831F3A:E:1', 'amt': '123.456', 'addr': '97ccc3a117b3696340c42561361054b1c9c793d5'}]
-[{'mmid': '98831F3A:E:2', 'amt': '23.45495', 'addr': '2a6db46c87407e6d28fcb97d3bd0f5cf4aafca46'}]
-qRHzrPVpZFYxnQvk3atLzUtp41bZupJ2UQNnKe3ZnmqFsEngS6vaCCvesKKy9khzVq6y2RqarVBcZLnjtXxMpbAcdEtyBWiBYmZdoU8SN4uAbroHT1c7gEbmUNVKKdqHD86ZRRqDNpdh1ztmLiMAy3ibM83puwJHNpGGHgUGjZ1RSEgyVKCs2rZ9wXN8rBMibDDPYo1LgtAst2FkB36Mgf4Vf7ekoRAdiRNGd5YZ3RXAVsSdnZcyn4rdeQDMDkCq7JJDoB25eNEuXQutZFUcf2fEfxkMbW1sXJDNFQq
-0f277d20bf3793f94521a809943a659478bdfa6836a399f0568a93aeb4ce5184

+ 2 - 2
test/tooltest2_d/data.py

@@ -745,8 +745,8 @@ tests = {
 									None),],
 			'eth_mainnet': [(['test/ref/ethereum/88FEFD-ETH[23.45495,40000].rawtx'], None),],
 			'eth_testnet': [([
-				'test/ref/ethereum/B472BD-ETH[23.45495,40000].testnet.rawtx',
-				'test/ref/ethereum/B472BD-ETH[23.45495,40000].testnet.sigtx'
+				'test/ref/ethereum/76CF8C-ETH[99.99895,50000].regtest.rawtx',
+				'test/ref/ethereum/76CF8C-ETH[99.99895,50000].regtest.sigtx'
 				], None),],
 			'mm1_mainnet': [(['test/ref/ethereum/5881D2-MM1[1.23456,50000].rawtx'], None),],
 			'mm1_testnet': [(['test/ref/ethereum/6BDB25-MM1[1.23456,50000].testnet.rawtx'], None),],