-
Notifications
You must be signed in to change notification settings - Fork 328
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
[factory] move SimulateExecution() out of factory interface #4476
Conversation
state/factory/factory.go
Outdated
PutBlock(context.Context, *block.Block) error | ||
DeleteTipBlock(context.Context, *block.Block) error | ||
StateAtHeight(uint64, interface{}, ...protocol.StateOption) error | ||
StatesAtHeight(uint64, ...protocol.StateOption) (state.Iterator, error) | ||
WorkingSetNotWritable(context.Context, uint64, bool) (protocol.StateManager, error) |
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.
create a workingset that is not writable
f6c620b
to
b9b33b2
Compare
state/factory/factory.go
Outdated
ws *workingSet | ||
err error | ||
) | ||
// TODO: make the workingset not writable, cannot call commit() to write its content to DB |
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.
will update the PR
f28305d
to
32a5529
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.
seems not required to wrap workingSet, b/c Commit
is not exported in StateManager
a5e711a
to
6c872cd
Compare
6c872cd
to
6f9c730
Compare
Quality Gate passedIssues Measures |
Description
2 methods don't need to be in the
factory
interface.Fixes #(issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: