Skip to content

fix(sequencer): Finally track down stuck transactions#664

Merged
smanilov merged 1 commit intomainfrom
sequencer-debug-session
Nov 28, 2024
Merged

fix(sequencer): Finally track down stuck transactions#664
smanilov merged 1 commit intomainfrom
sequencer-debug-session

Conversation

@smanilov
Copy link
Contributor

@smanilov smanilov commented Nov 28, 2024

What was the problem?

In case a slot contained only errors for all feeds from reporters, this lead to a situation where the errors are never cleared in the map of results.

Solution

Copy contents of map when populating list of updates. Clear the map, before checking whether the list of updates is empty. Only then, conditionally skip some code, if the list is empty.

Before, the clearing step was erroneously skipped, which lead to the bug.

What was the problem?
===

In case a slot contained errors for all feeds from reporters, this lead
to a situation where the errors are never cleared in the map of results.

Solution
===

Copy contents of map when populating list of updates. Clear the map,
before checking whether the list of updates is empty. Only then,
conditionally skip some code, if the list is empty.

Before, the clearing step was erroneously skipped, which lead to the
bug.

Co-authored-by: Hristo Staykov <izo8611@gmail.com>
Co-authored-by: Dimo99 <dimodimov1999@gmail.com>
Co-authored-by: Antoni Dikov <antoni.dikov@gmail.com>
@github-actions
Copy link

🚀 Deployment Links of Blocksense Network websites:

Copy link
Contributor

@Dimo99 Dimo99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should as a test_feed_slots_processor_loop_all_values_are_errors

@smanilov
Copy link
Contributor Author

We should as a test_feed_slots_processor_loop_all_values_are_errors

Created issue #665 to track this.

Merged via the queue into main with commit 6fac202 Nov 28, 2024
@smanilov smanilov deleted the sequencer-debug-session branch November 28, 2024 17:16
@melatron
Copy link
Contributor

We should as a test_feed_slots_processor_loop_all_values_are_errors

Created issue #665 to track this.

https://imgflip.com/i/9bytrn

@smanilov
Copy link
Contributor Author

We should as a test_feed_slots_processor_loop_all_values_are_errors

Created issue #665 to track this.

https://imgflip.com/i/9bytrn

🤫

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants