Tezos RPC不响应当前检查点以下的块
2 个回答
- 投票数
-
- 2019-07-09
您引用的博客文章说:
以
full
模式运行的节点存储所有块的全链数据,甚至包括比当前检查点还早的块.更确切地说,它保留这些块的 headers 和 operations .但是,它会丢弃存档的 context 和操作,并阻止 receipts .我们说这样的块信息是"修剪"的:我们只保留从网络中获取的必要位,并丢弃所有可以从中重构的信息.因此,这说明了为什么
../<block_id>/header
终结点为您工作,而"完整信息"终结点可能需要一些经过修剪的信息.但是,博客文章中的这句话暗示../<block_id>/operations
端点也应该工作,并且您应该能够从这两部分中重构出所需的所有信息.数据(标题和操作).The blog post you referenced says that:
A node running in
full
-mode stores the full chain data for all blocks, even the ones older than the current checkpoint. More precisely, it keeps the headers and the operations for these blocks. However, it discards the archived context and the operation and block receipts. We say that such a block information is “pruned”: we keep only the necessary bits that we got from the network, and drop everything that can be reconstructed from them.So this explains why the
../<block_id>/header
endpoint works for you, while the “full information” endpoint probably requires some information that is pruned. However, this quote from the blog post implies that the../<block_id>/operations
endpoint should work as well, and you should be able to reconstruct all the information you need from these two pieces of data (header and operations).-
不幸的是,`GET/chains/main/blocks/212993/operations'可以按预期工作,但`GET/chains/main/blocks/212992/operations'却不能Unfortunately, `GET /chains/main/blocks/212993/operations` works as expected but `GET /chains/main/blocks/212992/operations` doesn't
- 1
- 2019-07-09
- Ilya Peresadin
-
/operations RPC需要修剪的信息.应该添加一个新的RPC,以获取原始操作数据,而不添加收据.The /operations RPC needs pruned info. A new RPC should be added for getting the raw operations data, without the receipts.
- 1
- 2019-07-10
- Tom
-
- 2019-12-26
这是全模式的已知问题-请参阅完整节点无法查询操作数据从最近检查点之前的块中提取以获取更多信息.
This is a known issue with full-mode - please see Full node unable to query operation data from blocks prior to most recent checkpoint for more info.
我已经运行了自己的Tezos节点实例,看来该节点没有响应当前检查点以下的块.
GET /chains/main/checkpoint
响应:因此,如我们所见,history_mode为"已满".根据这篇文章 https://blog.nomadic -labs.com/introducing-snapshots-and-history-modes-for-the-tezos-node.html 此模式下的节点将存储所有块.
但是,
GET /chains/main/blocks/212992
响应未找到404, 但是GET /chains/main/blocks/212992/header
响应是一个块头.GET /chains/main/blocks/212993
正常工作,并按预期方式响应一个块.我使用docker映像来部署节点.
UPD :
GET /chains/main/blocks/212992/operations
也不起作用