Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Jun 17, 2024
1 parent 37aa995 commit b6db226
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion internal/core/execute/v2/block/msg_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,10 @@ func (b *Block) processEvents() error {

// Claim we're on pass 1 so that internal messages are allowed
_, err = b.processMessages(msgs, 1)
return errors.UnknownError.WithFormat("process messages (2): %w", err)
if err != nil {
return errors.UnknownError.WithFormat("process messages (2): %w", err)
}
return nil
}

// ExpiredTransaction expires a transaction
Expand Down
2 changes: 1 addition & 1 deletion pkg/database/keyvalue/block/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestFileLimit(t *testing.T) {
batch := db.Begin(nil, true)
defer batch.Discard()

const N = 20
const N = 16
for i := 0; i < N; i++ {
k := record.NewKey(i)
v := make([]byte, 128)
Expand Down

0 comments on commit b6db226

Please sign in to comment.