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

[CAD-1462] Clarify insert ticker command name and report error if ticker already exists #46

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

ksaric
Copy link
Contributor

@ksaric ksaric commented Aug 10, 2020

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

Based on #45

Improvement reported by @dorin100
Example:

$> SMASHPGPASSFILE=config/pgpass stack run smash-exe -- reserve-ticker-name --tickerName "EARTH" --poolhash "0bbae0287d0ee96cc63b07cc18d25483d9010282ac726c35f450ea8622036e87"
Reserving ticker name!
Adding reserved ticker 'EARTH' with hash: PoolMetadataHash {getPoolMetadataHash = "0bbae0287d0ee96cc63b07cc18d25483d9010282ac726c35f450ea8622036e87"}
Ticker name inserted into the database reserved!

$> SMASHPGPASSFILE=config/pgpass stack run smash-exe -- reserve-ticker-name --tickerName "EARTH" --poolhash "0bbae0287d0ee96cc63b07cc18d25483d9010282ac726c35f450ea8622036e87"
Reserving ticker name!
Adding reserved ticker 'EARTH' with hash: PoolMetadataHash {getPoolMetadataHash = "0bbae0287d0ee96cc63b07cc18d25483d9010282ac726c35f450ea8622036e87"}
Reserved ticker name not inserted! Ticker 'EARTH' has already been inserted.

@ksaric ksaric merged commit 33c2c83 into master Aug 11, 2020
@ksaric ksaric deleted the ksaric/CAD-1462 branch August 11, 2020 08:26
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.

1 participant