new consensus engine commit 4/6/23

This commit is contained in:
philip-morlier 2023-04-06 10:36:43 -07:00
parent b1dd4f79f3
commit c3924a529e
2 changed files with 5 additions and 1 deletions

View File

@ -432,7 +432,6 @@ func (ew *engineWrapper) Prepare(chain consensus.ChainHeaderReader, header *type
} }
// header.Difficulty = uHeader.Difficulty // header.Difficulty = uHeader.Difficulty
*header = *utilsToGethHeader(uHeader) *header = *utilsToGethHeader(uHeader)
log.Error("header logs", "header D", header.Difficulty, "U head D", uHeader.Difficulty)
return nil return nil
} }
func (ew *engineWrapper) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, withdrawals []*types.Withdrawal) { func (ew *engineWrapper) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, withdrawals []*types.Withdrawal) {

View File

@ -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)) 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 { type Node struct {
n *node.Node n *node.Node
} }