aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--JSONSchema/bc-filler-schema.json23
-rw-r--r--JSONSchema/bc-schema.json8
-rw-r--r--JSONSchema/definitions.json12
3 files changed, 40 insertions, 3 deletions
diff --git a/JSONSchema/bc-filler-schema.json b/JSONSchema/bc-filler-schema.json
index 2f9ecfbb5..a5306c5c3 100644
--- a/JSONSchema/bc-filler-schema.json
+++ b/JSONSchema/bc-filler-schema.json
@@ -218,6 +218,9 @@
],
"type": "object"
},
+ "sealEngine": {
+ "$ref": "#/definitions/SealEngineType"
+ },
"Transaction": {
"additionalProperties": true,
"not": {
@@ -227,7 +230,7 @@
},
"properties": {
"data": {
- "$ref": "#/definitions/HexDataOrEmpty"
+ "$ref": "#/definitions/TxData"
},
"gasLimit": {
"$ref": "#/definitions/IntegerOrEmptyOrConfusedHex"
@@ -258,6 +261,19 @@
],
"type": "object"
},
+ "TxData": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/HexData"
+ },
+ {
+ "$ref": "#/definitions/EmptyString"
+ },
+ {
+ "$ref": "#/definitions/LLLCode"
+ }
+ ]
+ },
"TxSigR": {
"oneOf": [
{
@@ -318,7 +334,10 @@
"description": "prestate account address with 0x prefix"
}
}
- }
+ },
+ "sealEngine": {
+ "$ref": "#/definitions/SealEngineType"
+ }
},
"required": [
"pre",
diff --git a/JSONSchema/bc-schema.json b/JSONSchema/bc-schema.json
index 729638d1a..fb7d92e76 100644
--- a/JSONSchema/bc-schema.json
+++ b/JSONSchema/bc-schema.json
@@ -198,6 +198,9 @@
],
"type": "object"
},
+ "sealEngine": {
+ "$ref": "#/definitions/SealEngineType"
+ },
"Transaction": {
"additionalProperties": true,
"not": {
@@ -301,7 +304,10 @@
"description": "prestate account address with 0x prefix"
}
}
- }
+ },
+ "sealEngine": {
+ "$ref": "#/definitions/SealEngineType"
+ }
},
"required": [
"postState",
diff --git a/JSONSchema/definitions.json b/JSONSchema/definitions.json
index 4d00794c5..529e08763 100644
--- a/JSONSchema/definitions.json
+++ b/JSONSchema/definitions.json
@@ -279,6 +279,18 @@
}
]
},
+ "SealEngineType": {
+ "anyOf": [
+ {
+ "pattern": "NoProof",
+ "type": "string"
+ },
+ {
+ "pattern": "Ethash",
+ "type": "string"
+ }
+ ]
+ },
"TransactionResults": {
"items": {
"additionalProperties": false,