Skip to content

Commit

Permalink
core/blockchain.go PCCOP modified genesis check from 0 to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kiltsonfire committed Jul 13, 2022
1 parent 1d3740c commit 2999d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -3253,7 +3253,7 @@ func (bc *BlockChain) PCRC(header *types.Header) error {
func (bc *BlockChain) PreviousCanonicalCoincidentOnPath(header *types.Header, slice []byte, order, path int, fullSliceEqual bool) (*types.Header, error) {
prevTerminalHeader := header
for {
if prevTerminalHeader.Number[types.QuaiNetworkContext].Cmp(big.NewInt(1)) == 0 {
if prevTerminalHeader.Number[types.QuaiNetworkContext].Cmp(big.NewInt(0)) == 0 {
return bc.GetHeaderByHash(bc.Config().GenesisHashes[0]), nil
}

Expand Down

0 comments on commit 2999d52

Please sign in to comment.