Skip to content

Commit

Permalink
Update documentation on query stake-snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Jan 13, 2023
1 parent 14a3449 commit fd9aa0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cardano-cli/src/Cardano/CLI/Shelley/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ runQueryStakeSnapshot (AnyConsensusModeParams cModeParams) network allOrOnlyPool
Only poolIds -> Just $ Set.fromList poolIds

result <- executeQuery era cModeParams localNodeConnInfo qInMode
obtainLedgerEraClassConstraints sbe writeStakeSnapshots result
obtainLedgerEraClassConstraints sbe (writeStakeSnapshots mOutFile) result


runQueryLedgerState
Expand Down
16 changes: 10 additions & 6 deletions doc/stake-pool-operations/10_query_stakepool.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,25 @@ $ cardano-cli query stake-snapshot \
--stake-pool-id 00beef0a9be2f6d897ed24a613cf547bb20cd282a04edfc53d477114 \
--mainnet
{
"poolStakeGo": 40278547538358,
"activeStakeGo": 22753958467474959,
"poolStakeMark": 40424218559492,
"activeStakeMark": 22670949084364797,
"poolStakeSet": 39898761956772,
"activeStakeSet": 22488877070796904
"activeStakeSet": 22488877070796904,
"pools": {
"00beef0a9be2f6d897ed24a613cf547bb20cd282a04edfc53d477114": {
"poolStakeGo": 40278547538358,
"poolStakeMark": 40424218559492,
"poolStakeSet": 39898761956772
}
}
}
```

Each snapshot is taken at the end of a different era. The `go` snapshot is the current one and
was taken two epochs earlier, `set` was taken one epoch ago, and `mark` was taken immediately
before the start of the current epoch.

This command is for debugging purposes only and may fail when used in a memory constrained
environment due to the size of the ledger state.
The command accepts zero or more occurences of the `--stake-pool-id` option. Alternatively, to query
all pools supply the `--all-pools` option instead.

# Querying for pool parameters

Expand Down

0 comments on commit fd9aa0d

Please sign in to comment.