Check event order constraints (make sure that events are paired correctly)

Description

1. Add a function that should check the pairing of events in blocks (Offline must be followed by Live, etc.):

Note: this function is to be used only to find valid pairs of existing blocks from the cache, i.e. don't use it for validation of an existing data chain because you can have a Rejoin event that doesn't have any pair.

2. Make sure that new blocks are inserted into the chain only when is_valid_pair returns true (except for Rejoin).

Environment

None

Assignee

Unassigned

Reporter

Nikita Baksalyar

Labels

Start date

2018/01/31

End date

2018/02/07

Task progress

None

Baseline start date

None

Baseline end date

None

Story Points

2

Components

Priority

Major
Configure