我最近参与了超级账本锯齿的简单钱包示例的代码,并且第一个区块停留在待处理状态,我不知道为什么?
这是返回的块的代码
{
"data": [
{
"id": "49e10b5dc3da0d9057598fcd9812ec9b3e088a8d5ba895652488a5c40696da3945671979aa906c08be25d68bb8ac1c85a1eff83ca2c48e72dd7a20903bd9d455",
"invalid_transactions": [],
"status": "PENDING"
}
],
"link": "http://localhost:8008/batch_statuses?id=49e10b5dc3da0d9057598fcd9812ec9b3e088a8d5ba895652488a5c40696da3945671979aa906c08be25d68bb8ac1c85a1eff83ca2c48e72dd7a20903bd9d455"
}
这是我要发送的批次
batches {
header: "\nB02509850594914b74283b3deb2139355e377da0451da4305974450fd0c63f6b7d9\022\200\0011766e0daa0bededb9e43b46a234a88c96a011cbb788fcaac8b55ad94be9b4ea039b1424a205bfa13e29904d2ee7bc18c570aaa7ba0040d144dfceb8d108782bf"
header_signature: "5afe7759d56124558f4a2f312b51327c672c3675eef34c1a2aa881786df98eaf3908558a5c3da5ed3eec555fab5754f42dd3d9ed1bce67213ba28f811b4577df"
transactions {
header: "\nB02509850594914b74283b3deb2139355e377da0451da4305974450fd0c63f6b7d9\032\006BMSNET\"\0031.0*Fed74e3d66e72d849b77bef7e5c9c1ae45c9c99e405c45e4c7896e6418ebaf376fda5722\0240x1.269f5f80f9370p-1:Fed74e3d66e72d849b77bef7e5c9c1ae45c9c99e405c45e4c7896e6418ebaf376fda572J\200\00105bd2c1e7c4276b640d19c4ffcc0dab743c6b77181be1893cdb75dca7e2248f27efacdc5218f6e97ba06597ae573341fc22859aec785a26003d79ca143754c2bRB02509850594914b74283b3deb2139355e377da0451da4305974450fd0c63f6b7d9"
header_signature: "1766e0daa0bededb9e43b46a234a88c96a011cbb788fcaac8b55ad94be9b4ea039b1424a205bfa13e29904d2ee7bc18c570aaa7ba0040d144dfceb8d108782bf"
payload: "deposit,1000"
}
}
谢谢。
答案 0 :(得分:0)
对我来说,问题是在验证器中注册了 poet-validator-registry-tp
组件。移除组件后,系统可能会进入 devMode,因此只需要 1 个验证器即可验证请求。