Skip to content

Conversation

mattdean-digicatapult
Copy link
Contributor

This is part of the broader discussion in #268 and #309 so readers should probably start there.

The basic premise is that getBlockHash should not be on stateManager. This is the only block property that is present on stateManager and it doesn't really fit. Removing this also means the ctor doesn't need to take a blockchain which simplifies the interface as per #268.

@coveralls
Copy link

coveralls commented Aug 3, 2018

Coverage Status

Coverage increased (+0.006%) to 84.943% when pulling 3508ce0 on remove-blockchain-from-statemanager into 48d33dc on master.

@axic
Copy link
Member

axic commented Aug 3, 2018

I think on a first look this makes a lot of sense. @holgerd77 @vpulim any comments?

@vpulim
Copy link
Contributor

vpulim commented Aug 3, 2018

Looks great to me. I'm a big fan of simplifying the StateManager interface.

@holgerd77
Copy link
Member

@axic @vpulim Are your guys' comments already going through as a review here?

@vpulim
Copy link
Contributor

vpulim commented Aug 8, 2018

@holgerd77 Yes, code changes LGTM. There is a possibility this breaks upstream dependencies that access stateManager.blockchain directly so maybe make this clear in the release notes or elsewhere?

holgerd77
holgerd77 previously approved these changes Aug 9, 2018
Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed by @vpulim, will approve.

@holgerd77 holgerd77 force-pushed the remove-blockchain-from-statemanager branch from 57ce17c to 3508ce0 Compare August 9, 2018 09:01
@holgerd77
Copy link
Member

Hi Matthew @mattdean-digicatapult, rebased this for (your 😄) convenience, if you prefer to always do this yourself let me know for next time.

@mattdean-digicatapult
Copy link
Contributor Author

np @holgerd77, thanks for doing the rebase

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, tests pass.

@holgerd77 holgerd77 merged commit 96a5083 into master Aug 9, 2018
@holgerd77 holgerd77 deleted the remove-blockchain-from-statemanager branch August 9, 2018 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants