From f6d7f06ddc68ced5eb8369a857fbd95db93bab52 Mon Sep 17 00:00:00 2001 From: Guillaume Babin-Tremblay Date: Mon, 25 Sep 2023 09:24:12 -0600 Subject: [PATCH] Update libraries/hotstuff/include/eosio/hotstuff/qc_chain.hpp Co-authored-by: Gregory Popovitch --- libraries/hotstuff/include/eosio/hotstuff/qc_chain.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/hotstuff/include/eosio/hotstuff/qc_chain.hpp b/libraries/hotstuff/include/eosio/hotstuff/qc_chain.hpp index 4ad5f6f77a..5f388cdc47 100644 --- a/libraries/hotstuff/include/eosio/hotstuff/qc_chain.hpp +++ b/libraries/hotstuff/include/eosio/hotstuff/qc_chain.hpp @@ -107,7 +107,7 @@ namespace eosio::hotstuff { uint64_t get_state_version() const { return _state_version; } // no lock required - std::string get_id_i() const { return _id; } // so far, only ever relevant in a test environment and for logging (no sync) + const std::string& get_id_i() const { return _id; } // so far, only ever relevant in a test environment and for logging (no sync) // Calls to the following methods should be thread-synchronized externally: