Skip to content

Commit

Permalink
core/blockchain.go: changed node context requirement back to ==
Browse files Browse the repository at this point in the history
  • Loading branch information
kiltsonfire committed Jul 7, 2022
1 parent 6d8112f commit 97a9edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -3098,7 +3098,7 @@ func (bc *BlockChain) PCRC(header *types.Header) (common.Hash, error) {
}

// Only check for region twist if block is of region order
if headerOrder <= params.REGION {
if headerOrder == params.REGION {
// Region twist check
// RTZ -- Region coincident along zone path
// RTR -- Region coincident along region path
Expand All @@ -3119,7 +3119,7 @@ func (bc *BlockChain) PCRC(header *types.Header) (common.Hash, error) {
// 1. Check to see if the Zone terminus is on our chain.
// 2. If Zone terminus is in our chain, do nothing.
// 3. If Zone terminus is not in our chain, uncle the RTZ in the subordinate context.
if types.QuaiNetworkContext <= params.REGION {
if types.QuaiNetworkContext == params.REGION {
err = bc.reorgTwistToCommonAncestor(RTZ, slice, params.REGION, params.ZONE)
if err != nil {
return common.Hash{}, errors.New("unable to reorg to common ancestor after region twist")
Expand Down

0 comments on commit 97a9edb

Please sign in to comment.