Jan Segre
Jan Segre
There are several properties in `TransactionStorage`, like `_cache_block_count`, `_cache_tx_count`, `_latest_timestamp`, `_first_timestamp` and maybe others, that could be in its own "index-like" implementation inside the IndexesManager, which would simplify some specialized...
See previous thread: https://github.com/HathorNetwork/hathor-core/pull/358#discussion_r872428060_ The RocksDB database can become inconsistent if a shutdown happens during the yielding of the iterator returned by `RocksDBDepsIndex.next_ready_for_validation`. The solution has been discussed and basically...
Improve documentation and testing on the idempotency requirements for the relevan index operations
## Acceptance Criteria (msbrogli's proposal) 1. A block `B` is valid only if `B.height >= tx.min_height` for all `tx` such that `tx.first_block == B`. 2. All invalid blocks are discarded...
> Should we create an issue to handle it later? _Originally posted by @msbrogli in https://github.com/HathorNetwork/hathor-core/pull/393#discussion_r855934651_ This was discovered on a PR that will be merged soon. Apparently the tests...
Not intended to merge right now, but we can look into this.
These changes were separated from #236, it should now have mostly the sync-v2 base code itself.