Skip to content

build: fix cuckoocache bool fuzz target compile#276

Open
BogdanMaryniuk wants to merge 1 commit into
BitgesellOfficial:masterfrom
BogdanMaryniuk:fix-cuckoocache-bool-fuzz-build-20260521
Open

build: fix cuckoocache bool fuzz target compile#276
BogdanMaryniuk wants to merge 1 commit into
BitgesellOfficial:masterfrom
BogdanMaryniuk:fix-cuckoocache-bool-fuzz-build-20260521

Conversation

@BogdanMaryniuk
Copy link
Copy Markdown

Summary

  • Fixes the cuckoocache fuzz target build when Element is bool.
  • Avoids calling std::swap(table[last_loc], e) because std::vector<bool> returns a proxy reference that newer standard libraries do not swap directly with bool&.
  • Preserves the existing eviction behavior by moving the evicted table value into e for the next insertion iteration.

Related: #39

QA

  • ./configure --without-gui --disable-wallet --disable-zmq --with-miniupnpc=no --with-natpmp=no --disable-bench
  • make -j2
  • ./src/test/test_BGL --run_test=cuckoocache_tests --catch_system_errors=no
  • FUZZ=cuckoocache ./src/test/fuzz/fuzz /tmp/bitgesell-cuckoo-empty-seed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant