Page MenuHomePhabricator

blockfilter: Remove sharp edge (uninitialized m_filter_type) when using the compiler-generated constructor for BlockFilter
ClosedPublic

Authored by markblundeberg on Apr 26 2019, 05:16.

Details

Summary

backport of core PR 15532 (commit 82c3b3f8e)

Note: due to BOOST_CHECK_EQUAL barfing on the new enum class uint8_t,
I've switched that test to also use just BOOST_CHECK.

Test Plan

make check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
src/test/blockfilter_tests.cpp
131 ↗(On Diff #8280)

I hope the ctor = constructor and ctor = canonical transaction order doesn't get confusing in the future... lol. context saves us in this instance.

This revision is now accepted and ready to land.Apr 29 2019, 17:38
Mengerian added inline comments.
src/test/blockfilter_tests.cpp
131 ↗(On Diff #8280)

Would it be worth changing it to something unambiguous like default_constructor_block_filter?