forked from cerc-io/laconicd-deprecated
evm: set chainID in context during BeginBlock (#130)
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
|||||||
func (k *Keeper) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
|
func (k *Keeper) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
|
||||||
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)
|
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)
|
||||||
k.WithContext(ctx)
|
k.WithContext(ctx)
|
||||||
|
k.WithChainID(ctx)
|
||||||
k.headerHash = common.BytesToHash(req.Hash)
|
k.headerHash = common.BytesToHash(req.Hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user