mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 04:57:17 +00:00
Suggesting fix for data race (#3236)
This commit is contained in:
parent
359477c7e0
commit
748abd39f6
@ -344,6 +344,6 @@ func DeriveChainId(v *uint256.Int) *uint256.Int {
|
|||||||
}
|
}
|
||||||
return new(uint256.Int).SetUint64((v - 35) / 2)
|
return new(uint256.Int).SetUint64((v - 35) / 2)
|
||||||
}
|
}
|
||||||
v = new(uint256.Int).Sub(v, u256.Num35)
|
r := new(uint256.Int).Sub(v, u256.Num35)
|
||||||
return v.Div(v, u256.Num2)
|
return r.Div(r, u256.Num2)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user