aboutsummaryrefslogtreecommitdiff
path: root/src/wallet (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2017-10-15Fix compiler warnings with Clang 6.0.0.Vasil Dimov1-1/+1
monero/src/cryptonote_protocol/block_queue.cpp:208:44: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] static const boost::uuids::uuid uuid0 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { } monero/src/wallet/wallet_rpc_server.cpp:1895:43: error: lambda capture 'wal' is not used [-Werror,-Wunused-lambda-capture] tools::signal_handler::install([&wrpc, &wal](int) { ^ monero/src/cryptonote_protocol/cryptonote_protocol_handler.inl:1616:40: error: lambda capture 'arg' is not used [-Werror,-Wunused-lambda-capture] m_p2p->for_each_connection([this, &arg, &fluffy_arg, &exclude_context, &fullConnections... ^ monero/src/cryptonote_protocol/cryptonote_protocol_handler.inl:1616:46: error: lambda capture 'fluffy_arg' is not used [-Werror,-Wunused-lambda-capture] m_p2p->for_each_connection([this, &arg, &fluffy_arg, &exclude_context, &fullConnections... ^ monero/src/blockchain_utilities/blockchain_export.cpp:181:3: error: bool literal returned from 'main' [-Werror,-Wmain] CHECK_AND_ASSERT_MES(r, false, "Failed to initialize source blockchain storage"); ^ ~~~~~ monero/contrib/epee/include/misc_log_ex.h:180:97: note: expanded from macro 'CHECK_AND_ASSERT_MES' ...fail_ret_val, message) do{if(!(expr)) {LOG_ERROR(message); return fail_ret_val;};}while(0) ^ ~~~~~~~~~~~~ monero/src/blockchain_utilities/blockchain_export.cpp:195:3: error: bool literal returned from 'main' [-Werror,-Wmain] CHECK_AND_ASSERT_MES(r, false, "Failed to export blockchain raw data"); ^ ~~~~~ monero/contrib/epee/include/misc_log_ex.h:180:97: note: expanded from macro 'CHECK_AND_ASSERT_MES' ...fail_ret_val, message) do{if(!(expr)) {LOG_ERROR(message); return fail_ret_val;};}while(0) ^ ~~~~~~~~~~~~
2017-10-15fix lightwallet and subaddresses conflictJaquee1-1/+6
2017-10-15wallet2+API: use separate callbacks for lightwalletsJaquee3-7/+43
2017-10-15walletAPI: correct confirmations in txHistory for unsynced walletsJaquee1-2/+2
2017-10-15walletAPI: lightwallet exceptionsJaquee1-2/+12
2017-10-15walletAPI: add lightwallet login() and importWalletRequest()Jaquee3-0/+40
2017-10-15walletAPI: init() lightwallet and SSL supportJaquee3-7/+12
2017-10-15walletAPI: add tx unlock_timeJaquee1-4/+0
2017-10-15wallet2: remove obsolete get_num_rct_outputs() call from create_transactions_2Jaquee1-1/+1
2017-10-15wallet2: create_transactions_2 lightwallet supportJaquee1-0/+7
2017-10-15wallet2: get_outs lightwallet supportJaquee2-10/+129
2017-10-15wallet2: commit_tx() lightwallet supportJaquee1-17/+34
2017-10-15wallet2: refactor is_tx_spendtime_unlocked()Jaquee2-3/+9
2017-10-15wallet2: add lightwallet exceptions to common functionsJaquee1-0/+15
2017-10-15wallet2: refresh() lightwallet supportJaquee1-0/+34
2017-10-15my/openmonero API functionsJaquee2-0/+475
2017-10-15wallet2: add remove_obsolete_pool_txs()Jaquee2-22/+31
2017-10-15wallet2: add on_pool_tx_removed callbackJaquee1-0/+1
2017-10-15wallet2: light wallet member variablesJaquee1-1/+15
2017-10-15wallet2: add ssl option to init()Jaquee2-3/+6
2017-10-14Add tools::on_startup, and warn about glibc 2.25 bug if foundmoneromooo-monero1-1/+1
https://sourceware.org/bugzilla/show_bug.cgi?id=21778
2017-10-07wallet2: fix refresh height calc for new walletsmoneromooo-monero1-8/+0
2017-10-07Subaddresseskenshi8423-388/+1798
2017-10-07wallet: encrypt (un)signed tx, also optionally save unencrypted raw tx hexstrstoffu2-24/+111
2017-10-07Don't try to create wallet-dir when it's not given, don't crash if ↵Michał Sałaban1-1/+1
wallet-dir already exists.
2017-10-06add a command_line function to check for defaulted optionsmoneromooo-monero1-3/+3
2017-10-03wallet2: fix backlog being off by 1moneromooo-monero1-2/+2
We don't want to count "partly filled" blocks in this case
2017-10-03tests: fix hashchain unit testsmoneromooo-monero1-1/+1
and relax the not-empty safety check to stay more intuitiuve
2017-10-03wallet2: error check for generate_key_image_helper, removed redundant ↵stoffu2-11/+6
wallet_generate_key_image_helper
2017-10-03construct_tx_and_get_tx_key: return sorted sources for print_ring_memebrs to ↵stoffu1-1/+1
work properly
2017-10-02simplewallet: allow to set threshold before warning about tx backlogselsta2-0/+9
2017-10-02wallet2: fix hash chain trimming when the inner chain becomes emptymoneromooo-monero2-2/+30
It'd prevent further syncing. Recovery of empty hash chains is automatic, but requires a running daemon
2017-09-27wallet2: Missing underflow check on low heightslandergate1-1/+1
Lack of it results in `m_refresh_from_block_height` being < 0 (18446744...) on low heights, which blocks `process_new_blockchain_entry` and never process coins on heights less than blocks_per_month. Follow-up to #2258
2017-09-27cmake: add libversion and libcheckpoints to libwallet_mergedredfish1-1/+10
Needed to link monero-core Qt wallet.
2017-09-25wallet2: do not keep block hashes below last checkpointmoneromooo-monero2-20/+100
This saves a lot of space and load/save time for wallet caches
2017-09-25move checkpoints in a separate librarymoneromooo-monero5-14/+14
2017-09-25wallet2: simplify tx processing a bitmoneromooo-monero2-74/+68
2017-09-25wallet2: factor some of the tx scanning codemoneromooo-monero2-48/+21
2017-09-25wallet2: catch failure to parse addressmoneromooo-monero1-1/+5
CID 175297
2017-09-25wallet_rpc_server: catch failure to create directorymoneromooo-monero1-1/+10
CID 175281
2017-09-25wallet_rpc_server: init m_vm to NULL in ctormoneromooo-monero1-1/+1
CID 175279
2017-09-25wallet_args: remove redundant default value for --log-filemoneromooo-monero1-1/+1
CID 175265
2017-09-25wallet2: catch failure to save keys filemoneromooo-monero1-2/+3
CID 161848
2017-09-25wallet2_api: check whether dynamic_cast returns NULLmoneromooo-monero1-0/+2
CID 161844
2017-09-25wallet2_api: remove an unused, uninitialized, fieldmoneromooo-monero1-1/+0
Silences CID 161874
2017-09-25wallet2_api: init error code to "no error" in the ctormoneromooo-monero1-1/+1
CID 161872
2017-09-25wallet_rpc_server: guard against exceptionsmoneromooo-monero1-1/+9
CID 175305
2017-09-23store is optional during close and defaults to true; except during descructionm2049r5-14/+16
2017-09-21build: auto update version info without manually deleting version.hstoffu1-2/+1
2017-09-21wallet2: correctly handle in/out payments for view-only walletstoffu1-0/+141
2017-09-20wallet2: fix exception on split txesmoneromooo-monero1-1/+3
2017-09-20wallet2: print unused indices on a single linemoneromooo-monero1-6/+17
Decreases log spam massively on large wallets
2017-09-17daemon, wallet: add --max-log-file-size optionselsta1-1/+3
2017-09-14Use a threadpoolHoward Chu1-43/+20
Instead of constantly creating and destroying threads
2017-09-13wallet_rpc_server: fix index for newly added address book entrymoneromooo-monero1-1/+1
2017-09-12Update wallet2.cpp for misspellingMatthew Campassi1-1/+1
Misspelling in wallet2.cpp
2017-09-12wallet: add encrypted seed functionalitymoneromooo-monero2-3/+13
This uses luigi1111's CN_Add method. See https://xmr.llcoins.net for details.
2017-09-11wallet2: guard against daemon sending txes in the wrong ordermoneromooo-monero1-12/+10
2017-09-10wallet: fix --help and --version erroring outmoneromooo-monero1-15/+15
2017-08-30Do not create file when RPC user/pass is given and use file lockingLee Clagett2-30/+22
2017-08-29simplewallet: new "fee" command to display fee informationmoneromooo-monero2-23/+39
including expected transaction backlog at different priorities
2017-08-26wallet: new option to check/confirm txpool backlog when sendingmoneromooo-monero2-2/+65
2017-08-25wallet2: account for huge testnet reorgs for estimating heightmoneromooo-monero1-0/+3
2017-08-21WalletAPI: only allow trusted daemon when importing key imagesJaquee1-0/+5
2017-08-21WalletAPI: copy wallet data when creating a view only walletJaquee1-0/+27
2017-08-21wallet2: export/import wallet data functionsJaquee2-1/+55
2017-08-18import_key_images - allow importing without being connected to daemonJaquee2-19/+24
2017-08-12wallet_rpc_server: adjust small ring sizes to 5 for v6moneromooo-monero2-11/+18
2017-08-11wallet_rpc_server: fix possible privacy leak in on_import_key_images()Jaquee1-1/+6
2017-08-09WalletAPI: add getDefaultDataDir()Jaquee3-0/+10
2017-08-07change mixin to ring size in user visible placesmoneromooo-monero5-15/+15
2017-08-06wallet2: improve refresh height determinationmoneromooo-monero1-3/+20
As reported by jaquee, the calculation could underflow for very low heights. Additionally, we now use the target height too.
2017-08-05walletAPI: add getRefreshFromBlockHeight()Jaquee2-0/+7
2017-08-05wallet api: pause refresh while commiting txJaquee1-0/+2
2017-08-05wallet2: clear some missing containers in clear()moneromooo-monero1-0/+4
2017-08-05wallet2: store testnet bool in keys fileJaquee1-0/+8
2017-08-05wallet2: fix temporarily missing incoming tx when being minedmoneromooo-monero2-20/+38
When scanning the txpool without having first updated the blockchain, the tx would be seen as neither in the txpool nor the chain, and removed, so it'd only reappear once the chain is refreshed, and the tx seen in a block.
2017-08-03Wallet API: add tx unlock timeJaquee4-0/+10
2017-08-03Enable verifying wallet password with having to load wallet.m2049r5-3/+36
2017-08-02wallet2: add a is_synced functionmoneromooo-monero2-0/+11
2017-08-02node_rpc_proxy: add a proxy for target heightmoneromooo-monero2-15/+47
2017-08-02wallet: return unlock_time in get_transfersmoneromooo-monero4-3/+18
also show it in simplewallet's show_transfer
2017-08-02fix wallet callback signaturesm2049r1-4/+4
2017-07-27wallet-cli: Minor improvement to help outputErik de Castro Lopo1-2/+4
2017-07-27Move OpenAlias console input back from libsmoneromooo-monero1-6/+49
Library code should definitely not ask for console input unless it's clearly an input function. Delegating the user interaction part to the caller means it can now be used by a GUI, or have a decision algorithm better adapted to a particular caller.
2017-07-26wallet_rpc_server: optionally return tx blobs on transfer callsmoneromooo-monero2-7/+62
also add do_not_relay flag to them, so it now becomes possible to create a tx without sending it yet
2017-07-05Fix spelling errorsErik de Castro Lopo1-8/+8
2017-06-26Minor cleanup: tab vs. space + logs messagesbinaryFate2-4/+4
2017-06-26Fix #2120: return per-tx amount in transfer_split RPC call.binaryFate2-0/+9
2017-06-26wallet2: get current height from the daemon on creationmoneromooo-monero1-5/+14
Use current time to estimate current height only if the daemon cannot be queried.
2017-06-26wallet2: fix infinite loop on future refresh heightmoneromooo-monero1-1/+1
If the refresh height is in the future, the current code will loop till the actual height reaches this. Fix it by bailing out if we receive only three hashes, which is what we set in the call parameters.
2017-06-26wallet: fix refresh_from_height setting on new walletmoneromooo-monero1-3/+2
The previous patch was based on a wrong premise (that the daemon height was 0 because the daemon calling code wasn't yet initialized). In fact, current height approximation was not setup for testnet. Fix this.
2017-06-23Fix on_transfer RPC incorrect logging infoMike C1-1/+1
2017-06-13wallet_api: fix missing transaction parameter in callbackmoneromooo-monero1-1/+1
It was unused, so harmless Reported by erikd on IRC
2017-06-03Prevent crash if performing certain actions before wallet is initializedRobby Weinberg3-2/+17
2017-05-31fix get_upper_transaction renameschnerchi1-4/+4
2017-05-26node_rpc_proxy: fix earliest fork height query for unknown forksmoneromooo-monero1-1/+1
2017-05-23Wallet API: Set seed lang when recovering form keysJaquee1-1/+2
2017-05-23changed crypto to cncrypto so it generated libcncryptoGentian1-2/+2
fix a cmakelist
2017-05-18wallet2: check key image validity domain in import_key_imagesmoneromooo-monero1-0/+4
2017-05-09Correct spelling of 'get_upper_transaction_size_limit'Nano Akron2-3/+3
2017-05-09Remove the 1.25x multiplier in max transaction size in just the walletNano Akron1-1/+1
2017-05-09wallet fix: ensure iterator to be validstoffu1-0/+3
2017-05-07wallet2: fix sweep_unmixable assuming wrong minimum mixin at v5moneromooo-monero1-2/+2
The bump to minimum mixin 4 was moved from v5 to v6
2017-05-02Wallet API: add spend/view key gettersJaquee3-5/+41
2017-04-24wallet: add sweep_below functionmoneromooo-monero5-8/+13
It sweeps all outputs below the given threshold This is available via the existing sweep_all RPC, by setting amount_threshold the desired amount (in atomic units)
2017-04-22wallet2: refer to triangular distribution for recent zone in commentmoneromooo-monero1-1/+1
It was wrongly refering to equiprobable distribution, which I think I'd originally done, but forgot to update the comment after changing to triangular Reported by smooth on IRC
2017-04-22wallet2: bias fake outs more towards recent outputsmoneromooo-monero1-2/+2
Two recent papers quantified the real usage bias for the real output in a ring being the true one, and shows that the current biasing is much too weak. While we wait for a better solution, we increase the ratio of recent-to-total fake outputs, as well as decrease the time window for recent outputs, so that half the fake outs are selected within the last 1.8 day. Value plucked from figure 10, page 11 of An Empirical Analysis of Linkability in the Monero Blockchain, 2017, Miller et al. This is also arbitrary, of course, but serves as a stopgap till a better selection algorithm is chosen.
2017-04-17wallet2: fix removal of wrong txes from unconfirmed_paymentsmoneromooo-monero1-1/+1
unconfirmed_payments changed from having the txid as key to the payment id, and this was not changed to match.
2017-04-14wallet2: fix --generate-from-json in RPC modemoneromooo-monero1-3/+5
The daemon address was initialized too late
2017-04-11Resolve #92 add ability to create wallets thru RPCHoward Chu6-97/+407
Reviewed and squashed. Open/Create is only allowed if no walletfile was specified at startup.
2017-04-08wallet2: fix spurious output splitting when not merging destinationsmoneromooo-monero1-8/+20
2017-04-06wallet2: mention escaping/quoting --password in help stringmoneromooo-monero1-1/+1
2017-04-03IOS CMAKE build settingsJaquee1-1/+6
2017-04-02Wallet API: fix Cold signing split txJaquee1-4/+10
2017-04-02wallet2: do not go over the target tx size if many destinationsmoneromooo-monero1-12/+12
If using a large input and many destinations, the code would generate as many outputs as it could using that input, even if it would bring the resulting tx above the max tx size.
2017-03-25wallet: option to merge destinationsmoneromooo-monero2-6/+15
With the change from the original transfer method to the new algorithm, payments to the same destination were merged. It seemed like a good idea, optimizing space. However, it is a useful tool for people who want to split large outputs into several smaller ones (ie, service providers making frequent payments, and who do not like a large chunk of their balance being locked for 10 blocks after each payment). Default to off, which is a change from the previous behavior.
2017-03-24wallet: try to save large outputs when using an unneeded second inputmoneromooo-monero2-3/+39
When a single input is enough to satisfy a transfer, the code would previously try to add a second input, to match the "canonical" makeup of a transaction with two inputs and two outputs. This would cause wallets to slowly merge outputs till all the monero ends up in a single output, which causes trouble when making two transactions one after the other, since change is locked for 10 blocks, and an increasing portion of the remaining balance would end up locked on each transaction. There are two new settings (min-output-count and min-output-value) which can control when to stop adding such unneeded second outputs. The idea is that small "dust" outputs will still get added, but larger ones will not. Enable with, eg: set min-output-count 10 set min-output-value 30 to avoid using an unneeded second output of 30 monero or more, if there would be less than 10 such outputs left. This does not invalidate any other reason why such outputs would be used (ie, when they're really needed to satisfy a transfer, or when randomly picked in the normal course of selection). This may be improved in the future.
2017-03-24Wallet API: add hard fork info functionsJaquee5-26/+18
2017-03-23core, wallet: faster tx pool scanningmoneromooo-monero1-78/+83
Includes a new RPC to get tx pool hashes fast.
2017-03-21wallet: fix set_log not handling 0,xxx style settingsmoneromooo-monero1-1/+1
2017-03-21wallet2: cache which pool txes were scanned alreadymoneromooo-monero2-2/+26
This massively speeds up the wallet updating the pool on mainnet, where the tx backlog is more than 500 txes.
2017-03-20wallet2: start using new fee priorities at v5, not 14 days laermoneromooo-monero1-1/+1
Waiting would mean the fee used is 1x base, but the base will have suddenly dropped
2017-03-20wallet2: speed up transactions using remote nodesmoneromooo-monero2-4/+42
Asking for a full histogram from a remote node (since it's untrusted) is pretty slow, and spams the remote node, so we replace it by only adding a second input if we have rct ones, which are for all intents and purposes always mixable.
2017-03-20wallet rpc: enable solo miningstoffu3-0/+93
2017-03-19wallet-rpc bugfix: get_transfer_by_txid previously checking against payment idkenshi841-1/+1
2017-03-18wallet: increase node_rpc_proxy timeout to match wallet2moneromooo-monero1-4/+6
2017-03-18wallet_rpc_server: make a few RPCs unavailable in restricted modemoneromooo-monero1-0/+28
Address book modification, setting tx nodes, importing key images
2017-03-18use const references in catch blocksmoneromooo-monero3-10/+10
2017-03-18wallet2: call is_key_image_spent in blocks in rescan_spentmoneromooo-monero1-21/+24
This is a potentially long lasting daemon RPC call
2017-03-18wallet_rpc_server: add a rescan_spent RPCmoneromooo-monero3-0/+39
2017-03-17wallet-rpc: enable openaliasstoffu1-3/+3
2017-03-15Add intervening v5 fork for increased min block sizemoneromooo-monero2-15/+37
Minimum mixin 4 and enforced ringct is moved from v5 to v6. v5 is now used for an increased minimum block size (from 60000 to 300000) to cater for larger typical/minimum transaction size. The fee algorithm is also changed to decrease the base per kB fee, and add a cheap tier for those transactions which we do not care if they get delayed (or even included in a block).
2017-03-12Adds a config file option to the walletArne Brutschy1-0/+19
2017-03-05wallet: add password commandmoneromooo-monero2-3/+3
Also tweak wallet2 password code to verify password without saying it's a new wallet, because it's assuming things.
2017-03-04wallet: fix get_tranfers with multiple incoming txes with same pidmoneromooo-monero1-3/+13
2017-03-04Revert "wallet: fix insertion of pool transactions"moneromooo-monero1-1/+1
This reverts commit d47dac9a88ddd46b88850a899311363b3261c89e. Callers actually expect the key to be payment id, so this needs a lot more changes (like storing payment ids in the structure, and possibly also to other existing structures which do the same thing).
2017-03-03wallet api: fix parameters in wallet2callbackImplJaquee1-7/+7
2017-03-03use txid in wallet2::process_new_transaction()Jaquee1-1/+1
2017-03-02allow user I/O in millinero, micronero, nanonero, piconeromoneromooo-monero2-0/+17
2017-03-02wallet api: add missing mining optionsJaquee3-3/+5
2017-02-28wallet: fix insertion of pool transactionsmoneromooo-monero1-1/+1
They were inserted using payment id as key, not txid
2017-02-28wallet: fix --log-file not workingmoneromooo-monero3-28/+28
2017-02-27Add support for the wallet to refresh pruned blocksmoneromooo-monero2-49/+63
2017-02-27node_rpc_proxy: allow caching daemon RPC versionmoneromooo-monero2-0/+26
2017-02-27wallet: invalidate node proxy cache when reconnectingmoneromooo-monero3-0/+14
2017-02-25Wallet API: Add support for daemon rpc loginJaquee3-4/+7
2017-02-24wallet: avoid pre-log-init spew on --versionmoneromooo-monero1-11/+11
2017-02-24wallet_rpc_server: new --trusted-daemon flagmoneromooo-monero3-13/+17
and remove trusted_daemon fields from transfer RPCs, it is much friendlier on users
2017-02-24add rpc timeouts to calls that might timeoutRiccardo Spagni1-4/+4
2017-02-23wallet2: fix wrong status on daemon shutdown/startupJaquee1-1/+5
2017-02-22wallet2_api: add updates check apimoneromooo-monero2-0/+31
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni25-26/+26
2017-02-19wallet2: fix failure to send (relatedness check in wrong case)moneromooo-monero1-5/+5
A relatedness check was meant to be done in the case of adding an extra output if just one was enough. This was mistakenly added to the "preferred output" case.
2017-02-18wallet_api: fix logging init via apimoneromooo-monero3-1/+6
2017-02-14simplewallet: validate hex input sizemoneromooo-monero4-12/+12
2017-02-11Fix GUI building after libcryptonote_core was split (#1626)iDunk54001-1/+1
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi847-16/+15
2017-02-06wallet2: fix transactions not considering rct inputsmoneromooo-monero2-11/+11
I broke this very recently in 2bf029be172a47ace8134143e1320fdb10d3ea44 and didn't notice in time
2017-02-06Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett8-386/+51
2017-02-05Wallet API: Easylogger wrapper for guiJaquee2-0/+8
2017-02-05Wallet API: Catch error from tools::is_local_addressJaquee1-2/+7
2017-02-04GUI: Improved refresh performanceJaquee1-7/+10
2017-02-04wallet api: Remove initAsync() and don't start refresh automatically on initJaquee3-31/+6
2017-02-04wallet2::init() - disconnect before init if connectedJaquee1-0/+2
Makes it possible for GUI to reinit with new daemon without closing and reopening wallet.
2017-02-04wallet_rpc_server: add address book RPC callsmoneromooo-monero4-0/+184
2017-02-03simplewallet: option to always ask password for any crytical operationskenshi842-2/+11
2017-01-30Wallet API: Create wallet from keysJaquee5-0/+178
2017-01-30Changed console output for transaction from L0 to L1NanoAkron1-1/+1
2017-01-29wallet_rpc_server: fix short payment id validation in transfermoneromooo-monero1-1/+1
2017-01-28wallet2: fix corner case failing to send a second outputmoneromooo-monero1-1/+2
If a rct transaction can be made with just one input, a second output will be added. This output will be the smallest amount output available. However, if this output is a non rct output with less available fake outs than requested, the transaction will be rejected. We now check the histogram to only consider outputs with enough available fake outs in the first place.
2017-01-28Factor is_address_local code into a tools functionmoneromooo-monero1-36/+2
2017-01-28wallet_rpc_server: fix logs going to the wrong filemoneromooo-monero3-7/+7
2017-01-26Fix invalid + of std::string and intTimothy D. Prime1-3/+3
These warnings were emitted by clang++, and they are real bugs. src/rpc/core_rpc_server.cpp:208:58: warning: adding 'uint64_t' (aka 'unsigned long') to a string does not append to the string [-Wstring-plus-int] res.status = "Error retrieving block at height " + height; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ The obvious intent is achieved by using std::to_string().
2017-01-25Updates to epee HTTP client codeLee Clagett7-80/+66
- http_simple_client now uses std::chrono for timeouts - http_simple_client accepts timeouts per connect / invoke call - shortened names of epee http invoke functions - invoke command functions only take relative path, connection is not automatically performed
2017-01-23fixed typo: monero-wallet-cli,logkenshi841-1/+1
2017-01-22Wallet api: testnet getter=2-0/+2
2017-01-22Replace BOOST_FOREACH with C++11 ranged forMiguel Herranz2-31/+31
2017-01-22wallet2: fix sending a rct tx with a single output availablemoneromooo-monero1-3/+50
This would have tried to send a second output to make the tx look like the 2/2 ideal, but it would not fail to find one because picking an output from preferred_inputs priority list did not remove it from the unused tranfer/dust outputs, so it would try to send the same output twice. While there, I also added a check to avoid sending a second input if it's related to the first. Better 1/2 than linking inputs, I think.
2017-01-20wallet: print exception message on get_random_outs_errormoneromooo-monero1-2/+2
2017-01-16wallet2_api: add API to set log categoriesmoneromooo-monero2-0/+6
2017-01-16wallet: add a node RPC cache layer for simple RPC callsmoneromooo-monero6-79/+259
Mostly getinfo and get_hard_fork_info, which are called pretty often. This speeds up transfers as a bonus.
2017-01-16wallet2: reuse fake outs when adjusting fee on transfermoneromooo-monero3-23/+55
This avoids indirectly leaking the real output to the daemon, and is faster. This will still happen for more complex cases, especially when cancelling a tx and "re-rolling" it.
2017-01-16specify restore height by YYYY-MM-DD formatkenshi842-0/+88
2017-01-16Change logging to easylogging++moneromooo-monero7-60/+52
This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
2017-01-15remove std::move from return statements (pessimizing-move warning)Chris Vickio1-2/+2
2017-01-15change counter from bool to int (deprecated-increment-bool warning)Chris Vickio1-1/+1
2017-01-14wallet2: use at least two rct inputs if possiblemoneromooo-monero2-9/+36
If we'd make a rct tx with just one input, we try to add a second one to match the 2/2 ideal. This means more txes use that template (and are thus using a larger anonymity set), and it coalesces outputs "for free". We use the smallest amount outputs in priority for this, so we can "clean" the wallet at the same time.
2017-01-14fix timeout in check_connectionJaquee3-5/+7
2017-01-14make struct/class declarations consistent (mismatched-tags warning)Chris Vickio3-4/+2
2017-01-13wallet2: fix tx reroll not updating fee is going up a kB stepmoneromooo-monero1-7/+13
2017-01-13Wallet API: add key image import/export functionsJaquee3-6/+67
2017-01-13Wallet API: support integrated addresses in address book.Jaquee1-12/+42
2017-01-13Wallet API: add rescanSpent()Jaquee3-1/+24
2017-01-13Move key image export/import functions to wallet2Jaquee2-1/+90
2017-01-12Wallet2 + API: Callbacks for unconfirmed transfersJaquee7-6/+67
2017-01-11Added (not yet enabled) HTTP client authenticationLee Clagett1-1/+1
2017-01-10Wallet api: Update trustedDaemon when daemon is changedJaquee1-0/+6
2017-01-10GUI cold signingJaquee10-9/+519
fix conflict
2017-01-10Wallet API: functions for supporting/creating view only walletsJaquee4-5/+88