-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Conditionally enable bitshift on ConstantinopleForkBlock #4838
Conversation
Codecov Report
@@ Coverage Diff @@
## bitshift #4838 +/- ##
============================================
- Coverage 60.67% 59.16% -1.52%
============================================
Files 347 346 -1
Lines 27293 27249 -44
Branches 3151 2854 -297
============================================
- Hits 16561 16121 -440
- Misses 9738 10157 +419
+ Partials 994 971 -23 |
libethcore/EVMSchedule.h
Outdated
@@ -33,6 +33,7 @@ struct EVMSchedule | |||
bool haveDelegateCall = true; | |||
bool eip150Mode = false; | |||
bool eip158Mode = false; | |||
bool eip145Mode = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should better give it more descriptive name like haveBitwiseShifting
Hey Tim, one more thing that needs to be done here is actually using the flag that you've added. So the goal is to get rid of compile-time checks
|
// Pre-constantinople | ||
if (!m_schedule->haveBitwiseShifting) | ||
throwBadInstruction(); | ||
|
||
ON_OP(); | ||
updateIOGas(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a missed else-endif block below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Alex :)
Can you please squash some of these commits? :) |
You got it, to do so makes me happy :D |
Hoping this works ^_^ |
Thanks! |
Conditionally enable bitshift on ConstantinopleForkBlock