首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在我的私人连锁店上生成一个TrustedCheckpoint(CHT)?

如何在我的私人连锁店上生成一个TrustedCheckpoint(CHT)?
EN

Ethereum用户
提问于 2019-06-24 08:07:06
回答 1查看 229关注 0票数 2

我看到了这个链接,但仍然不知道如何获得CHTRoot和BloomRoot,只知道SectionHead是块(SectionIndex+1)*32768-1.headhash

https://github.com/ethereum/devp2p/blob/master/caps/les.md#gethelpertrieproofs-0x11

例:

代码语言:javascript
复制
// MainnetTrustedCheckpoint contains the light client trusted checkpoint for the main network.
MainnetTrustedCheckpoint = &TrustedCheckpoint{
    Name:         "mainnet",
    SectionIndex: 227,
    SectionHead:  common.HexToHash("0xa2e0b25d72c2fc6e35a7f853cdacb193b4b4f95c606accf7f8fa8415283582c7"),
    CHTRoot:      common.HexToHash("0xf69bdd4053b95b61a27b106a0e86103d791edd8574950dc96aa351ab9b9f1aa0"),
    BloomRoot:    common.HexToHash("0xec1b454d4c6322c78ccedf76ac922a8698c3cac4d98748a84af4995b7bd3d744"),
}
EN

回答 1

Ethereum用户

发布于 2019-07-25 10:56:16

设置命令行选项:--lightserv值--轻型对等点值

它将自动更新存储CHT的SectionIndex和printf,存储bloom。

客户端刚刚设置:-同步模式=轻型

票数 0
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/72163

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档