From d425731b928a75ea27cc2537e8ce2f1d36ced49d Mon Sep 17 00:00:00 2001 From: levonpetrosyan93 <45027856+levonpetrosyan93@users.noreply.github.com> Date: Thu, 8 Feb 2024 02:58:58 +0400 Subject: [PATCH] Fix sync issue on mac (#1410) --- src/libspark/spend_transaction.cpp | 4 ++-- src/libspark/spend_transaction.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libspark/spend_transaction.cpp b/src/libspark/spend_transaction.cpp index 69eda151d9..d98dc67a15 100644 --- a/src/libspark/spend_transaction.cpp +++ b/src/libspark/spend_transaction.cpp @@ -412,7 +412,7 @@ bool SpendTransaction::verify( // // Note that transparent components of the transaction are bound into `cover_set_representation`, so they don't appear separately. std::vector SpendTransaction::hash_bind_inner( - const std::unordered_map>& cover_set_representations, + const std::map>& cover_set_representations, const std::vector& S1, const std::vector& C1, const std::vector& T, @@ -459,4 +459,4 @@ const std::map& SpendTransaction::getBlockHashes() { return set_id_blockHash; } -} +} \ No newline at end of file diff --git a/src/libspark/spend_transaction.h b/src/libspark/spend_transaction.h index 5dce27d137..24da12bea2 100644 --- a/src/libspark/spend_transaction.h +++ b/src/libspark/spend_transaction.h @@ -61,7 +61,7 @@ class SpendTransaction { static bool verify(const SpendTransaction& transaction, const std::unordered_map>& cover_sets); static std::vector hash_bind_inner( - const std::unordered_map>& cover_set_representations, + const std::map>& cover_set_representations, const std::vector& S1, const std::vector& C1, const std::vector& T, @@ -113,7 +113,7 @@ class SpendTransaction { const Params* params; // We need to construct and pass this data before running verification std::unordered_map cover_set_sizes; - std::unordered_map> cover_set_representations; + std::map> cover_set_representations; std::vector out_coins; // All this data we need to serialize