src/statesync/completeterminal.cc: fix bad iterator type

This commit is contained in:
John Hood
2018-08-03 17:29:58 -04:00
parent 8ac80db419
commit 9a606c2f3d
+2 -2
View File
@@ -140,9 +140,9 @@ bool Complete::set_echo_ack( uint64_t now )
}
}
for ( input_history_type::const_iterator i = input_history.begin();
for ( input_history_type::iterator i = input_history.begin();
i != input_history.end(); ) {
input_history_type::const_iterator i_next = i;
input_history_type::iterator i_next = i;
i_next++;
if ( i->first < newest_echo_ack ) {
input_history.erase( i );