Implement DataChain unit tests

Description

1. Simulate multiple blocks being given to data chain.

2. Ensure they're cached in the pending blocks cache (defined in ) until each forms a valid pair.

3. Check the DataChain::add_vote function to make sure that the vote is appended to a pending block or to data chain.

4. Test the PartialEq trait implementation.

Environment

None

Assignee

Qi Ma

Reporter

Nikita Baksalyar

Labels

Start date

2018/02/01

End date

2018/02/23

Task progress

None

Baseline start date

None

Baseline end date

None

Story Points

12

Components

Priority

Major
Configure