Skip to content

Commit

Permalink
replica: ensure base blocks have nil txs
Browse files Browse the repository at this point in the history
  • Loading branch information
jazg committed Oct 1, 2019
1 parent 3ae2113 commit 2191fc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion replica/rebase.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ func (rebaser *shardRebaser) IsBlockValid(proposedBlock block.Block, checkHistor
if !proposedBlock.Header().Signatories().Equal(rebaser.expectedRebaseSigs) {
return fmt.Errorf("unexpected signatories in base block: expected %d, got %d", len(rebaser.expectedRebaseSigs), len(proposedBlock.Header().Signatories()))
}
if proposedBlock.Txs() != nil {
return fmt.Errorf("expected base block to have nil txs")
}
if proposedBlock.Plan() != nil {
return fmt.Errorf("expected base block to have nil data")
return fmt.Errorf("expected base block to have nil plan")
}

default:
Expand Down

0 comments on commit 2191fc6

Please sign in to comment.