CCoinsViewCache::BatchWrite
. The check added here is analogous to the assert @morcos is adding in #9107. It is checking the same condition, just inside a different method (BatchWrite
instead of ModifyNewCoins
).
Travis is failing on Windows
0FAIL: test/test_bitcoin
1=======================
2Running A218 test cases...
3ssertion failed!
4Program: Z:\home\travis\build\bitcoin\bitcoin\build\src\test\test_bitcoin.exe
5File: ../../src/coins.cpp, Line 194
6Expression: !(it->second.flags & CCoinsCacheEntry::FRESH) || itUs->second.coins.IsPruned()
assert
to throw std::logic_error
to fix the windows tests because boost execution monitor isn’t able to catch asserts on windows. (Previous implementation with boost execution monitor is here: https://github.com/ryanofsky/bitcoin/commit/c3ba2d33eff8d1956b5502044854f8431ca4186d)