Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从 CSV 文件中读取数据并将每条记录存储在区块链中。上传超过 150 条记录的文件时出现错误:
“由于队列已满,验证器目前无法接受更多批次。请再次提交您的请求。”
请帮助我如何解决这个问题。
我认为我们有几个选择。我们可以减慢您的导入脚本或等待返回有效块,直到从 csv 插入下一行。我们还可以查看在单个批次中提交交易块。除此之外,不确定是否可以增加默认队列长度。
我正在使用计时器概念。
json.objects.forEach(function(obj,index,collection) { setTimeout(function(){ console.log('foobar'); self.insertDesignJsonObject(obj, index); }, index * 5000); });