We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e55bda commit a6e30efCopy full SHA for a6e30ef
plugins/net_plugin/net_plugin.cpp
@@ -3172,7 +3172,7 @@ namespace eosio {
3172
auto ds = pending_message_buffer.create_datastream();
3173
unsigned_int which{};
3174
fc::raw::unpack( ds, which );
3175
- assert(which == vote_message_which);
+ assert(to_msg_type_t(which) == msg_type_t::vote_message); // verified by caller
3176
vote_message_ptr ptr = std::make_shared<vote_message>();
3177
fc::raw::unpack( ds, *ptr );
3178
0 commit comments