forked from lthn/blockchain
fixed last bugs in isolate_auditable_and_proof
This commit is contained in:
parent
0d7b10edda
commit
c9b7e5689c
2 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue