Skip to content

Commit

Permalink
Fix Utxo TestCase
Browse files Browse the repository at this point in the history
To fixs the test failures the following changes were implemented:
- UtxoRow to UtxoEvent conversion was not converting the rows correctly
in regards to `Spents`, which was causing the related tests
- Storage fetched UtxoRos were not correctly accounting for the
in-memory `Spents`, causing test failures
- The equivalent test was broken and removed. Same idea can be
implemented by sorting the lists
- Test the database `flush` boundaries by adding the `depth` to property
driven tests

[PLT-1536][PLT-1540]
  • Loading branch information
kayvank committed Mar 27, 2023
1 parent 5c859d7 commit 5f707d5
Show file tree
Hide file tree
Showing 5 changed files with 476 additions and 297 deletions.
2 changes: 1 addition & 1 deletion marconi-chain-index/src/Marconi/ChainIndex/Indexers.hs
Expand Up @@ -144,7 +144,7 @@ utxoWorker_
-> FilePath
-> IO (IO (), MVar Utxo.UtxoIndexer)
utxoWorker_ callback depth maybeTargetAddresses Coordinator{_barrier} ch path = do
ix <- Utxo.open path depth
ix <- Utxo.open path depth True -- open Sqlite with depth=depth and perform sqltie vacuum
mIndexer <- newMVar ix
pure (loop mIndexer, mIndexer)
where
Expand Down

0 comments on commit 5f707d5

Please sign in to comment.