From 792726bbeb65c4540f9a9f04391a131e4200c325 Mon Sep 17 00:00:00 2001 From: Javed Khan Date: Mon, 19 Feb 2024 18:10:47 +0100 Subject: [PATCH] fix(miner): use unixnano for block time --- cosmos/runtime/miner/miner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmos/runtime/miner/miner.go b/cosmos/runtime/miner/miner.go index 2d6ce207c..7c5f7d2e9 100644 --- a/cosmos/runtime/miner/miner.go +++ b/cosmos/runtime/miner/miner.go @@ -102,7 +102,7 @@ func (m *Miner) submitPayloadForBuilding(ctx context.Context) error { err error payload *miner.Payload sCtx = sdk.UnwrapSDKContext(ctx) - payloadArgs = m.constructPayloadArgs(uint64(sCtx.BlockTime().Unix())) + payloadArgs = m.constructPayloadArgs(uint64(sCtx.BlockTime().UnixNano())) ) // Set the mining context for geth to build the payload with.