There was an error while loading. Please reload this page.
1 parent 0c1c998 commit ee18fd4Copy full SHA for ee18fd4
1 file changed
util/light-client-protocol-server/src/lib.rs
@@ -192,7 +192,9 @@ impl LightClientProtocol {
192
<T as Entity>::Builder: ProverMessageBuilder,
193
<<T as Entity>::Builder as Builder>::Entity: Into<packed::LightClientMessageUnion>,
194
{
195
- let (parent_chain_root, proof) = {
+ let (parent_chain_root, proof) = if last_block.is_genesis() {
196
+ (Default::default(), Default::default())
197
+ } else {
198
let snapshot = self.shared.snapshot();
199
let mmr = snapshot.chain_root_mmr(last_block.number() - 1);
200
let parent_chain_root = match mmr.get_root() {
0 commit comments