Skip to content

Commit a6e30ef

Browse files
committed
GH-1071 Fix assert
1 parent 6e55bda commit a6e30ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/net_plugin/net_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3172,7 +3172,7 @@ namespace eosio {
31723172
auto ds = pending_message_buffer.create_datastream();
31733173
unsigned_int which{};
31743174
fc::raw::unpack( ds, which );
3175-
assert(which == vote_message_which);
3175+
assert(to_msg_type_t(which) == msg_type_t::vote_message); // verified by caller
31763176
vote_message_ptr ptr = std::make_shared<vote_message>();
31773177
fc::raw::unpack( ds, *ptr );
31783178

0 commit comments

Comments
 (0)