From a669ef3abb6afa4ebf038ae86c8374e3f6db88bc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sun, 9 Aug 2020 22:35:19 +0000 Subject: [PATCH] account subcommand now requests binary64 (#11494) (cherry picked from commit a4f5f3e978ed3dfa4df2c7aad0b80a93aefcf0b7) Co-authored-by: Michael Vines --- account-decoder/src/lib.rs | 2 +- cli/src/cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account-decoder/src/lib.rs b/account-decoder/src/lib.rs index 4b83a7a319..82caf04b83 100644 --- a/account-decoder/src/lib.rs +++ b/account-decoder/src/lib.rs @@ -40,7 +40,7 @@ pub enum UiAccountData { #[derive(Serialize, Deserialize, Clone, Debug, PartialEq)] #[serde(rename_all = "camelCase")] pub enum UiAccountEncoding { - Binary, + Binary, // SLOW! Avoid this encoding JsonParsed, Binary64, } diff --git a/cli/src/cli.rs b/cli/src/cli.rs index 2a5889c57c..99773a6515 100644 --- a/cli/src/cli.rs +++ b/cli/src/cli.rs @@ -1230,7 +1230,7 @@ fn process_show_account( let cli_account = CliAccount { keyed_account: RpcKeyedAccount { pubkey: account_pubkey.to_string(), - account: UiAccount::encode(account_pubkey, account, UiAccountEncoding::Binary, None), + account: UiAccount::encode(account_pubkey, account, UiAccountEncoding::Binary64, None), }, use_lamports_unit, };