new consensus engine commit 4/6/23
This commit is contained in:
parent
b1dd4f79f3
commit
c3924a529e
@ -432,7 +432,6 @@ func (ew *engineWrapper) Prepare(chain consensus.ChainHeaderReader, header *type
|
||||
}
|
||||
// header.Difficulty = uHeader.Difficulty
|
||||
*header = *utilsToGethHeader(uHeader)
|
||||
log.Error("header logs", "header D", header.Difficulty, "U head D", uHeader.Difficulty)
|
||||
return nil
|
||||
}
|
||||
func (ew *engineWrapper) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, withdrawals []*types.Withdrawal) {
|
||||
|
@ -194,6 +194,11 @@ func (w *WrappedStateDB) SlotInAccessList(addr core.Address, slot core.Hash) (ad
|
||||
return w.s.SlotInAccessList(common.Address(addr), common.Hash(slot))
|
||||
}
|
||||
|
||||
// IntermediateRoot(deleteEmptyObjects bool) common.Hash
|
||||
func (w *WrappedStateDB) IntermediateRoot(deleteEmptyObjects bool) core.Hash {
|
||||
return core.Hash(w.s.IntermediateRoot(deleteEmptyObjects))
|
||||
}
|
||||
|
||||
type Node struct {
|
||||
n *node.Node
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user