Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RelayMiner] Fix non deleted smt when funds are insufficient to submi…
…t C&P (#1026) ## Summary This pull request includes changes to `pkg/relayer/session/claim.go` to 1. Delete SMTs when funds are insufficient. 2. Account for the gas cost of creating claims and submitting proofs. ## Issue When the SupplierOperator lacks sufficient funds to process claim and proof submissions, the corresponding SMTs are not deleted from the file system. This issue becomes more severe at scale, especially when the RelayMiner is handling multiple claims from various applications. ![image](https://github.com/user-attachments/assets/024cb8c2-9190-4f60-9c81-da66c5a2dd0a) ## Type of change Select one or more from the following: - [ ] New feature, functionality or library - [ ] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [x] Bug fix - [ ] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing <!-- READ & DELETE: - Documentation changes: only keep this if you're making documentation changes - Unit Testing: Remove this if you didn't make code changes - E2E Testing: Remove this if you didn't make code changes - See the quickstart guide for instructions: https://dev.poktroll.com/developer_guide/quickstart - DevNet E2E Testing: Remove this if you didn't make code changes - THIS IS VERY EXPENSIVE: only do it after all the reviews are complete. - Optionally run `make trigger_ci` if you want to re-trigger tests without any code changes - If tests fail, try re-running failed tests only using the GitHub UI as shown [here](https://github.com/pokt-network/poktroll/assets/1892194/607984e9-0615-4569-9452-4c730190c1d2) --> - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [x] **Unit Tests**: `make go_develop_and_test` - [x] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable
- Loading branch information