Accept elder vote/block in chain once accumulated

Description

1. In the impl part of the chain:ataChain struct add the new following functions:

2. Both functions mustn't fail because the accumulator makes sure that only valid blocks and votes are added here. Hence the lack of a return/Result type.

3. The add_block shall only be called once for any given block. The add_proof shall only be called for any existing block.

Environment

None

Assignee

Qi Ma

Reporter

Nikita Baksalyar

Labels

Start date

2018/01/31

End date

2018/04/26

Task progress

None

Baseline start date

None

Baseline end date

None

Story Points

4

Components

Priority

Major
Configure