Skip to content

Remove assert for null block deserialization#4241

Merged
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:prs/null-block-deserialize
May 31, 2023
Merged

Remove assert for null block deserialization#4241
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:prs/null-block-deserialize

Conversation

@pwojcikdev
Copy link
Copy Markdown
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>
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