Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sync issue on mac #1410

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading