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 qt wallet hitting a debug_assert when creating blocks #3018

Merged

Conversation

guilhermelawless
Copy link
Contributor

This changes the block creation path of the Qt wallet to use the appropriate difficulty for work generation. By doing so, it fixes the assert reported in #3017.

The normal sending process (clicking Send in the wallet) and receive process (automatically) use the node wallet and thus the appropriate difficulty.

A test is added to make some epoch_2 validation where difficulty is different across block types. There is a similar test for the node internal wallet.

This changes the block creation path of the Qt wallet to use the appropriate difficulty for work generation. By doing so, it fixes the assert reported in nanocurrency#3017.

The normal sending process (clicking Send in the wallet) and receive process (automatically) use the node wallet and thus the appropriate difficulty.

A test is added to make some epoch_2 validation where difficulty is different across block types. There is a similar test for the node internal wallet.
@wezrule wezrule added this to the V22.0 milestone Oct 26, 2020
@wezrule wezrule added the bug label Oct 26, 2020
@zhyatt zhyatt requested a review from SergiySW October 26, 2020 23:53
@zhyatt zhyatt requested a review from wezrule November 12, 2020 14:47
@zhyatt
Copy link
Collaborator

zhyatt commented Nov 18, 2020

@wezrule @SergiySW If this is in good shape to merge, feel free to do so!

@argakiig argakiig merged commit d3ac57d into nanocurrency:develop Jan 5, 2021
@guilhermelawless guilhermelawless deleted the qt/debug-work-assert branch January 11, 2021 10:27
# 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.

5 participants