2023-08-01 10:31:26 +00:00
|
|
|
package misc
|
|
|
|
|
|
|
|
import (
|
2023-08-24 15:10:50 +00:00
|
|
|
"github.com/ledgerwatch/log/v3"
|
2023-08-01 10:31:26 +00:00
|
|
|
|
|
|
|
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
|
|
|
"github.com/ledgerwatch/erigon/consensus"
|
|
|
|
"github.com/ledgerwatch/erigon/params"
|
|
|
|
)
|
|
|
|
|
2023-08-24 15:10:50 +00:00
|
|
|
func ApplyBeaconRootEip4788(parentBeaconBlockRoot *libcommon.Hash, syscall consensus.SystemCall) {
|
|
|
|
_, err := syscall(params.BeaconRootsAddress, parentBeaconBlockRoot.Bytes())
|
|
|
|
if err != nil {
|
|
|
|
log.Warn("Failed to call beacon roots contract", "err", err)
|
|
|
|
}
|
2023-08-01 10:31:26 +00:00
|
|
|
}
|