Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Store union of hashes for block witness #2109

Merged
merged 4 commits into from
Nov 27, 2020

Commits on Nov 27, 2020

  1. Configuration menu
    Copy the full SHA
    2df0878 View commit details
    Browse the repository at this point in the history
  2. Switch WitnessDB to use MemoryDB

    Atomic is not called for, anymore
    carver committed Nov 27, 2020
    Configuration menu
    Copy the full SHA
    35830ba View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2569092 View commit details
    Browse the repository at this point in the history
  4. Witness hash storage tests, with repeated block

    Repeated persistence with the same block should not consume history
    slots. I tested the test by patching into line 59 of
    trinity/protocol/wit/db.py:
    + if True or block_hash not in recent_blocks_with_witnesses:
    
    The test fails with that change, as expected.
    
    Also, explicitly check that DB eviction works after a block repeat is
    persisted.
    carver committed Nov 27, 2020
    Configuration menu
    Copy the full SHA
    653f264 View commit details
    Browse the repository at this point in the history