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

[CAD-2449] Add API endpoint for checking valid pool id. #139

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

ksaric
Copy link
Contributor

@ksaric ksaric commented Jan 12, 2021

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

This works correctly but requires the full resync from the blockchain since we need to add pool ids from the beginning of the blockchain.
This can be achieved using the added command which removes all blockchain-related state and forces a resync:

SMASHPGPASSFILE=config/pgpass stack run smash-exe -- force-resync --mdir ./schema --config config/shelley-qa-config.yaml

Example of how it works.
The existing pool id:

curl -X GET http://localhost:3100/api/v1/exists/8517fa7042cb9494818861c53c87780b4975c0bd402e3ed85168aa66 
{"poolId":"8517fa7042cb9494818861c53c87780b4975c0bd402e3ed85168aa66"}

Non-existing pool id:

curl -X GET http://localhost:3100/api/v1/exists/8517fa7042cb9494818861c53c87780b4975c0bd402e3ed85168aa65
{"code":"RecordDoesNotExist","description":"The requested record does not exist."}

@ksaric
Copy link
Contributor Author

ksaric commented Jan 12, 2021

#82

Will notify once we create a release.

@ksaric
Copy link
Contributor Author

ksaric commented Jan 12, 2021

bors try

iohk-bors bot added a commit that referenced this pull request Jan 12, 2021
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 12, 2021

try

Build failed:

@ksaric
Copy link
Contributor Author

ksaric commented Jan 12, 2021

bors try

iohk-bors bot added a commit that referenced this pull request Jan 12, 2021
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 12, 2021

try

Build failed:

@ksaric ksaric merged commit 6b42c60 into master Jan 13, 2021
@iohk-bors iohk-bors bot deleted the ksaric/CAD-2449 branch January 13, 2021 13:46
@ksaric ksaric mentioned this pull request Jan 18, 2021
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