IF: make constant members of block_state
and block_header_state
const
. Make block_header_state
a member. of block_state
.
#2082
Labels
In addition to documenting which members don't change, it will allow to add a
std::mutex
topending_qc
, which will allow safe access from multiple net_plugin threads for aggregating votes.It will require (at least) making
block_header_state
insideassembled_block_if
aunique_ptr
, becauseconst
members are not movable.Also, probably less importantly, make
block_header_state
a member ofblock_state
instead of inheriting from it.The text was updated successfully, but these errors were encountered: