Skip to content

Commit

Permalink
Workaround queryBlocksLite backward compatible with old wallets (#185)
Browse files Browse the repository at this point in the history
* make queryBlocksLite backward compatible with old wallets, i.e. serialize without signature by changing block ver to 4
  • Loading branch information
aivve committed Feb 15, 2022
1 parent 54ee5ac commit fbdf948
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CryptoNoteCore/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,8 @@ bool Core::queryBlocksLite(const std::vector<Crypto::Hash>& knownBlockIds, uint6
std::list<Crypto::Hash> missedTxs;
lbs->getTransactions(b.transactionHashes, txs, missedTxs);

b.majorVersion = BLOCK_MAJOR_VERSION_4; // Workaround backward compatible with old wallets, i.e. serialize without signature

item.block = asString(toBinaryArray(b));

for (const auto& tx: txs) {
Expand Down

0 comments on commit fbdf948

Please sign in to comment.