mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #2424
28b72b6etx_pool: pre-init tvc.m_verifivation_failed before processing (moneromooo-monero)50a629b2core_tests: catch (impossible in practice) tx extra api failure (moneromooo-monero)fee15ef1wallet2: catch failure to parse address (moneromooo-monero)1399e26dnet_peerlist: remove dead code (moneromooo-monero)50e09698tx_pool: guard against failure getting tx hash (moneromooo-monero)54cc209awallet_rpc_server: catch failure to create directory (moneromooo-monero)3e55099cwallet_rpc_server: init m_vm to NULL in ctor (moneromooo-monero)7d0dde5ewallet_args: remove redundant default value for --log-file (moneromooo-monero)ed4a3350wallet2: catch failure to save keys file (moneromooo-monero)44434c8awallet2_api: check whether dynamic_cast returns NULL (moneromooo-monero)92f2f687core: check return value from parse_hexstr_to_binbuff (moneromooo-monero)5475692ewallet2_api: remove an unused, uninitialized, field (moneromooo-monero)a7ba3de1libwallet_api_tests: initialize newblock_triggered on reset (moneromooo-monero)b2763acewallet2_api: init error code to "no error" in the ctor (moneromooo-monero)b5faac53get_blockchain_top now returns void (moneromooo-monero)2e44d8f2wallet_rpc_server: guard against exceptions (moneromooo-monero)4230876bsimplewallet: guard against I/O exceptions (moneromooo-monero)06c1e057daemon: initialize decode_as_json in RPC request (moneromooo-monero)11f71af5http_base: init size_t in http_request_info ctor (moneromooo-monero)
This commit is contained in:
commit
c2346c6c59
20 changed files with 70 additions and 73 deletions
|
|
@ -484,8 +484,9 @@ bool gen_rct_tx_pre_rct_altered_extra::generate(std::vector<test_event_entry>& e
|
|||
const int mixin = 2;
|
||||
const int out_idx[] = {0, -1};
|
||||
const uint64_t amount_paid = 10000;
|
||||
bool failed = false;
|
||||
return generate_with(events, out_idx, mixin, amount_paid, false,
|
||||
NULL, [](transaction &tx) {std::string extra_nonce; crypto::hash pid = cryptonote::null_hash; set_payment_id_to_tx_extra_nonce(extra_nonce, pid); add_extra_nonce_to_tx_extra(tx.extra, extra_nonce);});
|
||||
NULL, [&failed](transaction &tx) {std::string extra_nonce; crypto::hash pid = cryptonote::null_hash; set_payment_id_to_tx_extra_nonce(extra_nonce, pid); if (!add_extra_nonce_to_tx_extra(tx.extra, extra_nonce)) failed = true; }) && !failed;
|
||||
}
|
||||
|
||||
bool gen_rct_tx_rct_altered_extra::generate(std::vector<test_event_entry>& events) const
|
||||
|
|
@ -493,7 +494,8 @@ bool gen_rct_tx_rct_altered_extra::generate(std::vector<test_event_entry>& event
|
|||
const int mixin = 2;
|
||||
const int out_idx[] = {1, -1};
|
||||
const uint64_t amount_paid = 10000;
|
||||
bool failed = false;
|
||||
return generate_with(events, out_idx, mixin, amount_paid, false,
|
||||
NULL, [](transaction &tx) {std::string extra_nonce; crypto::hash pid = cryptonote::null_hash; set_payment_id_to_tx_extra_nonce(extra_nonce, pid); add_extra_nonce_to_tx_extra(tx.extra, extra_nonce);});
|
||||
NULL, [&failed](transaction &tx) {std::string extra_nonce; crypto::hash pid = cryptonote::null_hash; set_payment_id_to_tx_extra_nonce(extra_nonce, pid); if (!add_extra_nonce_to_tx_extra(tx.extra, extra_nonce)) failed = true; }) && !failed;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue