2023-08-01 16:01:26 +05:30
|
|
|
package misc
|
|
|
|
|
|
|
|
import (
|
2023-08-24 17:10:50 +02:00
|
|
|
"github.com/ledgerwatch/log/v3"
|
2023-08-01 16:01:26 +05:30
|
|
|
|
|
|
|
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
|
|
|
"github.com/ledgerwatch/erigon/consensus"
|
|
|
|
"github.com/ledgerwatch/erigon/params"
|
|
|
|
)
|
|
|
|
|
2023-08-24 17:10:50 +02: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 16:01:26 +05:30
|
|
|
}
|