Skip to content

Commit

Permalink
Fix panic in lyra2 when mining
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszmatczak committed Sep 24, 2023
1 parent ed7fd70 commit e3dfe67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/lyra2/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e3dfe67

Please sign in to comment.