Skip to content

Commit

Permalink
legacy query: remove constitution-hash option
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Dec 11, 2023
1 parent 6947822 commit e2913c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions cardano-cli/src/Cardano/CLI/Legacy/Commands/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import GHC.Generics
data LegacyQueryCmds
= QueryLeadershipScheduleCmd !LegacyQueryLeadershipScheduleCmdArgs
| QueryProtocolParametersCmd !LegacyQueryProtocolParametersCmdArgs
| QueryConstitutionHashCmd !LegacyQueryConstitutionHashCmdArgs
| QueryTipCmd !LegacyQueryTipCmdArgs
| QueryStakePoolsCmd !LegacyQueryStakePoolsCmdArgs
| QueryStakeDistributionCmd !LegacyQueryStakeDistributionCmdArgs
Expand Down Expand Up @@ -169,7 +168,6 @@ renderLegacyQueryCmds :: LegacyQueryCmds -> Text
renderLegacyQueryCmds = \case
QueryLeadershipScheduleCmd {} -> "query leadership-schedule"
QueryProtocolParametersCmd {} -> "query protocol-parameters "
QueryConstitutionHashCmd {} -> "query constitution-hash "
QueryTipCmd {} -> "query tip"
QueryStakePoolsCmd {} -> "query stake-pools"
QueryStakeDistributionCmd {} -> "query stake-distribution"
Expand Down
12 changes: 0 additions & 12 deletions cardano-cli/src/Cardano/CLI/Legacy/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,6 @@ pQueryCmds envCli =
[ subParser "protocol-parameters"
$ Opt.info pQueryProtocolParameters
$ Opt.progDesc "Get the node's current protocol parameters"
, subParser "constitution-hash"
$ Opt.info pQueryConstitutionHash
$ Opt.progDesc "Get the constitution hash"
, subParser "tip"
$ Opt.info pQueryTip
$ Opt.progDesc "Get the node's current tip (slot no, hash, block no)"
Expand Down Expand Up @@ -634,15 +631,6 @@ pQueryCmds envCli =
<*> pNetworkId envCli
<*> pMaybeOutputFile

pQueryConstitutionHash :: Parser LegacyQueryCmds
pQueryConstitutionHash =
fmap QueryConstitutionHashCmd $
LegacyQueryConstitutionHashCmdArgs
<$> pSocketPath envCli
<*> pConsensusModeParams
<*> pNetworkId envCli
<*> pMaybeOutputFile

pQueryTip :: Parser LegacyQueryCmds
pQueryTip =
fmap QueryTipCmd $
Expand Down

0 comments on commit e2913c7

Please sign in to comment.