aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
Commit message (Collapse)AuthorAgeFilesLines
* Use 'boost' mutex instead of 'std' mutexcslashm2018-04-121-4/+4
|
* Fix sub-address tx scan.cslashm2018-04-121-3/+3
| | | | | | | | When additional keys was needed, the TX scan failed because the derivation data was always recomputed with the main tx_key and not the corresponding additional one. Moreover this patch avoid perf decreasing when not using HW device.
* Merge pull request #3549Riccardo Spagni2018-04-121-21/+44
|\ | | | | | | | | 73951cbd wallet2: request transactions in slices when scanning for known rings (moneromooo-monero) 25fe67e4 rpc: allow getting pruned blocks from gettransactions (moneromooo-monero)
| * wallet2: request transactions in slices when scanning for known ringsmoneromooo-monero2018-04-071-22/+32
| | | | | | | | This avoid massive memory consumption for huge wallets
| * rpc: allow getting pruned blocks from gettransactionsmoneromooo-monero2018-04-071-0/+13
| | | | | | | | | | | | | | | | and get them pruned in find_and_save_rings, since it does not need the pruned data in the first place. Also set decode_to_json to false where missing, we don't need this either.
* | Merge pull request #3615Riccardo Spagni2018-04-121-9/+9
|\ \ | | | | | | | | | 24acb66e wallet2: fix misc issues when the ringdb can't be initialized (moneromooo-monero)
| * | wallet2: fix misc issues when the ringdb can't be initializedmoneromooo-monero2018-04-121-9/+9
| | |
* | | Merge pull request #3555Riccardo Spagni2018-04-121-1/+1
|\ \ \ | | | | | | | | | | | | 0b26c4d5 wallet2: move segregation height to v7 (moneromooo-monero)
| * | | wallet2: move segregation height to v7moneromooo-monero2018-04-051-1/+1
| | |/ | |/| | | | | | | since people seem to really want to use things the wrong way.
* | | Merge pull request #3534Riccardo Spagni2018-04-122-0/+10
|\ \ \ | | | | | | | | | | | | eecfb57d wallet: warn if not using the default ring size (moneromooo-monero)
| * | | wallet: warn if not using the default ring sizemoneromooo-monero2018-03-312-0/+10
| |/ /
* | | Merge pull request #3516Riccardo Spagni2018-04-121-1/+1
|\ \ \ | |_|/ |/| | | | | 1e0958c0 wallet: fix default mixin (4 -> 6) (sneurlax)
| * | wallet: fix default mixin (4 -> 6)sneurlax2018-03-281-1/+1
| |/
* | Merge pull request #3502Riccardo Spagni2018-04-121-1/+1
|\ \ | | | | | | | | | 11c933e1 fix lambda compile error on openbsd (moneromooo-monero)
| * | fix lambda compile error on openbsdmoneromooo-monero2018-03-271-1/+1
| |/
* | Merge pull request #3536Riccardo Spagni2018-04-121-11/+44
|\ \ | | | | | | | | | | | | | | | c77d2bfa Add the possibility to export private view key for fast scan. (cslashm) 100b7bc1 Change mutex lock model to avoid dead lock and ensure locks are always released. (cslashm) 641dfc99 Automatic height setup when creating/restoring hw device. (cslashm)
| * | Add the possibility to export private view key for fast scan.cslashm2018-03-311-11/+44
| |/ | | | | | | | | | | On client startup the device asks for authorization to export the private view key. If user agree, the client hold the private view key allowing a fast blockchain scan. If the user does not agree, the blockchain scan is fully done via the device.
* | Merge pull request #3473Riccardo Spagni2018-04-121-5/+6
|\ \ | | | | | | | | | | | | eaa8bfe7 wallet2: set from_height of GET_OUTPUT_DISTRIBUTION correctly The previous expression (stoffu) 0a619f78 wallet2: enable the mitigation only after the fork height (stoffu)
| * | wallet2: set from_height of GET_OUTPUT_DISTRIBUTION correctlystoffu2018-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The previous expression req_t.from_height = X ? Y >= Z : 0; forces the parameter to take the value of either 0 or 1.
| * | wallet2: enable the mitigation only after the fork heightstoffu2018-03-221-4/+5
| |/
* | Merge pull request #3468Riccardo Spagni2018-04-121-0/+9
|\ \ | | | | | | | | | 0098ed33 wallet2: fix for loading settings of key reuse mitigation (stoffu)
| * | wallet2: fix for loading settings of key reuse mitigationstoffu2018-03-221-0/+9
| |/
* / wallet: catch exceptions dealing with ringdb and warnmoneromooo-monero2018-03-212-20/+45
|/
* wallet: make the segregation height settablemoneromooo-monero2018-03-172-8/+63
| | | | via user setting first, then DNS TXT record, hardcoded fallback
* Merge pull request #3421Riccardo Spagni2018-03-171-0/+1
|\ | | | | | | 9732a37e wallet_rpc_server: add sweep_unmixable as alias for sweep_dust (moneromooo-monero)
| * wallet_rpc_server: add sweep_unmixable as alias for sweep_dustmoneromooo-monero2018-03-171-0/+1
| |
* | Add command line option allowing to restrict the default sub-address ↵stoffu2018-03-161-0/+1
|/ | | | | | lookahead in order to avoid so looooong time of set-up when creating a HW based wallet.
* Merge pull request #3336Riccardo Spagni2018-03-163-6/+6
|\ | | | | | | 57c0b1ed Fix typos in various files (Dimitris Apostolou)
| * Fix typos in various filesDimitris Apostolou2018-03-153-6/+6
| |
* | wallet: more user friendly print_ringmoneromooo-monero2018-03-165-5/+78
| | | | | | | | | | It can now take a txid (to display rings for all its inputs), and will print rings in a format that set_ring understands
* | wallet2_api: add key reuse mitigations APImoneromooo-monero2018-03-163-0/+27
| |
* | wallet2_api: add ring apimoneromooo-monero2018-03-163-0/+46
| |
* | ringdb: factor ring addition codemoneromooo-monero2018-03-161-22/+16
| |
* | wallet2_api: add blackball apimoneromooo-monero2018-03-164-0/+65
| |
* | ringdb: use the genesis block as a db namemoneromooo-monero2018-03-163-5/+7
| | | | | | | | | | | | | | This will avoid careless forkers polluting the shared database even if they make their own chain. They'll then automatically start using another subdb, and any key-reusing fork of those forks will reuse their subdbs.
* | wallet: add a set_ring commandmoneromooo-monero2018-03-164-0/+43
| | | | | | | | | | This is so one can set rings for spent key images in case the attackers don't merge the ring matching patch set.
* | wallet: make ringdb an object with database statemoneromooo-monero2018-03-164-164/+179
| |
* | wallet: add an output blackball list to avoid using those in ringsmoneromooo-monero2018-03-164-8/+153
| |
* | wallet: key reuse mitigation optionsmoneromooo-monero2018-03-162-15/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a pre-fork output is spent on both Monero and attack chain, any post-fork output can be deduced to be a fake output, thereby decreasing the effective ring size. The segregate-per-fork-outputs option, on by default, allows selecting only pre-fork outputs in this case, so that the same ring can be used when spending it on the other side, which does not decrease the effective ring size. This is intended to be SET when intending to spend Monero on the attack fork, and to be UNSET if not intending to spend Monero on the attack fork (since it leaks the fact that the output being spent is pre-fork). If the user is not certain yet whether they will spend pre-fork outputs on a key reusing fork, the key-reuse-mitigation2 option should be SET instead. If you use this option and intend to spend Monero on both forks, then spend real Monero first.
* | wallet: add shared ring databasemoneromooo-monero2018-03-166-7/+638
| | | | | | | | | | | | | | | | | | | | | | | | This maps key images to rings, so that different forks can reuse the rings by key image. This avoids revealing the real inputs like would happen if two forks spent the same outputs with different rings. This database is meant to be shared with all Monero forks which don't bother making a new chain, putting users' privacy at risk in the process. It is placed in a shared data directory by default ($HOME/.shared-ringdb on UNIX like systems). You may use --shared-ringdb-dir to override this location, and should then do so for all Monero forks for them to share the database.
* | add RPC to get a histogram of outputs of a given amountmoneromooo-monero2018-03-163-0/+76
| |
* | wallet2+cli+rpc: eliminate redundant m_http_client from cli/rpc and delegate ↵stoffu2018-03-153-6/+22
| | | | | | | | calls to wallet2
* | replace invoke_http_json("/json_rpc",...) with ↵stoffu2018-03-142-146/+104
|/ | | | invoke_http_json_rpc("/json_rpc",methodname,...) to reduce boilerplate
* Merge pull request #3398Riccardo Spagni2018-03-141-1/+1
|\ | | | | | | c577abab wallet: fix auto low priority so that it takes effect only when saved default is 0 (stoffu)
| * wallet: fix auto low priority so that it takes effect only when saved ↵stoffu2018-03-141-1/+1
| | | | | | | | default is 0
* | Merge pull request #3399Riccardo Spagni2018-03-141-1/+1
|\ \ | | | | | | | | | 1d39b265 wallet2: fix use_fork_rules() when querying version that is defined but not enabled yet (stoffu)
| * | wallet2: fix use_fork_rules() when querying version that is defined but not ↵stoffu2018-03-141-1/+1
| |/ | | | | | | enabled yet
* | Merge pull request #3386Riccardo Spagni2018-03-141-0/+5
|\ \ | | | | | | | | | 9abeff59 wallet2: handle no blocks returned in refresh to mean no new blocks (moneromooo-monero)
| * | wallet2: handle no blocks returned in refresh to mean no new blocksmoneromooo-monero2018-03-111-0/+5
| |/ | | | | | | | | This is not a possible return from the daemon, but I want this in now so all wallets handle this when the daemon starts doing so.
* | Merge pull request #3385Riccardo Spagni2018-03-141-1/+1
|\ \ | | | | | | | | | ec41006c node_rpc_proxy: fix target height caching (moneromooo-monero)