Definition at line 867 of file coins_tests.cpp.
◆ MakeCoin()
Coin FlushTest::MakeCoin |
( |
| ) |
|
|
inline |
◆ TestFlushBehavior()
void FlushTest::TestFlushBehavior |
( |
CCoinsViewCacheTest * |
view, |
|
|
CCoinsViewDB & |
base, |
|
|
std::vector< std::unique_ptr< CCoinsViewCacheTest > > & |
all_caches, |
|
|
bool |
do_erasing_flush |
|
) |
| |
|
inline |
For CCoinsViewCache instances backed by either another cache instance or leveldb, test cache behavior and flag state (DIRTY/FRESH) by.
- Adding a random coin to the child-most cache,
- Flushing all caches (without erasing),
- Ensure the entry still exists in the cache and has been written to parent,
- (if
do_erasing_flush
) Flushing the caches again (with erasing),
- (if
do_erasing_flush
) Ensure the entry has been written to the parent and is no longer in the cache,
- Spend the coin, ensure it no longer exists in the parent.
Definition at line 888 of file coins_tests.cpp.
The documentation for this struct was generated from the following file: