Cleanup from PR comments

This commit is contained in:
Ethan Frey
2017-08-04 13:50:55 +02:00
parent 21e2399fc4
commit 2f4f875dd4
5 changed files with 39 additions and 37 deletions
+3 -3
View File
@@ -48,10 +48,10 @@ func (SimpleFeeMiddleware) Name() string {
// CheckTx - check the transaction
func (h SimpleFeeMiddleware) CheckTx(ctx basecoin.Context, store state.SimpleDB, tx basecoin.Tx, next basecoin.Checker) (res basecoin.CheckResult, err error) {
fee, err := h.verifyFee(ctx, tx)
if IsSkipFeesErr(err) {
return next.CheckTx(ctx, store, tx)
}
if err != nil {
if IsSkipFeesErr(err) {
return next.CheckTx(ctx, store, tx)
}
return res, err
}