|
31 | 31 | }, |
32 | 32 | { |
33 | 33 | "exec": "./bitcoin-util", |
34 | | - "args": ["netmagic"], |
| 34 | + "args": ["getchainparams"], |
35 | 35 | "return_code": 0, |
36 | | - "output_cmp": "netmagic-mainnet.hex", |
37 | | - "description": "netmagic returns mainnet magic bytes" |
| 36 | + "output_cmp": "getchainparams-mainnet.json", |
| 37 | + "description": "getchainparams returns mainnet info" |
38 | 38 | }, |
39 | 39 | { |
40 | 40 | "exec": "./bitcoin-util", |
41 | | - "args": ["-regtest", "netmagic"], |
| 41 | + "args": ["-regtest", "getchainparams"], |
42 | 42 | "return_code": 0, |
43 | | - "output_cmp": "netmagic-regtest.hex", |
44 | | - "description": "netmagic returns regtest magic bytes" |
| 43 | + "output_cmp": "getchainparams-regtest.json", |
| 44 | + "description": "getchainparams returns regtest info" |
45 | 45 | }, |
46 | 46 | { |
47 | 47 | "exec": "./bitcoin-util", |
48 | | - "args": ["-testnet", "netmagic"], |
| 48 | + "args": ["-testnet", "getchainparams"], |
49 | 49 | "return_code": 0, |
50 | | - "output_cmp": "netmagic-testnet.hex", |
51 | | - "description": "netmagic returns testnet magic bytes" |
| 50 | + "output_cmp": "getchainparams-testnet.json", |
| 51 | + "description": "getchainparams returns testnet info" |
52 | 52 | }, |
53 | 53 | { |
54 | 54 | "exec": "./bitcoin-util", |
55 | | - "args": ["-testnet4", "netmagic"], |
| 55 | + "args": ["-testnet4", "getchainparams"], |
56 | 56 | "return_code": 0, |
57 | | - "output_cmp": "netmagic-testnet4.hex", |
58 | | - "description": "netmagic returns testnet4 magic bytes" |
| 57 | + "output_cmp": "getchainparams-testnet4.json", |
| 58 | + "description": "getchainparams returns testnet4 info" |
59 | 59 | }, |
60 | 60 | { |
61 | 61 | "exec": "./bitcoin-util", |
62 | | - "args": ["-signet", "netmagic"], |
| 62 | + "args": ["-signet", "getchainparams"], |
63 | 63 | "return_code": 0, |
64 | | - "output_cmp": "netmagic-signet.hex", |
65 | | - "description": "netmagic returns signet magic bytes" |
| 64 | + "output_cmp": "getchainparams-signet.json", |
| 65 | + "description": "getchainparams returns signet info" |
66 | 66 | }, |
67 | 67 | { |
68 | 68 | "exec": "./bitcoin-util", |
69 | | - "args": ["-signet", "-signetchallenge=512102f7561d208dd9ae99bf497273e16f389bdbd6c4742ddb8e6b216e64fa2928ad8f51ae", "netmagic"], |
| 69 | + "args": ["-signet", "-signetchallenge=512102f7561d208dd9ae99bf497273e16f389bdbd6c4742ddb8e6b216e64fa2928ad8f51ae", "getchainparams"], |
70 | 70 | "return_code": 0, |
71 | | - "output_cmp": "netmagic-signet-custom.hex", |
72 | | - "description": "netmagic returns custom signet magic bytes" |
| 71 | + "output_cmp": "getchainparams-signet-custom.json", |
| 72 | + "description": "getchainparams returns custom signet info" |
73 | 73 | }, |
74 | 74 | { |
75 | 75 | "exec": "./bitcoin-util", |
76 | | - "args": ["netmagic", "extra_arg"], |
| 76 | + "args": ["getchainparams", "extra_arg"], |
77 | 77 | "return_code": 1, |
78 | | - "error_txt": "netmagic does not take arguments", |
79 | | - "description": "netmagic rejects extra arguments" |
| 78 | + "error_txt": "getchainparams does not take arguments", |
| 79 | + "description": "getchainparams rejects extra arguments" |
80 | 80 | }, |
81 | 81 | { "exec": "./bitcoin-tx", |
82 | 82 | "args": ["-create", "nversion=1"], |
|
0 commit comments