Skip to content

Commit

Permalink
miner: embed verkle proof in sealing block
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed Nov 30, 2021
1 parent 86bdc3f commit a5d4171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1043,10 +1043,11 @@ func (w *worker) commit(uncles []*types.Header, interval func(), update bool, st
vtr := tr.(*trie.VerkleTrie)
// Generate the proof if we are using a verkle tree
p, err := vtr.ProveAndSerialize(s.Witness().Keys(), s.Witness().KeyVals())
w.current.header.VerkleProof = p
if err != nil {
return err
}
//w.current.header.VerkleProof = p
block.SetVerkleProof(p)
}
if w.isRunning() && !w.merger.TDDReached() {
if interval != nil {
Expand Down

0 comments on commit a5d4171

Please sign in to comment.