Skip to content

Refactor blockchain reactor for better testability #2897

@milosevic

Description

@milosevic

Tests are "hard to read, hard to modify, hard to debug" (@melekes). One idea how tests can be improved is splitting business (algorithm) logic in a function and separate it from a real message sending. This logic should capture core algorithm, i.e., for a given state, what messages we should send and how we should react upon message reception.

Metadata

Metadata

Labels

C:syncComponent: Fast Sync, State SyncT:enhancementType: EnhancementT:testType: Tests that need love

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions