From 67cca7dd9391a3032a171253ef18dde7b0b20ecf Mon Sep 17 00:00:00 2001 From: dbornside Date: Sat, 14 Jul 2018 19:11:11 -0400 Subject: [PATCH] Node: change node config diagnostics json field labels to use underscores --- src/bin_node/node_data_version.ml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin_node/node_data_version.ml b/src/bin_node/node_data_version.ml index 621b9ee02..17e8889d5 100644 --- a/src/bin_node/node_data_version.ml +++ b/src/bin_node/node_data_version.ml @@ -50,7 +50,7 @@ let () = Format.fprintf ppf "Invalid data directory '%s'." path) - Data_encoding.(obj1 (req "datadirPath" string)) + Data_encoding.(obj1 (req "datadir_path" string)) (function | Invalid_data_dir path -> Some path @@ -66,8 +66,8 @@ let () = "Invalid data directory version '%s' (expected '%s')." got exp) Data_encoding.(obj2 - (req "expectedVersion" string) - (req "actualVersion" string)) + (req "expected_version" string) + (req "actual_version" string)) (function | Invalid_data_dir_version (expected, actual) -> Some (expected, actual) @@ -78,7 +78,7 @@ let () = ~id: "couldNotReadDataDirVersion" ~title: "Could not read data directory version file" ~description: "Data directory version file was invalid." - Data_encoding.(obj1 (req "versionPath" string)) + Data_encoding.(obj1 (req "version_path" string)) ~pp:(fun ppf path -> Format.fprintf ppf "Tried to read version file at '%s', \ @@ -91,7 +91,7 @@ let () = ~id: "noDataDirVersionFile" ~title: "Data directory version file does not exist" ~description: "Data directory version file does not exist" - Data_encoding.(obj1 (req "versionPath" string)) + Data_encoding.(obj1 (req "version_path" string)) ~pp:(fun ppf path -> Format.fprintf ppf "Expected to find data directory version file at '%s', \