1
0
Fork 0
forked from lthn/blockchain

fixed a bug in construct_tx

This commit is contained in:
sowle 2022-08-03 14:01:10 +02:00
parent 59f8ae5fe7
commit dce6f46b17
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -1699,7 +1699,7 @@ namespace currency
CHECK_AND_ASSERT_MES(dst_entr.amount > 0, false, "Destination with wrong amount: " << dst_entr.amount); // <<-- TODO @#@# consider removing this check
bool r = construct_tx_out(dst_entr, txkey.sec, output_index, tx, deriv_cache, sender_account_keys, blinding_masks[output_index], result, tx_outs_attr);
CHECK_AND_ASSERT_MES(r, false, "Failed to construct tx out");
amounts[range_proof_start_index - output_index] = dst_entr.amount;
amounts[output_index - range_proof_start_index] = dst_entr.amount;
summary_outs_money += dst_entr.amount;
blinding_masks_sum += blinding_masks[output_index];
output_index++;