Skip to content
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

fixes for #36 #355 and #439 #592

Merged
merged 1 commit into from
Nov 22, 2016
Merged

fixes for #36 #355 and #439 #592

merged 1 commit into from
Nov 22, 2016

Conversation

bytemaster
Copy link
Contributor

Fixed crashes on exit by shutting down the network before shutting down plugins. For good measure, I also added a small 1 second sleep so that any async calls could be processed.

Fixed crash on transaction confirmation by restructuring on_applied_block into a single ASYNC call that captured the signed_block. Rather than deleting the callback after calling it, I simply set it to an empty lambda. Then on expiration I call everything and clean up.

I also changed the > comparison for expiration to >= just incase there was some overlap.

Lastly I fixed a warning where handle_block() would exit without a return value if it wasn't "running". This could cause the stack to get corrupted and crash on exit.

@mvandeberg mvandeberg merged commit e8c1deb into develop Nov 22, 2016
@mvandeberg mvandeberg deleted the 36-callback-crash-fix branch November 22, 2016 18:09
On1x pushed a commit to VIZ-Blockchain/viz-cpp-node that referenced this pull request May 28, 2018
On1x pushed a commit to VIZ-Blockchain/viz-cpp-node that referenced this pull request May 28, 2018
On1x pushed a commit to VIZ-Blockchain/viz-cpp-node that referenced this pull request May 28, 2018
On1x pushed a commit to VIZ-Blockchain/viz-cpp-node that referenced this pull request May 28, 2018
 Add ability to get received delegations of account steemit#592
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants