From 36449eed9004a9f0d3f37b9ad191aa91eae0d514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20W=C3=B3jtowicz?= Date: Thu, 18 Apr 2024 13:25:28 +0200 Subject: [PATCH] Recreated queries for golden tests --- .../cardano-cli-golden/files/golden/help.cli | 58 +++++++++---------- .../files/golden/help/allegra_query.cli | 2 + .../allegra_query_ledger-peer-snapshot.cli | 26 +++++++++ .../files/golden/help/alonzo_query.cli | 2 + .../alonzo_query_ledger-peer-snapshot.cli | 26 +++++++++ .../files/golden/help/babbage_query.cli | 2 + .../babbage_query_ledger-peer-snapshot.cli | 26 +++++++++ .../files/golden/help/conway_query.cli | 2 + .../conway_query_ledger-peer-snapshot.cli | 32 ++++++++++ .../files/golden/help/latest_query.cli | 2 + .../latest_query_ledger-peer-snapshot.cli | 26 +++++++++ .../files/golden/help/legacy_query.cli | 2 + .../legacy_query_ledger-peer-snapshot.cli | 26 +++++++++ .../files/golden/help/mary_query.cli | 2 + .../help/mary_query_ledger-peer-snapshot.cli | 26 +++++++++ .../files/golden/help/query.cli | 2 + .../help/query_ledger-peer-snapshot.cli | 26 +++++++++ .../files/golden/help/shelley_query.cli | 2 + .../shelley_query_ledger-peer-snapshot.cli | 26 +++++++++ 19 files changed, 287 insertions(+), 29 deletions(-) create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_ledger-peer-snapshot.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_ledger-peer-snapshot.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_ledger-peer-snapshot.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_ledger-peer-snapshot.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_ledger-peer-snapshot.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_ledger-peer-snapshot.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_ledger-peer-snapshot.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/query_ledger-peer-snapshot.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_ledger-peer-snapshot.cli diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli index 34301f7d1b..2e9eb78429 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -442,7 +442,7 @@ Usage: cardano-cli shelley node issue-op-cert Issue a node operational certificate -Usage: cardano-cli shelley query +Usage: cardano-cli shelley query ( protocol-parameters | tip | stake-pools @@ -1652,7 +1652,7 @@ Usage: cardano-cli allegra node issue-op-cert Issue a node operational certificate -Usage: cardano-cli allegra query +Usage: cardano-cli allegra query ( protocol-parameters | tip | stake-pools @@ -2860,7 +2860,7 @@ Usage: cardano-cli mary node issue-op-cert Issue a node operational certificate -Usage: cardano-cli mary query +Usage: cardano-cli mary query ( protocol-parameters | tip | stake-pools @@ -2966,7 +2966,7 @@ Usage: cardano-cli mary query ledger-peer-snapshot --socket-path SOCKET_PATH --out-file FILE Dump the current snapshot of ledger peers - + Usage: cardano-cli mary query protocol-state --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] @@ -4191,7 +4191,7 @@ Usage: cardano-cli alonzo node issue-op-cert Issue a node operational certificate -Usage: cardano-cli alonzo query +Usage: cardano-cli alonzo query ( protocol-parameters | tip | stake-pools @@ -5559,7 +5559,7 @@ Usage: cardano-cli babbage node issue-op-cert Issue a node operational certificate -Usage: cardano-cli babbage query +Usage: cardano-cli babbage query ( protocol-parameters | tip | stake-pools @@ -7184,7 +7184,7 @@ Usage: cardano-cli conway node issue-op-cert Issue a node operational certificate -Usage: cardano-cli conway query +Usage: cardano-cli conway query ( protocol-parameters | tip | stake-pools @@ -8773,7 +8773,7 @@ Usage: cardano-cli latest node issue-op-cert Issue a node operational certificate -Usage: cardano-cli latest query +Usage: cardano-cli latest query ( protocol-parameters | tip | stake-pools @@ -9963,7 +9963,7 @@ Usage: cardano-cli legacy genesis hash --genesis FILE Compute the hash of a genesis file -Usage: cardano-cli legacy query +Usage: cardano-cli legacy query ( protocol-parameters | tip | stake-pools @@ -10048,6 +10048,16 @@ Usage: cardano-cli legacy query utxo --socket-path SOCKET_PATH Get a portion of the current UTxO: by tx in, by address or the whole. +Usage: cardano-cli legacy query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + --out-file FILE + + Dump the current ledger peer snapshot (CBOR encoded) + Usage: cardano-cli legacy query ledger-state --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] @@ -10059,16 +10069,6 @@ Usage: cardano-cli legacy query ledger-state --socket-path SOCKET_PATH Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) -Usage: cardano-cli legacy query ledger-peer-snapshot --socket-path SOCKET_PATH - [--cardano-mode - [--epoch-slots SLOTS]] - ( --mainnet - | --testnet-magic NATURAL - ) - --out-file FILE - - Dump the current ledger peer snapshot - Usage: cardano-cli legacy query protocol-state --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] @@ -11247,7 +11247,7 @@ Usage: cardano-cli genesis hash --genesis FILE Compute the hash of a genesis file -Usage: cardano-cli query +Usage: cardano-cli query ( protocol-parameters | tip | stake-pools @@ -11327,14 +11327,6 @@ Usage: cardano-cli query utxo --socket-path SOCKET_PATH Get a portion of the current UTxO: by tx in, by address or the whole. -Usage: cardano-cli query ledger-state --socket-path SOCKET_PATH - [--cardano-mode [--epoch-slots SLOTS]] - (--mainnet | --testnet-magic NATURAL) - [--out-file FILE] - - Dump the current ledger state of the node (Ledger.NewEpochState -- advanced - command) - Usage: cardano-cli query ledger-peer-snapshot --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] @@ -11343,7 +11335,15 @@ Usage: cardano-cli query ledger-peer-snapshot --socket-path SOCKET_PATH ) --out-file FILE - Dump the current ledger peer snapshot + Dump the current ledger peer snapshot (CBOR encoded) + +Usage: cardano-cli query ledger-state --socket-path SOCKET_PATH + [--cardano-mode [--epoch-slots SLOTS]] + (--mainnet | --testnet-magic NATURAL) + [--out-file FILE] + + Dump the current ledger state of the node (Ledger.NewEpochState -- advanced + command) Usage: cardano-cli query protocol-state --socket-path SOCKET_PATH [--cardano-mode [--epoch-slots SLOTS]] diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli index 3bbf0ea761..7236fcc601 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query.cli @@ -6,6 +6,7 @@ Usage: cardano-cli allegra query | stake-address-info | utxo | ledger-state + | ledger-peer-snapshot | protocol-state | stake-snapshot | leadership-schedule @@ -33,6 +34,7 @@ Available commands: address or the whole. ledger-state Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) + ledger-peer-snapshot Dump the current snapshot of ledger peers protocol-state Dump the current protocol state of the node (Ledger.ChainDepState -- advanced command) stake-snapshot Obtain the three stake snapshots for a pool, plus the diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_ledger-peer-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_ledger-peer-snapshot.cli new file mode 100644 index 0000000000..fddd357aff --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_query_ledger-peer-snapshot.cli @@ -0,0 +1,26 @@ +Usage: cardano-cli allegra query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + --out-file FILE + + Dump the current snapshot of ledger peers + +Available options: + --socket-path SOCKET_PATH + Path to the node socket. This overrides the + CARDANO_NODE_SOCKET_PATH environment variable. The + argument is optional if CARDANO_NODE_SOCKET_PATH is + defined and mandatory otherwise. + --cardano-mode For talking to a node running in full Cardano mode + (default). + --epoch-slots SLOTS The number of slots per epoch for the Byron era. + (default: 21600) + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli index f4c913ddaf..b4903b4842 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query.cli @@ -6,6 +6,7 @@ Usage: cardano-cli alonzo query | stake-address-info | utxo | ledger-state + | ledger-peer-snapshot | protocol-state | stake-snapshot | leadership-schedule @@ -33,6 +34,7 @@ Available commands: address or the whole. ledger-state Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) + ledger-peer-snapshot Dump the current snapshot of ledger peers protocol-state Dump the current protocol state of the node (Ledger.ChainDepState -- advanced command) stake-snapshot Obtain the three stake snapshots for a pool, plus the diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_ledger-peer-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_ledger-peer-snapshot.cli new file mode 100644 index 0000000000..83360eba61 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_query_ledger-peer-snapshot.cli @@ -0,0 +1,26 @@ +Usage: cardano-cli alonzo query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + --out-file FILE + + Dump the current snapshot of ledger peers + +Available options: + --socket-path SOCKET_PATH + Path to the node socket. This overrides the + CARDANO_NODE_SOCKET_PATH environment variable. The + argument is optional if CARDANO_NODE_SOCKET_PATH is + defined and mandatory otherwise. + --cardano-mode For talking to a node running in full Cardano mode + (default). + --epoch-slots SLOTS The number of slots per epoch for the Byron era. + (default: 21600) + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli index a399cfcf69..c9f5923cf9 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query.cli @@ -6,6 +6,7 @@ Usage: cardano-cli babbage query | stake-address-info | utxo | ledger-state + | ledger-peer-snapshot | protocol-state | stake-snapshot | leadership-schedule @@ -33,6 +34,7 @@ Available commands: address or the whole. ledger-state Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) + ledger-peer-snapshot Dump the current snapshot of ledger peers protocol-state Dump the current protocol state of the node (Ledger.ChainDepState -- advanced command) stake-snapshot Obtain the three stake snapshots for a pool, plus the diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_ledger-peer-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_ledger-peer-snapshot.cli new file mode 100644 index 0000000000..2587901f93 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_query_ledger-peer-snapshot.cli @@ -0,0 +1,26 @@ +Usage: cardano-cli babbage query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + --out-file FILE + + Dump the current snapshot of ledger peers + +Available options: + --socket-path SOCKET_PATH + Path to the node socket. This overrides the + CARDANO_NODE_SOCKET_PATH environment variable. The + argument is optional if CARDANO_NODE_SOCKET_PATH is + defined and mandatory otherwise. + --cardano-mode For talking to a node running in full Cardano mode + (default). + --epoch-slots SLOTS The number of slots per epoch for the Byron era. + (default: 21600) + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli index 824f8e72ea..929823acfc 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli @@ -6,6 +6,7 @@ Usage: cardano-cli conway query | stake-address-info | utxo | ledger-state + | ledger-peer-snapshot | protocol-state | stake-snapshot | leadership-schedule @@ -38,6 +39,7 @@ Available commands: address or the whole. ledger-state Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) + ledger-peer-snapshot Dump the current snapshot of ledger peers protocol-state Dump the current protocol state of the node (Ledger.ChainDepState -- advanced command) stake-snapshot Obtain the three stake snapshots for a pool, plus the diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_ledger-peer-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_ledger-peer-snapshot.cli new file mode 100644 index 0000000000..10192113a2 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_ledger-peer-snapshot.cli @@ -0,0 +1,32 @@ +Usage: cardano-cli conway query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + [ --volatile-tip + | --immutable-tip + ] + --out-file FILE + + Dump the current snapshot of ledger peers + +Available options: + --socket-path SOCKET_PATH + Path to the node socket. This overrides the + CARDANO_NODE_SOCKET_PATH environment variable. The + argument is optional if CARDANO_NODE_SOCKET_PATH is + defined and mandatory otherwise. + --cardano-mode For talking to a node running in full Cardano mode + (default). + --epoch-slots SLOTS The number of slots per epoch for the Byron era. + (default: 21600) + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --volatile-tip Use the volatile tip as a target. (This is the + default) + --immutable-tip Use the immutable tip as a target. + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli index 1fbd07b292..c7504a7a40 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli @@ -6,6 +6,7 @@ Usage: cardano-cli latest query | stake-address-info | utxo | ledger-state + | ledger-peer-snapshot | protocol-state | stake-snapshot | leadership-schedule @@ -33,6 +34,7 @@ Available commands: address or the whole. ledger-state Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) + ledger-peer-snapshot Dump the current snapshot of ledger peers protocol-state Dump the current protocol state of the node (Ledger.ChainDepState -- advanced command) stake-snapshot Obtain the three stake snapshots for a pool, plus the diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_ledger-peer-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_ledger-peer-snapshot.cli new file mode 100644 index 0000000000..ee0f849c71 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_ledger-peer-snapshot.cli @@ -0,0 +1,26 @@ +Usage: cardano-cli latest query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + --out-file FILE + + Dump the current snapshot of ledger peers + +Available options: + --socket-path SOCKET_PATH + Path to the node socket. This overrides the + CARDANO_NODE_SOCKET_PATH environment variable. The + argument is optional if CARDANO_NODE_SOCKET_PATH is + defined and mandatory otherwise. + --cardano-mode For talking to a node running in full Cardano mode + (default). + --epoch-slots SLOTS The number of slots per epoch for the Byron era. + (default: 21600) + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query.cli index 20cf8c21fb..ccdd3c6a6d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query.cli @@ -5,6 +5,7 @@ Usage: cardano-cli legacy query | stake-distribution | stake-address-info | utxo + | ledger-peer-snapshot | ledger-state | protocol-state | stake-snapshot @@ -30,6 +31,7 @@ Available commands: filtered by stake address. utxo Get a portion of the current UTxO: by tx in, by address or the whole. + ledger-peer-snapshot Dump the current ledger peer snapshot (CBOR encoded) ledger-state Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) protocol-state Dump the current protocol state of the node diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_ledger-peer-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_ledger-peer-snapshot.cli new file mode 100644 index 0000000000..df43854563 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_query_ledger-peer-snapshot.cli @@ -0,0 +1,26 @@ +Usage: cardano-cli legacy query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + --out-file FILE + + Dump the current ledger peer snapshot (CBOR encoded) + +Available options: + --socket-path SOCKET_PATH + Path to the node socket. This overrides the + CARDANO_NODE_SOCKET_PATH environment variable. The + argument is optional if CARDANO_NODE_SOCKET_PATH is + defined and mandatory otherwise. + --cardano-mode For talking to a node running in full Cardano mode + (default). + --epoch-slots SLOTS The number of slots per epoch for the Byron era. + (default: 21600) + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli index 57d3afc421..e8afda0456 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query.cli @@ -6,6 +6,7 @@ Usage: cardano-cli mary query | stake-address-info | utxo | ledger-state + | ledger-peer-snapshot | protocol-state | stake-snapshot | leadership-schedule @@ -33,6 +34,7 @@ Available commands: address or the whole. ledger-state Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) + ledger-peer-snapshot Dump the current snapshot of ledger peers protocol-state Dump the current protocol state of the node (Ledger.ChainDepState -- advanced command) stake-snapshot Obtain the three stake snapshots for a pool, plus the diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_ledger-peer-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_ledger-peer-snapshot.cli new file mode 100644 index 0000000000..e430522628 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_query_ledger-peer-snapshot.cli @@ -0,0 +1,26 @@ +Usage: cardano-cli mary query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + --out-file FILE + + Dump the current snapshot of ledger peers + +Available options: + --socket-path SOCKET_PATH + Path to the node socket. This overrides the + CARDANO_NODE_SOCKET_PATH environment variable. The + argument is optional if CARDANO_NODE_SOCKET_PATH is + defined and mandatory otherwise. + --cardano-mode For talking to a node running in full Cardano mode + (default). + --epoch-slots SLOTS The number of slots per epoch for the Byron era. + (default: 21600) + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query.cli index 9db00062dc..454fe21821 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/query.cli @@ -5,6 +5,7 @@ Usage: cardano-cli query | stake-distribution | stake-address-info | utxo + | ledger-peer-snapshot | ledger-state | protocol-state | stake-snapshot @@ -30,6 +31,7 @@ Available commands: filtered by stake address. utxo Get a portion of the current UTxO: by tx in, by address or the whole. + ledger-peer-snapshot Dump the current ledger peer snapshot (CBOR encoded) ledger-state Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) protocol-state Dump the current protocol state of the node diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/query_ledger-peer-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_ledger-peer-snapshot.cli new file mode 100644 index 0000000000..fb1685cfc4 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/query_ledger-peer-snapshot.cli @@ -0,0 +1,26 @@ +Usage: cardano-cli query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + --out-file FILE + + Dump the current ledger peer snapshot (CBOR encoded) + +Available options: + --socket-path SOCKET_PATH + Path to the node socket. This overrides the + CARDANO_NODE_SOCKET_PATH environment variable. The + argument is optional if CARDANO_NODE_SOCKET_PATH is + defined and mandatory otherwise. + --cardano-mode For talking to a node running in full Cardano mode + (default). + --epoch-slots SLOTS The number of slots per epoch for the Byron era. + (default: 21600) + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --out-file FILE The output file. + -h,--help Show this help text diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli index 23a1d9626a..8644582560 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query.cli @@ -6,6 +6,7 @@ Usage: cardano-cli shelley query | stake-address-info | utxo | ledger-state + | ledger-peer-snapshot | protocol-state | stake-snapshot | leadership-schedule @@ -33,6 +34,7 @@ Available commands: address or the whole. ledger-state Dump the current ledger state of the node (Ledger.NewEpochState -- advanced command) + ledger-peer-snapshot Dump the current snapshot of ledger peers protocol-state Dump the current protocol state of the node (Ledger.ChainDepState -- advanced command) stake-snapshot Obtain the three stake snapshots for a pool, plus the diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_ledger-peer-snapshot.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_ledger-peer-snapshot.cli new file mode 100644 index 0000000000..26788fa72f --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_query_ledger-peer-snapshot.cli @@ -0,0 +1,26 @@ +Usage: cardano-cli shelley query ledger-peer-snapshot --socket-path SOCKET_PATH + [--cardano-mode + [--epoch-slots SLOTS]] + ( --mainnet + | --testnet-magic NATURAL + ) + --out-file FILE + + Dump the current snapshot of ledger peers + +Available options: + --socket-path SOCKET_PATH + Path to the node socket. This overrides the + CARDANO_NODE_SOCKET_PATH environment variable. The + argument is optional if CARDANO_NODE_SOCKET_PATH is + defined and mandatory otherwise. + --cardano-mode For talking to a node running in full Cardano mode + (default). + --epoch-slots SLOTS The number of slots per epoch for the Byron era. + (default: 21600) + --mainnet Use the mainnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --testnet-magic NATURAL Specify a testnet magic id. This overrides the + CARDANO_NODE_NETWORK_ID environment variable + --out-file FILE The output file. + -h,--help Show this help text