Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLT-214 Refactored the Epoch-StakePoolDelegation indexer to the Marconi
interface. * Rewrote the Epoch-StakePoolDelegation using the marconi-core interface and to make it support rollbacks and resuming. * Computed the LedgerState directly with functions in `ouroboros-network` instead of using `cardano-api` and `cardano-streaming` (allows more fined grained control of what to extract). * Moved orphan instances of EpochStakepoolSize indexer to the Orphans module and added rountrip ToField/FromField tests. * Added LedgerState serialization/deserialization functions in Orphans module.
- Loading branch information
1 parent
46b7181
commit f232630
Showing
14 changed files
with
1,346 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
marconi-chain-index/performance/monitor-marconi-sync-all.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
|
||
NETWORKID=764824073 | ||
NETWORK=mainnet | ||
|
||
monitor_indexer () { | ||
indexer=$1 | ||
echo "Syncing ${indexer} indexer..." | ||
case $indexer in | ||
utxo) | ||
indexers_cli="--disable-datum --disable-script-tx --disable-address-datum --disable-mintburn --disable-epoch-stakepool-size" | ||
;; | ||
address-datum) | ||
indexers_cli="--disable-datum --disable-script-tx --disable-utxo --disable-mintburn --disable-epoch-stakepool-size" | ||
;; | ||
mintburn) | ||
indexers_cli="--disable-datum --disable-script-tx --disable-utxo --disable-address-datum --disable-epoch-stakepool-size" | ||
;; | ||
epochsdd) | ||
indexers_cli="--disable-datum --disable-script-tx --disable-utxo --disable-address-datum --disable-mintburn" | ||
;; | ||
esac | ||
|
||
cabal build marconi-chain-index | ||
$(cabal exec -- which marconi-chain-index) \ | ||
-s "$HOME"/cardano-node/${NETWORK}/cardano-node.socket \ | ||
--testnet-magic ${NETWORKID} \ | ||
${indexers_cli} \ | ||
-d ~/cardano-node/${NETWORK}/marconi-chain-index \ | ||
--node-config-path "$HOME"/cardano-node/${NETWORK}/${NETWORK}-config.json >> marconi-chain-index-"${indexer}".log & | ||
pid=$! | ||
echo $pid | ||
./monitor-marconi-sync.sh marconi-chain-index-"${indexer}".log $pid >> >(tee marconi-chain-index-"${indexer}"-monitor.log) | ||
|
||
} | ||
|
||
# Uncomment the ones you want to use | ||
# monitor_indexer "utxo" | ||
# monitor_indexer "address-datum" | ||
# monitor_indexer "mintburn" | ||
# monitor_indexer "epochsdd" | ||
|
||
trap 'kill $(jobs -p)' EXIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.