Skip to content

Commit

Permalink
fix: remove time rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathansumner committed Jun 7, 2024
1 parent 70edf5d commit d357ab1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ package server
import (
"errors"
"fmt"

Check failure on line 7 in server/export.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `gofumpt`-ed (gofumpt)
"time"

"github.com/spf13/cobra"
tmjson "github.com/tendermint/tendermint/libs/json"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
Expand All @@ -24,7 +22,6 @@ const (
FlagHeight = "height"
FlagForZeroHeight = "for-zero-height"
FlagJailAllowedAddrs = "jail-allowed-addrs"
RoundingInterval = 5 * time.Minute
)

// GetLatestBlockHeaderFromDB returns the latest block header from the blockstore database
Expand Down Expand Up @@ -102,7 +99,7 @@ func ExportCmd(appExporter types.AppExporter, defaultNodeHome string) *cobra.Com
if err != nil {
return err
}
doc.GenesisTime = latestBlockHeader.Time.Round(RoundingInterval)
doc.GenesisTime = latestBlockHeader.Time

doc.AppState = exported.AppState
doc.Validators = exported.Validators
Expand Down

0 comments on commit d357ab1

Please sign in to comment.