tari-project / tari-dan

BSD 3-Clause "New" or "Revised" License
5 stars 14 forks source link

fix(mempool): insert transaction for failed before validation #1032

Closed sdbondi closed 2 months ago

sdbondi commented 2 months ago

Description

Insert transaction in database if before-execution validations fail

Motivation and Context

This case will cause the error: Storage Error: Not found: item: transaction.

We insert to allow submitters to later request this result. We might want to return this validation result to the caller and not persist the transaction.

How Has This Been Tested?

Not tested

What process can a PR reviewer use to test or verify this change?

Breaking Changes