1
1
echo " test: GETting /tx\n"
2
2
3
3
curl -X GET \
4
- http://localhost:8080 /tx \
4
+ http://localhost:8008 /tx \
5
5
-H ' Cache-Control: no-cache'
6
6
7
7
# ###############################################################################
8
8
9
9
echo " \n\ntest: POSTing root tx\n"
10
10
11
11
curl -X POST \
12
- http://localhost:8080 /tx \
12
+ http://localhost:8008 /tx \
13
13
-H ' Cache-Control: no-cache' \
14
14
-H ' Content-Type: application/json' \
15
15
-d ' { "tx": "0a0022200a1e47756172616e746565642d456e7472616e63652d546f6b656e2e74657374" }'
@@ -19,7 +19,7 @@ sleep 1
19
19
echo " \n\ntest: POSTing wiring tx\n"
20
20
21
21
curl -X POST \
22
- http://localhost:8080 /tx \
22
+ http://localhost:8008 /tx \
23
23
-H ' Cache-Control: no-cache' \
24
24
-H ' Content-Type: application/json' \
25
25
-d ' { "tx": "0a20dce4021c8f117e89c479665f6d61ff650b150af375d6498b593da6afa8d2ca9f1afa010add010a0a70726976696c656467651001100010021000100210001006100010011000100310001003100010011000100210001004100010031000100510001004100010051000100110001005100010021000100510001006100010021000100610001003100010061000100510001000100310001a036275791a07666f7253616c651a05626c6f636b1a07756e626c6f636b1a047363616e1a086e6f74536f6c64321a0873686f774f7665721a076e6f74536f6c641a066e6f53686f771a04627579271a076275794261636b1a096e6f745265736f6c641a0663726561746512160a046d61696e10011801220a70726976696c656467651800" }'
@@ -29,7 +29,7 @@ sleep 1
29
29
echo " \n\ntest: POSTing 0th firing tx (the 'execution')\n"
30
30
31
31
curl -X POST \
32
- http://localhost:8080 /tx \
32
+ http://localhost:8008 /tx \
33
33
-H ' Cache-Control: no-cache' \
34
34
-H ' Content-Type: application/json' \
35
35
-d ' { "tx": "0a20dce4021cacc5f351d54402799977d7e4f7b86805359aec724805c80ec0b4d546120710001a03aa0003" }'
@@ -39,7 +39,7 @@ sleep 1
39
39
echo " \n\ntest: POSTing 1st firing tx\n"
40
40
41
41
curl -X POST \
42
- http://localhost:8080 /tx \
42
+ http://localhost:8008 /tx \
43
43
-H ' Cache-Control: no-cache' \
44
44
-H ' Content-Type: application/json' \
45
45
-d ' { "tx": "0a20dce4021c1447c0b50a5ce982dd4e78650ca3cc642004b4408eac0264da1ca5b812240a20dce4021c1447c0b50a5ce982dd4e78650ca3cc642004b4408eac0264da1ca5b81004" }'
@@ -49,7 +49,7 @@ sleep 1
49
49
echo " \n\ntest: POSTing 2nd firing tx\n"
50
50
51
51
curl -X POST \
52
- http://localhost:8080 /tx \
52
+ http://localhost:8008 /tx \
53
53
-H ' Cache-Control: no-cache' \
54
54
-H ' Content-Type: application/json' \
55
55
-d ' { "tx": "0a20dce4021cd649d3a9d1f69832f26739c1d81c873ca5f343ec2dd92d335adfc805122a0a20dce4021c1447c0b50a5ce982dd4e78650ca3cc642004b4408eac0264da1ca5b810011a04111aaa11" }'
@@ -59,7 +59,7 @@ sleep 1
59
59
echo " \n\ntest: POSTing 3rd firing tx\n"
60
60
61
61
curl -X POST \
62
- http://localhost:8080 /tx \
62
+ http://localhost:8008 /tx \
63
63
-H ' Cache-Control: no-cache' \
64
64
-H ' Content-Type: application/json' \
65
65
-d ' { "tx": "0a20dce4021c15fda2dfd9ec2ef4413b9e5a4ac5cbd8def33c0ca2c071f75a71464b122b0a20dce4021c1447c0b50a5ce982dd4e78650ca3cc642004b4408eac0264da1ca5b810051a05222bbbb222" }'
@@ -70,7 +70,7 @@ sleep 1
70
70
71
71
echo " \n\ntest: GETting /tx\n"
72
72
curl -X GET \
73
- http://localhost:8080 /tx \
73
+ http://localhost:8008 /tx \
74
74
-H ' Cache-Control: no-cache'
75
75
76
76
echo " \n\n--------------------------------------------------------------------------------"
@@ -80,7 +80,7 @@ sleep 1
80
80
echo " \n\ntest: posting invalid nonsense tx\n"
81
81
82
82
curl -X POST \
83
- http://localhost:8080 /tx \
83
+ http://localhost:8008 /tx \
84
84
-H ' Cache-Control: no-cache' \
85
85
-H ' Content-Type: application/json' \
86
86
-d ' { "quux": "THIS SHOULD BE INVALID" }'
@@ -90,7 +90,7 @@ sleep 1
90
90
echo " \n\ntest: POSTing invalid root tx\n"
91
91
92
92
curl -X POST \
93
- http://localhost:8080 /tx \
93
+ http://localhost:8008 /tx \
94
94
-H ' Cache-Control: no-cache' \
95
95
-H ' Content-Type: application/json' \
96
96
-d ' { "tx": "this is an ill-formed hexadecimal number" }'
0 commit comments