Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

[CAD-1397] ITN Ticker protection for mainnet and SMASH #38

Merged
merged 6 commits into from
Aug 4, 2020

Conversation

ksaric
Copy link
Contributor

@ksaric ksaric commented Aug 4, 2020

https://jira.iohk.io/browse/CAD-1397

A very quick implementation of the ticker issue.
Tested and it works.

Also refactored quite a bit, and fixed some things that I found.

Example for inserting ticker name:

SMASHPGPASSFILE=config/pgpass stack run smash-exe -- insert-ticker-name --tickerName "SALAD" --poolhash "2560993cf1b6f3f1ebde429f062ce48751ed6551c2629ce62e4e169f140a3523"

Example for inserting the pool (changed):

SMASHPGPASSFILE=config/pgpass stack run smash-exe -- insert-pool --metadata test_pool.json --poolId "062693863e0bcf9f619238f020741381d4d3748aae6faf1c012e80e7" --poolhash "cbdfc4f21feb0a414b2b9471fa56b0ebd312825e63db776d68cc3fa0ca1f5a2f"

Rename TxMetadata to PoolMetadata because that is the actual pool
metadata. It's nothing to do with transactions (and it's really
confusing since Shelley also really does have transaction metadata).

Rename PoolMetaData to PoolMetadataReference because this is _not_ the
pool metadata, but the reference/pointer to the pool metadata. It has
the URL and expected hash of the actual pool metadata.
@KtorZ
Copy link
Contributor

KtorZ commented Aug 4, 2020

What about implementing --> https://cardano-community.github.io/guild-operators/#/Scripts/itnwitness ?

@ksaric
Copy link
Contributor Author

ksaric commented Aug 4, 2020

@KtorZ I saw that. This is the first implementation since we need to have something ASAP.
That solution you link to requires quite a bit more effort but is something that tech lead can decide if/when he wants to implement.

@ksaric ksaric merged commit e2c6c69 into master Aug 4, 2020
@ksaric ksaric deleted the ksaric/CAD-1397 branch August 4, 2020 21:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants