Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Jul 9, 2021
1 parent e08dacc commit 5dbd0f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/babe/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ func (b *BlockBuilder) buildBlockExtrinsics(slot Slot) []*transaction.ValidTrans
continue
}

err = err.(*TransactionValidityError).msg
if errors.Is(err, errExhaustsResources) || errors.Is(err, errInvalidTransaction) {
if errors.Is(e.msg, errExhaustsResources) || errors.Is(e.msg, errInvalidTransaction) {
hash, err := b.transactionState.Push(txn)
if err != nil {
logger.Debug("failed to re-add transaction to queue", "tx", hash, "error", err)
Expand Down

0 comments on commit 5dbd0f1

Please sign in to comment.