Merge pull request #5636

b712ae0 rpc: work around a GCC 7.4.0 (at least) bug (moneromooo-monero)
This commit is contained in:
luigi1111 2019-08-19 17:37:37 -05:00
commit 4947f3bdba
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -63,7 +63,9 @@ namespace rpc
d.cached_to -= 10; d.cached_to -= 10;
d.cached_top_hash = hash10; d.cached_top_hash = hash10;
d.cached_m10_hash = crypto::null_hash; d.cached_m10_hash = crypto::null_hash;
d.cached_distribution.resize(d.cached_distribution.size() - 10); CHECK_AND_ASSERT_MES(d.cached_distribution.size() >= 10, boost::none, "Cached distribution size does not match cached bounds");
for (int p = 0; p < 10; ++p)
d.cached_distribution.pop_back();
can_extend = true; can_extend = true;
} }
} }