Compare Marconi Utxo with cardano-db-sync - #44
Conversation
aa5f2e9 to
5e42a9b
Compare
4491214 to
6082c8f
Compare
|
Are the comparison result available somewhere? |
berewt
left a comment
There was a problem hiding this comment.
Looks good to me. Did you put the comparison somewhere?
| 3. Run this test by setting the env variables: | ||
|
|
||
| - CARDANO_NODE_SOCKET_PATH | ||
| - CARDANO_NODE_SOCKET_PATH: |
f6e4947 to
512fa13
Compare
|
the test create a deltaAddresses table that we expect to have no elements. So, if you run the test, which takes ~600 seconds, for fully synched preprod, the SQLite tables you may check are:
I can do run of this locally to demo it? |
512fa13 to
4ac7241
Compare
Here are the results from running the tests: |
0925a4e to
204b6c5
Compare
Stream db-sync utxos to marconi SQLite and compute delta of addresses, addresses in Marconi but not in cardano-db-sync [PLT-5383] compare dbsync
204b6c5 to
b458b18
Compare
| - CARDANO_NODE_CONFIG_PATH | ||
| - DBSYNC_PG_URL | ||
| - MARCONI_DB_DIRECTORY_PATH | ||
| - DBSYNC_PGPASSWORD: The default password for cardano-db-sync's postgres database is in its repo in the file: config/secrets/postgres_password |
There was a problem hiding this comment.
Why isn't it required anymore?
There was a problem hiding this comment.
Sorry for the long delay.
I am using URL, connection string for PG stuff, It is One environment variable rather than userid and password.
berewt
left a comment
There was a problem hiding this comment.
Look good to me have you stored the result of the comparaison somewhere?
| } | ||
| deriving (Eq, Show) | ||
|
|
||
| -- | print the list of offending addresses. These are addresses in db-sync and not in marconi that have utxos |
There was a problem hiding this comment.
@berewt the discrepancies are stored in the delta table in sqlite.
If there are any discrepancies, they are also printed
Compare Marconi Utxo with those of cardano-db-sync. The approach is :
[PLT-5383]
Pre-submit checklist: