We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6487376 commit 2427af4Copy full SHA for 2427af4
1 file changed
src/index.js
@@ -1109,14 +1109,12 @@ ChainsqlAPI.prototype.createSchema = function(schemaInfo){
1109
let bValid = (schemaInfo !== undefined) && (schemaInfo.SchemaName !== undefined) && (schemaInfo.WithState !== undefined) &&
1110
(schemaInfo.Validators !== undefined) && (schemaInfo.Validators instanceof Array) &&
1111
(schemaInfo.PeerList !== undefined) && (schemaInfo.PeerList instanceof Array);
1112
+
1113
1114
if(!bValid){
1115
throw new Error("Invalid schemaInfo parameter");
- }
1116
-
1117
- // 继承自主链的状态
1118
- // 锚定区块的hash值
1119
+ }
1120
var peerlists = []
1121
var i = 0;
1122
var len = schemaInfo.PeerList.length
0 commit comments