Open wezrule opened 3 years ago
@wezrule @zhyatt I should be able to give this a go. The node wallet behavior is to grab cached work and, if the difficulty isn't high enough, obtain it again.
It looks like the QT wallet doesn't grab any cached work, could you confirm this and let me know if that would be the desired behavior instead? If so, it seems reasonable to extract the node wallet behavior and use that from the QT wallet as well.
^ nevermind, this is only an issue in block creation
Thanks @guilhermelawless - assigned to you. Let us know if you need anything from our end.
Reported by @cryptocode
This assert hits when creating a block in the qt wallet. This variant of
work_generate_blocking
is only meant for tests. Spoke with @guilhermelawless who said it looks like it was missed in https://github.com/nanocurrency/nano-node/pull/2569 and it should call the same overload (taking difficulty) as the non-qt wallet.