-
Notifications
You must be signed in to change notification settings - Fork 11
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
[1.0.1] Should never move from a signed_block in a shared_ptr #738
Conversation
… still might be in use. For example if still in the forkdb. Would have preferred to `delete` the move constructor/operator= but unfortunately those are needed for our unused http push_block.
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.
So this IS a bug as push_block
in chain_plugin.cpp moves the signed block parm.
What |
The |
Note:start |
@heifner, should you close this PR? |
Should never move a
signed_block
that could still be used. The point ofshared_ptr
is shared data, you don't know if being used by something else unless you just created it. For example if still in the forkdb. Would have preferred todelete
the move constructor and move operator= but unfortunately those are needed for our unused httppush_block
.Resolves #737