Merge pull request #2920
bd5cce07network_throttle: fix ineffective locking (moneromooo-monero)e0a61299network_throttle: remove unused xxx static member (moneromooo-monero)24f584d9cryptonote_core: remove unused functions with off by one bugs (moneromooo-monero)b1634aa3blockchain: don't leave dangling pointers in this (moneromooo-monero)8e60b81ccryptonote_core: fix db leak on error (moneromooo-monero)213e326cabstract_tcp_server2: log init_server errors as fatal (moneromooo-monero)b51dc566use const refs in for loops for non tiny types (moneromooo-monero)f0568ca6net_parse_helpers: fix regex error checking (moneromooo-monero)b49ddc76check accessing an element past the end of a container (moneromooo-monero)2305bf26check return value for generate_key_derivation and derive_public_key (moneromooo-monero)a4240d9fcatch const exceptions (moneromooo-monero)45a1c4c0add empty container sanity checks when using front() and back() (moneromooo-monero)56fa6ce1tests: fix a buffer overread in a unit test (moneromooo-monero)b4524892rpc: guard against json parsing a non object (moneromooo-monero)c2ed8618easylogging++: avoid buffer underflow (moneromooo-monero)187a6ab2epee: trap failure to parse URI from request (moneromooo-monero)061789b5checkpoints: trap failure to load JSON checkpoints (moneromooo-monero)ba2fefb9checkpoints: pass std::string by const ref, not const value (moneromooo-monero)38c8f4e0mlog: terminate a string at last char, just in case (moneromooo-monero)d753d716fix a few leaks by throwing objects, not newed pointers to objects (moneromooo-monero)fe568db8p2p: use size_t for arbitrary counters instead of uint8_t (moneromooo-monero)46d6fa35cryptonote_protocol: sanity check chain hashes from peer (moneromooo-monero)25584f86cryptonote_protocol: print peer versions when unexpected (moneromooo-monero)490a5d41rpc: do not try to use an invalid txid in relay_tx (moneromooo-monero)
This commit is contained in:
@@ -4321,9 +4321,9 @@ bool simple_wallet::sweep_single(const std::vector<std::string> &args_)
|
||||
fail_msg_writer() << tr("Multiple transactions are created, which is not supposed to happen");
|
||||
return true;
|
||||
}
|
||||
if (ptx_vector[0].selected_transfers.size() > 1)
|
||||
if (ptx_vector[0].selected_transfers.size() != 1)
|
||||
{
|
||||
fail_msg_writer() << tr("The transaction uses multiple inputs, which is not supposed to happen");
|
||||
fail_msg_writer() << tr("The transaction uses multiple or no inputs, which is not supposed to happen");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -5175,7 +5175,7 @@ bool simple_wallet::show_transfers(const std::vector<std::string> &args_)
|
||||
try {
|
||||
min_height = boost::lexical_cast<uint64_t>(local_args[0]);
|
||||
}
|
||||
catch (boost::bad_lexical_cast &) {
|
||||
catch (const boost::bad_lexical_cast &) {
|
||||
fail_msg_writer() << tr("bad min_height parameter:") << " " << local_args[0];
|
||||
return true;
|
||||
}
|
||||
@@ -5187,7 +5187,7 @@ bool simple_wallet::show_transfers(const std::vector<std::string> &args_)
|
||||
try {
|
||||
max_height = boost::lexical_cast<uint64_t>(local_args[0]);
|
||||
}
|
||||
catch (boost::bad_lexical_cast &) {
|
||||
catch (const boost::bad_lexical_cast &) {
|
||||
fail_msg_writer() << tr("bad max_height parameter:") << " " << local_args[0];
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user