1
0
Fork 0
forked from lthn/blockchain

fixed last bugs in isolate_auditable_and_proof

This commit is contained in:
cryptozoidberg 2021-06-28 00:08:33 +02:00
parent 0d7b10edda
commit c9b7e5689c
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 5 additions and 3 deletions

View file

@ -1017,8 +1017,8 @@ namespace currency
return true;
}
decrypt_payload_items(derivation, tx.extra, decrypted_items, acc_keys, get_tx_pub_key_from_extra(tx));
decrypt_payload_items(derivation, tx.attachment, decrypted_items, acc_keys, get_tx_pub_key_from_extra(tx));
decrypt_payload_items(derivation, tx.extra, decrypted_items, is_income ? acc_keys: account_keys(), get_tx_pub_key_from_extra(tx));
decrypt_payload_items(derivation, tx.attachment, decrypted_items, is_income ? acc_keys : account_keys(), get_tx_pub_key_from_extra(tx));
return true;
}

View file

@ -93,7 +93,9 @@ bool isolate_auditable_and_proof::c1(currency::core& c, size_t ev_index, const s
currency::account_public_address acc = AUTO_VAL_INIT(acc);
de.addr.front() = auditable_test.get_public_address();
currency::transaction tx;
de.amount = AMOUNT_TO_TRANSFER_LOCAL;
dsts.push_back(de);
currency::transaction tx = AUTO_VAL_INIT(tx);
miner_wlt->transfer(dsts, 0, 0, miner_wlt->get_core_runtime_config().tx_default_fee, extra, attachments, tx);
}