Skip to content

Commit

Permalink
Merge pull request #113 from alexgao001/validate-tx
Browse files Browse the repository at this point in the history
fix: panic if tx mismatch
  • Loading branch information
unclezoro authored Jul 15, 2024
2 parents b376c1c + 1ae2acf commit ba9d157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listener/greenfield_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (l *GreenfieldListener) poll() error {
return fmt.Errorf("failed to get on chain tx, err=%s", err.Error())
}
if err := l.validateTx(onchainPack, tx); err != nil {
return fmt.Errorf("failed to validate tx, err=%s", err.Error())
panic(fmt.Sprintf("failed to validate tx, err=%s", err.Error()))
}
}

Expand Down

0 comments on commit ba9d157

Please sign in to comment.