-
Notifications
You must be signed in to change notification settings - Fork 338
fork workingsets and create child workingsets on top #4607
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
base: master
Are you sure you want to change the base?
Conversation
|
) | ||
require.NoError(err) | ||
|
||
blk2, err := sdb.Mint( |
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.
for i, t in []testConfig {
parentBlk[i] = sdb.Mint()
}
require.NoError(err) | ||
require.NotNil(blk11) | ||
require.Equal(blk1.HashBlock(), blk11.PrevHash()) | ||
blk21, err := sdb.Mint( |
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.
for i, t in []testConfig {
childBlk[i] = sdb.Mint(ctx, parentBlk[i].HashBlock() ...)
require.NotNil(childBlk[i])
require.Equal(parentBlk[i].HashBlock(), childBlk[i].PrevHash())
}
require.NoError(err) | ||
require.True(exist) | ||
require.NotNil(ws11) | ||
ws21, exist, err := sdbReal.getFromWorkingSets(ctx, blk21.HashBlock()) |
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.
also convert to
for i, t in []testConfig {
}
mint two blocks, and then mint new blocks on top of them. Observe that all four workingsets are available.
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: