Correct all fork choice rules for children with no votes.

This commit is contained in:
Age Manning
2019-03-14 15:22:45 +11:00
parent 3112f83786
commit 086e9574d2
6 changed files with 67 additions and 12 deletions

View File

@@ -128,4 +128,17 @@ test_cases:
- b8: 4
- b9: 2
heads:
- id: 'b7'
- id: 'b7'
- blocks:
- id: 'b0'
parent: 'b0'
- id: 'b1'
parent: 'b0'
- id: 'b2'
parent: 'b0'
weights:
- b1: 0
- b2: 0
heads:
- id: 'b1'

View File

@@ -51,3 +51,15 @@ test_cases:
- b3: 6
heads:
- id: 'b2'
- blocks:
- id: 'b0'
parent: 'b0'
- id: 'b1'
parent: 'b0'
- id: 'b2'
parent: 'b0'
weights:
- b1: 0
- b2: 0
heads:
- id: 'b1'