From e3dfe6716db5d24a4a7e8f293d6027efd416b3ba Mon Sep 17 00:00:00 2001 From: lumat Date: Sun, 24 Sep 2023 07:43:32 +0200 Subject: [PATCH] Fix panic in lyra2 when mining --- consensus/lyra2/consensus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/lyra2/consensus.go b/consensus/lyra2/consensus.go index ba6f35ed01..8a00eb10d6 100644 --- a/consensus/lyra2/consensus.go +++ b/consensus/lyra2/consensus.go @@ -394,7 +394,7 @@ func (lyra2 *Lyra2) FinalizeAndAssemble(chain consensus.ChainHeaderReader, heade header.Root = state.IntermediateRoot(chain.Config().IsEnabled(chain.Config().GetEIP161dTransition, header.Number)) // Header seems complete, assemble into a block and return - return types.NewBlock(header, txs, uncles, receipts, new(trie.Trie)), nil + return types.NewBlock(header, txs, uncles, receipts, trie.NewStackTrie(nil)), nil } // SealHash returns the hash of a block prior to it being sealed.