aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-10-15fix lightwallet and subaddresses conflictJaquee1-1/+6
2017-10-15Merge pull request #2596Riccardo Spagni1-8/+0
06fb9bcf wallet2: fix refresh height calc for new wallets (moneromooo-monero)
2017-10-15Merge pull request #2570Riccardo Spagni1-2/+2
f139a6ca wallet2: fix backlog being off by 1 (moneromooo-monero)
2017-10-15Merge pull request #2109Riccardo Spagni1-55/+699
97c2e449 wallet2+API: use separate callbacks for lightwallets (Jaquee) d9261867 walletAPI: correct confirmations in txHistory for unsynced wallets (Jaquee) 9442b043 walletAPI: lightwallet exceptions (Jaquee) fc922934 walletAPI: add lightwallet login() and importWalletRequest() (Jaquee) 79207743 walletAPI: init() lightwallet and SSL support (Jaquee) dde5a1fc walletAPI: add tx unlock_time (Jaquee) bba5cbed wallet2: remove obsolete get_num_rct_outputs() call from create_transactions_2 (Jaquee) 7a482f30 wallet2: create_transactions_2 lightwallet support (Jaquee) ce61b818 wallet2: get_outs lightwallet support (Jaquee) 1197cb71 wallet2: commit_tx() lightwallet support (Jaquee) 43b57804 wallet2: refactor is_tx_spendtime_unlocked() (Jaquee) 32e2b003 wallet2: add lightwallet exceptions to common functions (Jaquee) 2e692fc0 wallet2: refresh() lightwallet support (Jaquee) f44d156c my/openmonero API functions (Jaquee) 288d3c75 wallet2: add remove_obsolete_pool_txs() (Jaquee) 2c6aad7e wallet2: add on_pool_tx_removed callback (Jaquee) ff7c30aa wallet2: light wallet member variables (Jaquee) e2a276cb wallet2: add ssl option to init() (Jaquee) a13540be add string_tools::validate_hex() (Jaquee) fd773d88 refactor cryptonote_basic::add_tx_pub_key_to_extra (Jaquee) 8bfa6c2d lightwallet rpc server commands (Jaquee) 76961ddc Serializer: string to integer conversion for MyMonero compatibility (Jaquee) 1cf940f2 epee http_client SSL support (Jaquee) eec10137 CMakeLists.txt - Add openssl include dir (Jaquee)
2017-10-15wallet2+API: use separate callbacks for lightwalletsJaquee1-7/+4
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 supportJaquee1-10/+127
2017-10-15wallet2: commit_tx() lightwallet supportJaquee1-17/+34
2017-10-15wallet2: refactor is_tx_spendtime_unlocked()Jaquee1-3/+8
2017-10-15wallet2: add lightwallet exceptions to common functionsJaquee1-0/+15
2017-10-15wallet2: refresh() lightwallet supportJaquee1-0/+34
2017-10-15my/openmonero API functionsJaquee1-0/+441
2017-10-15wallet2: add remove_obsolete_pool_txs()Jaquee1-22/+30
2017-10-15Merge pull request #2554Riccardo Spagni1-22/+109
d74336d5 wallet: encrypt (un)signed tx, also optionally save unencrypted raw tx hexstr (stoffu)
2017-10-15wallet2: add ssl option to init()Jaquee1-2/+5
2017-10-07wallet2: fix refresh height calc for new walletsmoneromooo-monero1-8/+0
2017-10-07Subaddresseskenshi841-184/+594
2017-10-07wallet: encrypt (un)signed tx, also optionally save unencrypted raw tx hexstrstoffu1-22/+109
2017-10-06Merge pull request #2542Riccardo Spagni1-1/+1
180a848c wallet2: Missing underflow check on low heights (landergate)
2017-10-06Merge pull request #2530Riccardo Spagni1-1/+1
cbc5508b construct_tx_and_get_tx_key: return sorted sources for print_ring_memebrs to work properly (stoffu)
2017-10-06Merge pull request #2529Riccardo Spagni1-10/+6
bd937139 wallet2: error check for generate_key_image_helper, removed redundant wallet_generate_key_image_helper (stoffu)
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-03wallet2: error check for generate_key_image_helper, removed redundant ↵stoffu1-10/+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 backlogselsta1-0/+6
2017-10-02Merge pull request #2491Riccardo Spagni1-7/+20
d5a9edf2 wallet2: fix exception on split txes (moneromooo-monero) 5c5b0fd0 wallet2: print unused indices on a single line (moneromooo-monero)
2017-10-02wallet2: fix hash chain trimming when the inner chain becomes emptymoneromooo-monero1-1/+28
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-25wallet2: do not keep block hashes below last checkpointmoneromooo-monero1-15/+48
This saves a lot of space and load/save time for wallet caches
2017-09-25move checkpoints in a separate librarymoneromooo-monero1-4/+4
2017-09-25wallet2: simplify tx processing a bitmoneromooo-monero1-72/+53
2017-09-25wallet2: factor some of the tx scanning codemoneromooo-monero1-48/+20
2017-09-25wallet2: catch failure to parse addressmoneromooo-monero1-1/+5
CID 175297
2017-09-25wallet2: catch failure to save keys filemoneromooo-monero1-2/+3
CID 161848
2017-09-25Merge pull request #2386Riccardo Spagni1-12/+10
a15e8583 wallet2: guard against daemon sending txes in the wrong order (moneromooo-monero) 8fe5f609 rpc: order transactions in the order they were requested (moneromooo-monero)
2017-09-25Merge pull request #2377Riccardo Spagni1-0/+141
b5cbdce8 wallet2: correctly handle in/out payments for view-only wallet (stoffu)
2017-09-25Merge pull request #2257Riccardo Spagni1-2/+12
651baaec wallet: add encrypted seed functionality (moneromooo-monero)
2017-09-21wallet2: correctly handle in/out payments for view-only walletstoffu1-0/+141
2017-09-20Merge pull request #2441Riccardo Spagni1-1/+1
fee3c3ed Update wallet2.cpp for misspelling (Matthew Campassi)
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-14Use a threadpoolHoward Chu1-43/+20
Instead of constantly creating and destroying threads
2017-09-12Update wallet2.cpp for misspellingMatthew Campassi1-1/+1
Misspelling in wallet2.cpp
2017-09-12wallet: add encrypted seed functionalitymoneromooo-monero1-2/+12
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-02Merge pull request #2362Riccardo Spagni1-20/+35
adce8ae4 simplewallet: new "fee" command to display fee information (moneromooo-monero)
2017-09-02Merge pull request #2342Riccardo Spagni1-0/+3
2e338ca5 wallet2: account for huge testnet reorgs for estimating height (moneromooo-monero)
2017-09-02Merge pull request #2309Riccardo Spagni1-18/+72
d58700e0 WalletAPI: only allow trusted daemon when importing key images (Jaquee) 8a9bbd26 WalletAPI: copy wallet data when creating a view only wallet (Jaquee) d27fe32e wallet2: export/import wallet data functions (Jaquee) 225a25f3 import_key_images - allow importing without being connected to daemon (Jaquee)
2017-08-29simplewallet: new "fee" command to display fee informationmoneromooo-monero1-20/+35
including expected transaction backlog at different priorities
2017-08-26wallet: new option to check/confirm txpool backlog when sendingmoneromooo-monero1-0/+58
2017-08-25wallet2: account for huge testnet reorgs for estimating heightmoneromooo-monero1-0/+3
2017-08-21wallet2: export/import wallet data functionsJaquee1-0/+49
2017-08-18import_key_images - allow importing without being connected to daemonJaquee1-18/+23
2017-08-15Merge pull request #2258Riccardo Spagni1-3/+20
74597bd1 wallet2: improve refresh height determination (moneromooo-monero)
2017-08-15Merge pull request #2252Riccardo Spagni1-0/+4
9707998a wallet2: clear some missing containers in clear() (moneromooo-monero)
2017-08-15Merge pull request #2240Riccardo Spagni1-0/+9
b7d6ec83 simplewallet: add (out of sync) or (no daemon) markers in the prompt (moneromooo-monero) fa23a500 wallet2: add a is_synced function (moneromooo-monero) f1307bbd node_rpc_proxy: add a proxy for target height (moneromooo-monero)
2017-08-15Merge pull request #2238Riccardo Spagni1-2/+19
ad4649ac Enable verifying wallet password with having to load wallet. (m2049r)
2017-08-15Merge pull request #2233Riccardo Spagni1-0/+8
67ce4910 wallet2: store testnet bool in keys file (Jaquee)
2017-08-15Merge pull request #2205Riccardo Spagni1-0/+1
c97d1bd3 wallet: return unlock_time in get_transfers (moneromooo-monero)
2017-08-07change mixin to ring size in user visible placesmoneromooo-monero1-2/+2
2017-08-07Merge pull request #2203Riccardo Spagni1-19/+37
0c57df97 wallet2: fix temporarily missing incoming tx when being mined (moneromooo-monero)
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-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-monero1-19/+37
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-03Enable verifying wallet password with having to load wallet.m2049r1-2/+19
2017-08-02wallet2: add a is_synced functionmoneromooo-monero1-0/+9
2017-08-02wallet: return unlock_time in get_transfersmoneromooo-monero1-0/+1
also show it in simplewallet's show_transfer
2017-07-05Fix spelling errorsErik de Castro Lopo1-8/+8
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-03Prevent crash if performing certain actions before wallet is initializedRobby Weinberg1-0/+4
2017-06-01Merge pull request #2058Riccardo Spagni1-4/+4
6bcd3b2d fix get_upper_transaction rename (schnerchi)
2017-05-31fix get_upper_transaction renameschnerchi1-4/+4
2017-05-30Merge pull request #2036Riccardo Spagni1-0/+4
89b2f306 tests: fix invalid key image test (moneromooo-monero) a374a522 wallet2: check key image validity domain in import_key_images (moneromooo-monero)
2017-05-30Merge pull request #2022Riccardo Spagni1-2/+2
e2529347 Correct spelling of 'get_upper_transaction_size_limit' (Nano Akron) 3029d0ef Remove the 1.25x multiplier in max transaction size in just the wallet (Nano Akron)
2017-05-30Merge pull request #2020Riccardo Spagni1-0/+3
6cb1ad1f wallet fix: ensure iterator to be valid (stoffu)
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 Akron1-1/+1
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-04-24wallet: add sweep_below functionmoneromooo-monero1-5/+8
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-24Merge pull request #1996Riccardo Spagni1-3/+3
a6d5bb75 wallet2: refer to triangular distribution for recent zone in comment (moneromooo-monero) ac1aba90 wallet2: bias fake outs more towards recent outputs (moneromooo-monero)
2017-04-24Merge pull request #1989Riccardo Spagni1-1/+1
7f4beaa4 wallet2: fix removal of wrong txes from unconfirmed_payments (moneromooo-monero)
2017-04-24Merge pull request #1976Riccardo Spagni1-3/+5
a7d78dda wallet2: fix --generate-from-json in RPC mode (moneromooo-monero)
2017-04-24Merge pull request #1961Riccardo Spagni1-8/+20
89d70756 wallet2: fix spurious output splitting when not merging destinations (moneromooo-monero)
2017-04-24Merge pull request #1959Riccardo Spagni1-1/+1
10e137be wallet2: mention escaping/quoting --password in help string (moneromooo-monero)
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 Chu1-0/+6
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-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-monero1-4/+10
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-monero1-1/+30
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-23core, wallet: faster tx pool scanningmoneromooo-monero1-78/+83
Includes a new RPC to get tx pool hashes fast.
2017-03-21Merge pull request #1903Riccardo Spagni1-1/+20
350e99ae wallet2: cache which pool txes were scanned already (moneromooo-monero)
2017-03-21Merge pull request #1899Riccardo Spagni1-4/+40
c1e9ccc7 wallet2: speed up transactions using remote nodes (moneromooo-monero)
2017-03-21wallet2: cache which pool txes were scanned alreadymoneromooo-monero1-1/+20
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-monero1-4/+40
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-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-15Add intervening v5 fork for increased min block sizemoneromooo-monero1-14/+35
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-06Merge pull request #1846Riccardo Spagni1-2/+2
4b48565c wallet: add password command (moneromooo-monero)
2017-03-05wallet: add password commandmoneromooo-monero1-2/+2
Also tweak wallet2 password code to verify password without saying it's a new wallet, because it's assuming things.
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-03use txid in wallet2::process_new_transaction()Jaquee1-1/+1
2017-03-03Merge pull request #1826Riccardo Spagni1-0/+15
2c468dd4 allow user I/O in millinero, micronero, nanonero, piconero (moneromooo-monero)
2017-03-03Merge pull request #1823Riccardo Spagni1-1/+1
d47dac9a wallet: fix insertion of pool transactions (moneromooo-monero)
2017-03-02allow user I/O in millinero, micronero, nanonero, piconeromoneromooo-monero1-0/+15
2017-02-28wallet: fix insertion of pool transactionsmoneromooo-monero1-1/+1
They were inserted using payment id as key, not txid
2017-02-27Add support for the wallet to refresh pruned blocksmoneromooo-monero1-42/+56
2017-02-27wallet: invalidate node proxy cache when reconnectingmoneromooo-monero1-0/+1
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-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni1-1/+1
2017-02-21Merge pull request #1749Riccardo Spagni1-5/+5
5a3b1e98 wallet2: fix failure to send (relatedness check in wrong case) (moneromooo-monero)
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-14simplewallet: validate hex input sizemoneromooo-monero1-3/+3
2017-02-11Merge pull request #1689Riccardo Spagni1-3/+18
ce7fcbb4 Add server auth to monerod, and client auth to wallet-cli and wallet-rpc (Lee Clagett)
2017-02-11Merge pull request #1686Riccardo Spagni1-10/+10
bceaf4b7 wallet2: fix transactions not considering rct inputs (moneromooo-monero)
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi841-2/+2
2017-02-06wallet2: fix transactions not considering rct inputsmoneromooo-monero1-10/+10
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 Clagett1-3/+18
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-04Merge pull request #1640Riccardo Spagni1-0/+6
f97526e6 simplewallet: option to always ask password for any crytical operations (kenshi84)
2017-02-03simplewallet: option to always ask password for any crytical operationskenshi841-0/+6
2017-02-02Merge pull request #1652Riccardo Spagni1-1/+1
fba9332d Changed console output for transaction from L0 to L1 (NanoAkron)
2017-02-02Merge pull request #1647Riccardo Spagni1-1/+2
2bf029be wallet2: fix corner case failing to send a second output (moneromooo-monero)
2017-02-02Merge pull request #1634Riccardo Spagni1-3/+3
99f58437 Fix invalid + of std::string and int (Timothy D. Prime)
2017-02-02Merge pull request #1629Riccardo Spagni1-27/+20
c02e1cb9 Updates to epee HTTP client code - 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 (Lee Clagett)
2017-01-30Changed console output for transaction from L0 to L1NanoAkron1-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-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 Clagett1-27/+20
- 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-22Replace BOOST_FOREACH with C++11 ranged forMiguel Herranz1-23/+23
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-16wallet: add a node RPC cache layer for simple RPC callsmoneromooo-monero1-77/+42
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-monero1-21/+45
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-15Merge pull request #1569Riccardo Spagni1-0/+86
16b8b66a specify restore height by YYYY-MM-DD format (kenshi84)
2017-01-16specify restore height by YYYY-MM-DD formatkenshi841-0/+86
2017-01-16Change logging to easylogging++moneromooo-monero1-3/+6
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-15Merge pull request #1561Riccardo Spagni1-3/+3
d561f4ad enable clang checks that were disabled (Chris Vickio) 0aefb2f6 remove std::move from return statements (pessimizing-move warning) (Chris Vickio) 629d5b76 change counter from bool to int (deprecated-increment-bool warning) (Chris Vickio) fb76d439 add extra braces around subobjects (missing-braces warning) (Chris Vickio) 3b6d5f25 make struct/class declarations consistent (mismatched-tags warning) (Chris Vickio) fcf66925 remove unused fields from network_throttle (unused-private-field warning) (Chris Vickio) 296f8c16 inline unused function (for unused-function warning) (Chris Vickio)
2017-01-15Merge pull request #1574Riccardo Spagni1-7/+34
d276a165 wallet2: use at least two rct inputs if possible (moneromooo-monero)
2017-01-15Merge pull request #1573Riccardo Spagni1-2/+2
dea53962 fix timeout in check_connection (Jaquee)
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-monero1-7/+34
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_connectionJaquee1-2/+2
2017-01-13wallet2: fix tx reroll not updating fee is going up a kB stepmoneromooo-monero1-7/+13
2017-01-13Merge pull request #1562Riccardo Spagni1-1/+88
a081b39c Move key image export/import functions to wallet2 (Jaquee)
2017-01-13Merge pull request #1559Riccardo Spagni1-1/+4
db56a03f Wallet2 + API: Callbacks for unconfirmed transfers (Jaquee)
2017-01-13Merge pull request #1541Riccardo Spagni1-2/+15
0d3918e1 Wallet api: Update trustedDaemon when daemon is changed (Jaquee) dbb838f4 GUI cold signing (Jaquee) afb85a02 Wallet API: functions for supporting/creating view only wallets (Jaquee)
2017-01-13Merge pull request #1540Riccardo Spagni1-1/+42
79b4e1f9 Cold signing: make sure short payment id isnt encrypted twice (Jaquee)
2017-01-13Move key image export/import functions to wallet2Jaquee1-1/+88
2017-01-12Wallet2 + API: Callbacks for unconfirmed transfersJaquee1-1/+4
2017-01-10GUI cold signingJaquee1-2/+15
fix conflict
2017-01-09wallet cli: print originating block heights of mixin keys when making transferkenshi841-0/+6
2017-01-08Merge pull request #1515Riccardo Spagni1-18/+42
ada7c7da portable serializer: tests added (kenshi84) f390a0e2 portable serializer: make signerd/unsigned tx portable, ignore archive version checking (kenshi84)
2017-01-08Merge pull request #1508Riccardo Spagni1-1/+6
4585ada4 Wallet2: faster exit while refreshing (Jaquee)
2017-01-08Merge pull request #1504Riccardo Spagni1-1/+1
5f4ac6b9 wallet2 bugfix: store watch_only flag properly with rewrite() (kenshi84)
2017-01-08Merge pull request #1501Riccardo Spagni1-0/+17
cebae0c5 wallet2: check the node returned the real output when requested (moneromooo-monero)
2017-01-08Merge pull request #1497Riccardo Spagni1-1/+1
50511677 wallet2: fix large reorgs failing (moneromooo-monero)
2017-01-08Cold signing: make sure short payment id isnt encrypted twiceJaquee1-1/+42
2017-01-02portable serializer: make signerd/unsigned tx portable, ignore archive ↵kenshi841-18/+42
version checking
2016-12-27Wallet2: faster exit while refreshingJaquee1-1/+6
2016-12-27wallet2: check the node returned the real output when requestedmoneromooo-monero1-0/+17
2016-12-26wallet2 bugfix: store watch_only flag properly with rewrite()kenshi841-1/+1
2016-12-24wallet2: fix large reorgs failingmoneromooo-monero1-1/+1
If a reorg was large enough that a full 1000 block chunk from the daemon was all known blocks, refresh would stop, and no reorg would happen.
2016-12-21make openalias also available for solo miner; introduce namespace ↵kenshi841-68/+0
tools::dns_utils; support integrated address with dns lookup
2016-12-20Merge pull request #1474Riccardo Spagni1-1/+1
fc40b3e7 Lower connection timeout in check_connection() (Jaquee)
2016-12-20Merge pull request #1472Riccardo Spagni1-16/+17
2bddb8eb Refactored password prompting for wallets (Lee Clagett)
2016-12-20also use portable serializer for boost_serialization_helper.h and ↵kenshi841-2/+2
net_node.inl, completely adandon boost/archive/binary_oarchive.hpp
2016-12-19Refactored password prompting for walletsLee Clagett1-16/+17
2016-12-19Lower connection timeout in check_connection()Jaquee1-1/+1
2016-12-16added experimental boost::archive::portable_binary_{i|o}archivekenshi841-7/+27
2016-12-14AddressBook: use unsigned type for row ID'sanonimal1-2/+2
Fixes build warnings and may also prevent future headaches.
2016-12-12addressbook updatesJaquee1-4/+11
2016-12-12Merge pull request #1434Riccardo Spagni1-0/+17
5df92877 GUI address book (Jaquee)
2016-12-12GUI address bookJaquee1-0/+17
2016-12-10wallet: bring forward use of the dynamic feemoneromooo-monero1-1/+1
It was 14 days after v4, it is now one day after it. luigi1111's suggestion
2016-12-10Merge pull request #1422Riccardo Spagni1-1/+1
9b00d80f wallet2: pass by const ref where possible (moneromooo-monero)
2016-12-10Merge pull request #1419Riccardo Spagni1-2/+7
f4a3ce15 Fix sending outputs from a tx with more than one pubkey (moneromooo-monero)
2016-12-10wallet2: pass by const ref where possiblemoneromooo-monero1-1/+1
Reported by kenshi84
2016-12-09Fix sending outputs from a tx with more than one pubkeymoneromooo-monero1-2/+7
A bug in cold signing caused a spurious pubkey to be included in transactions, so we need to ensure we use the correct one when sending outputs from one of those.
2016-12-08Merge pull request #1415Riccardo Spagni1-3/+13
6c44f5c6 wallet: send 0 change to a random address where necessary with rct (moneromooo-monero)
2016-12-07wallet: send 0 change to a random address where necessary with rctmoneromooo-monero1-3/+13
If a rct transaction would cause no change to be generated, a zero change output is added, and sent to a randomly generated address. This ensures that no transaction will be sent with just one output, which could cause the receiver to be able to determine which of the inputs in the sent rings is the real one. This is very rare, since it requires the sum of outputs to be equal to the sum of outputs plus the fee, which is now a function of the last few blocks.
2016-12-05Remove infinite loop in refresh codeJaquee1-69/+43
This reverts commit fd181b03bb58a8b0628d2af8637cf6bb968fc437.
2016-12-04Merge pull request #1399Riccardo Spagni1-2/+1
73ac3b8e wallet2: avoid possible undefined behavior on empty string (moneromooo-monero)
2016-12-04Merge pull request #1398Riccardo Spagni1-4/+4
f4772bae Fix a few minor typos (Pierre Boyer)
2016-12-04Merge pull request #1385Riccardo Spagni1-0/+142
5783dd8c tests: add unit tests for uri parsing (moneromooo-monero) 82ba2108 wallet: add API and RPC to create/parse monero: URIs (moneromooo-monero) d9001b43 epee: add functions to convert from URL format (ie, %XX values) (moneromooo-monero)
2016-12-04Merge pull request #1380Riccardo Spagni1-0/+5
657a70e0 wallet: add a getter for the filename path (moneromooo-monero)
2016-12-04wallet2: avoid possible undefined behavior on empty stringmoneromooo-monero1-2/+1
2016-12-04Fix a few minor typosPierre Boyer1-4/+4
2016-11-28wallet: add API and RPC to create/parse monero: URIsmoneromooo-monero1-0/+142