Skip to content

Commit

Permalink
added prints for sequence nums
Browse files Browse the repository at this point in the history
  • Loading branch information
Aven Dauz authored and Aven Dauz committed Aug 8, 2021
1 parent 7fa0ea8 commit 8fc9294
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/curium/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ func DoBroadcast(resp chan *MsgBroadcasterResponse, keyringDir string, cdc *code
}



fmt.Println("Seq num before updating", state.seqNum)
state, err = updateAccountState(accnt, state)
fmt.Println("Seq num after updating", state.seqNum)

if err != nil {
returnError(err)
Expand Down Expand Up @@ -282,6 +283,7 @@ func DoBroadcast(resp chan *MsgBroadcasterResponse, keyringDir string, cdc *code
}
returnError(errors.New("Sequencing error, retrying broadcast"))
newAccntState, err := resetAccountState(accnt, state)
fmt.Println("Seq num after resetting account state", newAccntState.seqNum)
if err != nil {
returnError(err)
return
Expand All @@ -297,7 +299,7 @@ func DoBroadcast(resp chan *MsgBroadcasterResponse, keyringDir string, cdc *code
returnError(err)
return
}

fmt.Println(result.TxResult.Log)
resp <- &MsgBroadcasterResponse{
Response: &result.TxResult,
Data: &result.TxResult.Data,
Expand Down

0 comments on commit 8fc9294

Please sign in to comment.