Merge pull request #1134 from sanket1729/crash_partial_blind

Check the value assertion only on valid amounts
This commit is contained in:
Glenn Willen 2022-08-08 13:16:22 -07:00 committed by GitHub
commit 426679e48c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3464,7 +3464,7 @@ void CWalletTx::GetBlindingData(const unsigned int map_index, const std::vector<
memcpy(asset_tag.begin(), &*(it + 73), 32);
pubkey.Set(it + 105, it + 138);
if (conf_value.IsExplicit()) {
if (amount != -1 && conf_value.IsExplicit()) {
assert(conf_value.GetAmount() == amount);
}
} else {