-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculate state when evaluating an action if the block state doesn't exist #645
Conversation
Codecov Report
@@ Coverage Diff @@
## master #645 +/- ##
==========================================
+ Coverage 88.13% 88.13% +<.01%
==========================================
Files 217 217
Lines 17198 17181 -17
==========================================
- Hits 15157 15143 -14
+ Misses 1165 1162 -3
Partials 876 876
|
eca03d3
to
954ff21
Compare
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.
As I know there's the reason why we want to calculate incomplete states. So how about manually turning on the completeStates
option for the problematic case while maintaining the default value turned off, rather than making the completeStates
option turned on by default?
To do that, we need to add a flag to |
954ff21
to
e60de8e
Compare
e60de8e
to
0e3038a
Compare
0e3038a
to
e4b2c4b
Compare
e4b2c4b
to
152990a
Compare
Changed to calculate the state from the beginning when there is no block state when evaluating an action instead of changing the default value of |
CHANGES.md
Outdated
@@ -74,6 +74,8 @@ To be released. | |||
not related with [Kademlia protocol][Kademlia]. [[#594], [#627]] | |||
- `Swarm<T>` became not to check least recently used peer every time when | |||
new peer is fetched. [[#627]] | |||
- When there is no block state when evaluating an action, it is changed to | |||
calculate the state from the beginning. [[#645]] |
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.
How about this?
IAction
became guaranteed that the givenIActionContext.PreviousStates.GetState()
never throwsIncompleteBlockStatesException
. Instead, now it may calculate the incomplete states from the beginning if necessary.
When there is no block state when evaluating an action, it is changed to calculate the state from the beginning.
152990a
to
31266a5
Compare
When there is no block state when evaluating an action, it is changed to calculate the state from the beginning to avoid
IncompleteBlockStatesException
.