OSDN Git Service

Hulk did something
[bytom/vapor.git] / test / testdata / chain_tests / ct_rollback.json
diff --git a/test/testdata/chain_tests/ct_rollback.json b/test/testdata/chain_tests/ct_rollback.json
new file mode 100644 (file)
index 0000000..f3178d0
--- /dev/null
@@ -0,0 +1,75 @@
+{
+  "rollback": 104,
+  "blocks": [
+    {
+      "append": 100
+    },
+    {
+      "transactions": [
+        {
+          "inputs": [
+            {"height": 1, "tx_index": 0, "output_index": 0}
+          ],
+          "outputs": [3000000000, 10000000, 3000000000]
+        }
+      ],
+      "append": 2
+    },
+    {
+      "transactions": [
+        {
+          "inputs": [
+            {"height": 2, "tx_index": 0, "output_index": 0}
+          ],
+          "outputs": [3000000000, 10000000, 3000000000]
+        }
+      ]
+    },
+    {
+      "transactions": [
+        {
+          "inputs": [
+            {"height": 102, "tx_index": 1, "output_index": 0},
+            {"height": 3, "tx_index": 0, "output_index": 0}
+          ],
+          "outputs": [3000000000, 10000000, 3000000000]
+        },
+        {
+          "inputs": [
+            {"height": 105, "tx_index": 1, "output_index": 0},
+            {"height": 4, "tx_index": 0, "output_index": 0}
+          ],
+          "outputs": [3000000000, 10000000, 3000000000]
+        }
+      ]
+    },
+    {
+      "transactions": [
+        {
+          "inputs": [
+            {"height": 106, "tx_index": 1, "output_index": 0},
+            {"height": 106, "tx_index": 2, "output_index": 0},
+            {"height": 106, "tx_index": 2, "output_index": 2}
+          ],
+          "outputs": [3000000000, 10000000, 3000000000]
+        },
+        {
+          "inputs": [
+            {"height": 107, "tx_index": 1, "output_index": 0},
+            {"height": 107, "tx_index": 1, "output_index": 2},
+            {"height": 5, "tx_index": 0, "output_index": 0}
+          ],
+          "outputs": [3000000000, 10000000, 3000000000]
+        },
+        {
+          "inputs": [
+            {"height": 107, "tx_index": 2, "output_index": 0},
+            {"height": 107, "tx_index": 1, "output_index": 1},
+            {"height": 6, "tx_index": 0, "output_index": 0}
+          ],
+          "outputs": [3000000000, 10000000, 3000000000]
+        }
+      ]
+    }
+  ]
+}
\ No newline at end of file