Skip to content

Commit

Permalink
Fix sync issue on mac (firoorg#1410)
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 authored Feb 7, 2024
1 parent ff35368 commit d425731
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libspark/spend_transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned char> SpendTransaction::hash_bind_inner(
const std::unordered_map<uint64_t, std::vector<unsigned char>>& cover_set_representations,
const std::map<uint64_t, std::vector<unsigned char>>& cover_set_representations,
const std::vector<GroupElement>& S1,
const std::vector<GroupElement>& C1,
const std::vector<GroupElement>& T,
Expand Down Expand Up @@ -459,4 +459,4 @@ const std::map<uint64_t, uint256>& SpendTransaction::getBlockHashes() {
return set_id_blockHash;
}

}
}
4 changes: 2 additions & 2 deletions src/libspark/spend_transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class SpendTransaction {
static bool verify(const SpendTransaction& transaction, const std::unordered_map<uint64_t, std::vector<Coin>>& cover_sets);

static std::vector<unsigned char> hash_bind_inner(
const std::unordered_map<uint64_t, std::vector<unsigned char>>& cover_set_representations,
const std::map<uint64_t, std::vector<unsigned char>>& cover_set_representations,
const std::vector<GroupElement>& S1,
const std::vector<GroupElement>& C1,
const std::vector<GroupElement>& T,
Expand Down Expand Up @@ -113,7 +113,7 @@ class SpendTransaction {
const Params* params;
// We need to construct and pass this data before running verification
std::unordered_map<uint64_t, std::size_t> cover_set_sizes;
std::unordered_map<uint64_t, std::vector<unsigned char>> cover_set_representations;
std::map<uint64_t, std::vector<unsigned char>> cover_set_representations;
std::vector<Coin> out_coins;

// All this data we need to serialize
Expand Down

0 comments on commit d425731

Please sign in to comment.