Skip to content

Commit

Permalink
Merge branch 'main' into CNS-v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroms authored Sep 1, 2024
2 parents 2f6f867 + 8481fde commit 2c26348
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions utils/cli/multisend.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,19 @@ func NewQueryTotalGasCmd() *cobra.Command {
totalgas := int64(0)
numRelays := int64(0)
sequence, _ := getSequence(account)
if sequence == 0 {
block := clientCtx.Height
if block == 0 {
res, err := clientCtx.Client.Status(context.Background())
if err != nil {
fmt.Println("failed to get latest block height and account sequence")
return nil
}
block = res.SyncInfo.LatestBlockHeight
}
fmt.Printf("could not get account sequence for block %d\n", block)
return nil
}
layout := time.RFC3339
for now.Sub(txtime) < 12*time.Hour {
sequence--
Expand Down

0 comments on commit 2c26348

Please sign in to comment.