Skip to content

Commit

Permalink
logic fix, check reset limit after checking result log
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 346b669 commit 7fa0ea8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions curium.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
Expand Down
11 changes: 5 additions & 6 deletions x/curium/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,12 @@ func DoBroadcast(resp chan *MsgBroadcasterResponse, keyringDir string, cdc *code
}


if state.reset {
fmt.Println("Exceeded retry limit")
returnError(errors.New(broadcastResult.Log))
return
}

if accntSeqString.MatchString(broadcastResult.Log) {
if state.reset {
fmt.Println("Exceeded retry limit")
returnError(errors.New(broadcastResult.Log))
return
}
returnError(errors.New("Sequencing error, retrying broadcast"))
newAccntState, err := resetAccountState(accnt, state)
if err != nil {
Expand Down

0 comments on commit 7fa0ea8

Please sign in to comment.