Skip to content

Commit

Permalink
add back setting verkle-proof in block inside miner. remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed Jan 14, 2022
1 parent 2238c5b commit 76c7813
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1050,18 +1050,15 @@ func (w *worker) commit(uncles []*types.Header, interval func(), update bool, st
if err != nil {
return err
}
fmt.Printf("block %s/%s - %s\n", block.Number(), block.ParentHash().Hex(), w.current.state.GetBalance(block.Coinbase()).String())
/*
if tr := s.GetTrie(); tr.IsVerkle() {
vtr := tr.(*trie.VerkleTrie)
// Generate the proof if we are using a verkle tree
p, err := vtr.ProveAndSerialize(s.Witness().Keys(), s.Witness().KeyVals())
if err != nil {
return err
}
block.SetVerkleProof(p)
if tr := s.GetTrie(); tr.IsVerkle() {
vtr := tr.(*trie.VerkleTrie)
// Generate the proof if we are using a verkle tree
p, err := vtr.ProveAndSerialize(s.Witness().Keys(), s.Witness().KeyVals())
if err != nil {
return err
}
*/
block.SetVerkleProof(p)
}
if w.isRunning() && !w.merger.TDDReached() {
if interval != nil {
interval()
Expand Down

0 comments on commit 76c7813

Please sign in to comment.