Skip to content

Incorrect assumption on the aggregation ticket insert check #6761

@NumberFour8

Description

@NumberFour8

Current Behavior

When trying to aggregate and already aggregated ticket, a safety check checks for an invalid assumption:

2025-01-10T12:09:21.544628Z ERROR ThreadId(02) hopr_db_sql::ticket_manager: failed to insert the winning ticket and update the ticket stats error=logical error: deleted ticket count (4) does not correspond to the ticket index offset 7

Expected Behavior

Aggregated tickets should be able to be aggregated again.

Steps to Reproduce

  1. aggregate tickets in channel
  2. aggregate again

Were you able to reproduce the bug using the above steps consistently each time? YES

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions