Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix initialization order bug in nano::node #2042

Merged
merged 3 commits into from
May 29, 2019

Conversation

cryptocode
Copy link
Contributor

The wallet depends on confirmation_height_processor, and search_pending sometimes calls it before the node is fully constructed, causing a segfault.

@cryptocode cryptocode added the bug label May 28, 2019
@cryptocode cryptocode added this to the V19.0 milestone May 28, 2019
@cryptocode cryptocode requested a review from wezrule May 28, 2019 13:58
@cryptocode cryptocode self-assigned this May 28, 2019
@cryptocode cryptocode merged commit b29ebbd into nanocurrency:master May 29, 2019
@cryptocode cryptocode deleted the fix/node-init-order branch May 29, 2019 09:15
argakiig pushed a commit that referenced this pull request Jun 11, 2019
* Fix initialization order bug in nano::node

* Use a latch to deal with mutual deps between active transactions and wallets; no initialization order will do

* Remove counter from initializer list as it's just calling the default ctor
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants