Skip to content

Commit

Permalink
Fix discrepancy between starting heights in the chain versus the prov…
Browse files Browse the repository at this point in the history
…isioners struct
  • Loading branch information
jules committed Jul 28, 2019
1 parent 4b1d553 commit 51bdd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (c *Chain) AcceptBlock(blk block.Block) error {
}

// 3. Add provisioners and block generators
c.addConsensusNodes(blk.Txs, blk.Header.Height+1)
c.addConsensusNodes(blk.Txs, blk.Header.Height)

// 4. Store block in database
err := c.db.Update(func(t database.Transaction) error {
Expand Down

0 comments on commit 51bdd0e

Please sign in to comment.