Skip to content

Commit

Permalink
bor: disable old span msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Raneet10 committed Jan 9, 2025
1 parent 85559ad commit bfa01f8
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions bor/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ func PostSendProposeSpanTx(cdc *codec.Codec) *cobra.Command {
return err
}

nodeStatus, err := helper.GetNodeStatus(cliCtx)
if err != nil {
return err
}
// nodeStatus, err := helper.GetNodeStatus(cliCtx)
// if err != nil {
// return err
// }

//
// Query data
Expand Down Expand Up @@ -124,27 +124,27 @@ func PostSendProposeSpanTx(cdc *codec.Codec) *cobra.Command {
return err
}

var msg sdk.Msg
if nodeStatus.SyncInfo.LatestBlockHeight < helper.GetAntevortaHeight() {
msg = types.NewMsgProposeSpan(
spanID,
proposer,
startBlock,
startBlock+spanDuration-1,
borChainID,
seedResponse.Seed,
)
} else {
msg = types.NewMsgProposeSpanV2(
spanID,
proposer,
startBlock,
startBlock+spanDuration-1,
borChainID,
seedResponse.Seed,
seedResponse.SeedAuthor,
)
}
// var msg sdk.Msg
// if nodeStatus.SyncInfo.LatestBlockHeight < helper.GetAntevortaHeight() {
// msg = types.NewMsgProposeSpan(
// spanID,
// proposer,
// startBlock,
// startBlock+spanDuration-1,
// borChainID,
// seedResponse.Seed,
// )
// } else {
msg := types.NewMsgProposeSpanV2(
spanID,
proposer,
startBlock,
startBlock+spanDuration-1,
borChainID,
seedResponse.Seed,
seedResponse.SeedAuthor,
)
// }

return helper.BroadcastMsgsWithCLI(cliCtx, []sdk.Msg{msg})
},
Expand Down

0 comments on commit bfa01f8

Please sign in to comment.