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

Remove assert for null block deserialization #4241

Merged

Conversation

pwojcikdev
Copy link
Contributor

The nano::deserialize_block already properly handles the case where deserialized block type is block_type::not_a_block or invalid, however it triggers a debug assertion for those cases. This is not necessary, since this is a normal condition that happens during normal node operation (eg. during bootstrapping). It also makes it impossible to run a debug node build on the live network.

@pwojcikdev pwojcikdev merged commit 227fc4d into nanocurrency:develop May 31, 2023
@pwojcikdev pwojcikdev deleted the prs/null-block-deserialize branch May 31, 2023 14:46
thsfs added a commit to thsfs/nano-node that referenced this pull request May 31, 2023
* Moving from CentOS namig to RHEL compatible

* Remove unused build_prep scripts

* Update to use RockyLinux 8 as RHEL 8 compatible base

Also applies changes to build C++20 (Starting on V25.0)

* Add a workflow for beta RPM builds

Also fixes the old nanocurrency-beta to build on RockyLinux 8.

* Fix nano_node binary name for beta RPM service installation

* Blockprocessor stall workaround (nanocurrency#4240)

* Remove assert for null block deserialization (nanocurrency#4241)

* Bump Qt dep version for Windows build

---------

Co-authored-by: Piotr Wójcik <3044353+pwojcikdev@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants