From cab357a160cf4fdf4eb7c17c35c703e1e1f0ab10 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 13 Dec 2023 12:47:16 -0800 Subject: Rename SHA-512/256 to the more appropriate SHA-512Half --- src/session.h | 4 ++-- src/utils.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/session.h b/src/session.h index c83be644..ef26b58e 100644 --- a/src/session.h +++ b/src/session.h @@ -170,8 +170,8 @@ public: DO_(str) { if (str == "sha512" || str == "SHA512") { hash_type = HASH_SHA512; - } else if (str == "sha512_256" || str == "SHA512_256") { - hash_type = HASH_SHA512_256; + } else if (str == "sha512_half" || str == "SHA512_Half") { + hash_type = HASH_SHA512_Half; } else { throw_(std::invalid_argument, _f("Unrecognized hash type")); } diff --git a/src/utils.h b/src/utils.h index 34308807..bc05ff4f 100644 --- a/src/utils.h +++ b/src/utils.h @@ -608,7 +608,7 @@ extern const string version; enum hash_type_t { NO_HASHES = 0, HASH_SHA512 = 1, - HASH_SHA512_256 = 2 + HASH_SHA512_Half = 2 }; } // namespace ledger -- cgit v1.2.3