11echo " test: GETting /tx\n"
22
33curl -X GET \
4- http://localhost:8080 /tx \
4+ http://localhost:8008 /tx \
55 -H ' Cache-Control: no-cache'
66
77# ###############################################################################
88
99echo " \n\ntest: POSTing root tx\n"
1010
1111curl -X POST \
12- http://localhost:8080 /tx \
12+ http://localhost:8008 /tx \
1313 -H ' Cache-Control: no-cache' \
1414 -H ' Content-Type: application/json' \
1515 -d ' { "tx": "0a0022200a1e47756172616e746565642d456e7472616e63652d546f6b656e2e74657374" }'
@@ -19,7 +19,7 @@ sleep 1
1919echo " \n\ntest: POSTing wiring tx\n"
2020
2121curl -X POST \
22- http://localhost:8080 /tx \
22+ http://localhost:8008 /tx \
2323 -H ' Cache-Control: no-cache' \
2424 -H ' Content-Type: application/json' \
2525 -d ' { "tx": "0a20dce4021c8f117e89c479665f6d61ff650b150af375d6498b593da6afa8d2ca9f1afa010add010a0a70726976696c656467651001100010021000100210001006100010011000100310001003100010011000100210001004100010031000100510001004100010051000100110001005100010021000100510001006100010021000100610001003100010061000100510001000100310001a036275791a07666f7253616c651a05626c6f636b1a07756e626c6f636b1a047363616e1a086e6f74536f6c64321a0873686f774f7665721a076e6f74536f6c641a066e6f53686f771a04627579271a076275794261636b1a096e6f745265736f6c641a0663726561746512160a046d61696e10011801220a70726976696c656467651800" }'
@@ -29,7 +29,7 @@ sleep 1
2929echo " \n\ntest: POSTing 0th firing tx (the 'execution')\n"
3030
3131curl -X POST \
32- http://localhost:8080 /tx \
32+ http://localhost:8008 /tx \
3333 -H ' Cache-Control: no-cache' \
3434 -H ' Content-Type: application/json' \
3535 -d ' { "tx": "0a20dce4021cacc5f351d54402799977d7e4f7b86805359aec724805c80ec0b4d546120710001a03aa0003" }'
@@ -39,7 +39,7 @@ sleep 1
3939echo " \n\ntest: POSTing 1st firing tx\n"
4040
4141curl -X POST \
42- http://localhost:8080 /tx \
42+ http://localhost:8008 /tx \
4343 -H ' Cache-Control: no-cache' \
4444 -H ' Content-Type: application/json' \
4545 -d ' { "tx": "0a20dce4021c1447c0b50a5ce982dd4e78650ca3cc642004b4408eac0264da1ca5b812240a20dce4021c1447c0b50a5ce982dd4e78650ca3cc642004b4408eac0264da1ca5b81004" }'
@@ -49,7 +49,7 @@ sleep 1
4949echo " \n\ntest: POSTing 2nd firing tx\n"
5050
5151curl -X POST \
52- http://localhost:8080 /tx \
52+ http://localhost:8008 /tx \
5353 -H ' Cache-Control: no-cache' \
5454 -H ' Content-Type: application/json' \
5555 -d ' { "tx": "0a20dce4021cd649d3a9d1f69832f26739c1d81c873ca5f343ec2dd92d335adfc805122a0a20dce4021c1447c0b50a5ce982dd4e78650ca3cc642004b4408eac0264da1ca5b810011a04111aaa11" }'
@@ -59,7 +59,7 @@ sleep 1
5959echo " \n\ntest: POSTing 3rd firing tx\n"
6060
6161curl -X POST \
62- http://localhost:8080 /tx \
62+ http://localhost:8008 /tx \
6363 -H ' Cache-Control: no-cache' \
6464 -H ' Content-Type: application/json' \
6565 -d ' { "tx": "0a20dce4021c15fda2dfd9ec2ef4413b9e5a4ac5cbd8def33c0ca2c071f75a71464b122b0a20dce4021c1447c0b50a5ce982dd4e78650ca3cc642004b4408eac0264da1ca5b810051a05222bbbb222" }'
@@ -70,7 +70,7 @@ sleep 1
7070
7171echo " \n\ntest: GETting /tx\n"
7272curl -X GET \
73- http://localhost:8080 /tx \
73+ http://localhost:8008 /tx \
7474 -H ' Cache-Control: no-cache'
7575
7676echo " \n\n--------------------------------------------------------------------------------"
@@ -80,7 +80,7 @@ sleep 1
8080echo " \n\ntest: posting invalid nonsense tx\n"
8181
8282curl -X POST \
83- http://localhost:8080 /tx \
83+ http://localhost:8008 /tx \
8484 -H ' Cache-Control: no-cache' \
8585 -H ' Content-Type: application/json' \
8686 -d ' { "quux": "THIS SHOULD BE INVALID" }'
@@ -90,7 +90,7 @@ sleep 1
9090echo " \n\ntest: POSTing invalid root tx\n"
9191
9292curl -X POST \
93- http://localhost:8080 /tx \
93+ http://localhost:8008 /tx \
9494 -H ' Cache-Control: no-cache' \
9595 -H ' Content-Type: application/json' \
9696 -d ' { "tx": "this is an ill-formed hexadecimal number" }'
0 commit comments