les: fix CHTRoot on nodeinfo for les2 mode

This commit is contained in:
EOS Classic 2018-08-21 15:35:54 +09:00
parent 7d38d53ae4
commit 3dff8de919
No known key found for this signature in database
GPG key ID: 0D626A44301D8C5E

View file

@ -87,7 +87,7 @@ func (c *lesCommons) nodeInfo() interface{} {
cht = light.TrustedCheckpoint{
SectionIdx: sectionIndex,
SectionHead: sectionHead,
CHTRoot: light.GetChtRoot(c.chainDb, sectionIndex, sectionHead),
CHTRoot: light.GetChtV2Root(c.chainDb, sectionIndex, sectionHead),
BloomRoot: light.GetBloomTrieRoot(c.chainDb, sectionIndex, sectionHead),
}
}