Skip to content

Commit 426679e

Browse files
authored
Merge pull request ElementsProject#1134 from sanket1729/crash_partial_blind
Check the value assertion only on valid amounts
2 parents 1be529a + 53a75eb commit 426679e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3464,7 +3464,7 @@ void CWalletTx::GetBlindingData(const unsigned int map_index, const std::vector<
34643464
memcpy(asset_tag.begin(), &*(it + 73), 32);
34653465
pubkey.Set(it + 105, it + 138);
34663466

3467-
if (conf_value.IsExplicit()) {
3467+
if (amount != -1 && conf_value.IsExplicit()) {
34683468
assert(conf_value.GetAmount() == amount);
34693469
}
34703470
} else {

0 commit comments

Comments
 (0)