Commit 9f882b0
authored
fix(mempool): provide finalize result for invalid transactions (tari-project#1307)
Description
---
fix(mempool): provide finalize result for invalid transactions
Motivation and Context
---
If an invalid transaction is submitted to the mempool, the final
execution result is not set. This causes the queried result of the
transaction to still be pending. This PR creates an execution result for
the invalid transaction.
How Has This Been Tested?
---
Submitting a transaction that calls a non-existant template.
What process can a PR reviewer use to test or verify this change?
---
As above
Breaking Changes
---
- [x] None
- [ ] Requires data directory to be deleted
- [ ] Other - Please specify
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced an enhanced transaction finalization mechanism that
provides more consistent handling of failed validations, ensuring
improved management of error states.
- **Refactor**
- Refined system logging to offer clearer, more nuanced operational
feedback during runtime processes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent c5a66c0 commit 9f882b0
File tree
2 files changed
+17
-2
lines changed- applications/tari_validator_node/src/p2p/services/mempool
- dan_layer/storage/src/consensus_models
2 files changed
+17
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
178 | 193 | | |
179 | 194 | | |
180 | 195 | | |
| |||
0 commit comments