summaryrefslogtreecommitdiff
path: root/src/wallet
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #769Riccardo Spagni2016-04-022-22/+37
|\ | | | | | | | | | | b4eada9 wallet: make load_keys check types when loading JSON (moneromooo-monero) 3e55725 wallet: make the JSON reading type safe (moneromooo-monero) f8d05f3 common: new json_util.h (moneromooo-monero)
| * wallet: make load_keys check types when loading JSONmoneromooo-monero2016-03-272-22/+37
| |
* | Merge pull request #767Riccardo Spagni2016-04-022-2/+9
|\ \ | | | | | | | | | 24b3e90 Convey tx verification failure reasons to the RPC client (moneromooo-monero)
| * | Convey tx verification failure reasons to the RPC clientmoneromooo-monero2016-03-272-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows appropriate action to be taken, like displaying the reason to the user. Do just that in simplewallet, which should help a lot in determining why users fail to send. Also make it so a tx which is accepted but not relayed is seen as a success rather than a failure.
* | | wallet: fix --generate-from-keys saving as watch onlymoneromooo-monero2016-03-281-1/+1
| |/ |/|
* | wallet: pass std::function by const ref, not valuemoneromooo-monero2016-03-262-2/+2
| | | | | | | | Because we can.
* | wallet: do not leak owned amounts to the daemon unless --trusted-daemonmoneromooo-monero2016-03-264-7/+10
| | | | | | | | | | | | This will be slower, though more private. New trusted_daemon parameter to the matching RPC call, false by default.
* | wallet: change sweep_dust to sweep_unmixablemoneromooo-monero2016-03-264-16/+106
| | | | | | | | | | | | With the change in mixin rules for v2, the "annoying" outputs are slightly changed. There is high correlation between dust and unmixable, but no equivalence.
* | wallet: handle rare case where fee adjustment can bump to the next kBmoneromooo-monero2016-03-261-2/+3
| | | | | | | | It resulted in a tx being sent with too low a fee, and thus rejected.
* | wallet: factor fee calculationmoneromooo-monero2016-03-261-22/+11
|/
* wallet: add a --generate-from-json flagmoneromooo-monero2016-03-252-4/+10
| | | | | | | | | | | | | | | | | | | | It takes a filename containing JSON data to generate a wallet. The following fields are valid: version: integer, should be 1 filename: string, path/filename for the newly created wallet scan_from_height: 64 bit unsigned integer, optional password: string, optional viewkey: string, hex representation spendkey: string, hex representation seed: string, optional, list of words separated by spaces Either seed or private keys should be given. If using private keys, the spend key may be omitted (the wallet will not be able to spend, but will see incoming transactions). If scan_from_height is given, blocks below this height will not be checked for transactions as an optimization.
* Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-213-5/+2
| | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* Print stack trace upon exceptionsmoneromooo-monero2016-03-193-2/+5
| | | | Useful for debugging users' logs
* Wallet::store_to(path, password) implemented;Ilya Kitaev2016-03-165-17/+113
|
* Wallet::address implementedIlya Kitaev2016-03-162-0/+7
|
* WalletManager::recoveryWallet implementedIlya Kitaev2016-03-162-5/+42
|
* Wallet::setPassword() method for wallet2_apiIlya Kitaev2016-03-164-9/+58
|
* changes in wallet2_api + implemented WalletManager::openWalletIlya Kitaev2016-03-162-28/+130
|
* get_seed() included to interfaceIlya Kitaev2016-03-162-14/+31
|
* tests for wallet2_apiIlya Kitaev2016-03-163-6/+40
|
* wallet2 public api. initial commitIlya Kitaev2016-03-163-2/+227
|
* wallet: use minimum mixin when RPC asks for too low mixinmoneromooo-monero2016-03-111-3/+13
| | | | | | | | | After the fork, normal transfer functions called via RPC use the minimum mixin 2 if 0 or 1 is requested. While the incoming transaction may be valid (eg, it has an unmixable and at most a mixable input), it is a simple way to make sure RPC users can't get a seemingly random accept/reject behavior if they don't update their requested mixin.
* wallet_rpc_server: make use_fork_rules publicmoneromooo-monero2016-03-111-1/+2
| | | | We will need it in the wallet RPC server
* Use boost::thread instead of std::threadHoward Chu2016-03-113-6/+7
| | | | and all other associated IPC
* get_payments short IDluigi11112016-03-051-8/+17
| | | | Add support for short/integrated/encrypted IDs to get_payments RPC
* simplewallet: add a new --restore-from-keys optionmoneromooo-monero2016-02-222-0/+45
| | | | | | | It is similar in use to --restore-from-view-key, but also expects a spend private key. Requested by luigi1112, and useful to restore MyMonero wallets.
* wallet: clear missing data on rescan_bcmoneromooo-monero2016-02-151-0/+4
|
* wallet: check a key image isn't already present when adding onemoneromooo-monero2016-02-051-12/+49
| | | | | | | | | | | | | If it is, it points to reuse of a tx key, which isn't meant to happen. If it does, a key image collision means that only one of those outputs is spendable, so the wallet selects the larger amount, unless that output was spent already. This causes a discrepancy betewen reported received inputs and payment total. Since tx keys are 256 bits, this should never happen except if done on purpose, or if a sender uses a bad PRNG.
* Revert "Merge pull request #632"Riccardo Spagni2016-01-311-9/+1
| | | | | This reverts commit 58f890652e86039e98dff2d48d217c9ea9e84eca, reversing changes made to 39d73d2a27730e6a5844c259d81a0ed9d4ee3000.
* Merge pull request #634Riccardo Spagni2016-01-312-5/+14
|\ | | | | | | | | 7fc6fa3 wallet: forbid dust altogether in output selection where appropriate (moneromooo-monero) 5e1a739 blockchain: log number of outputs available for a new tx (moneromooo-monero)
| * wallet: forbid dust altogether in output selection where appropriatemoneromooo-monero2016-01-312-5/+14
| |
* | Merge pull request #633Riccardo Spagni2016-01-311-0/+2
|\ \ | | | | | | | | | 80882ac wallet: guard against exception in process_blocks (moneromooo-monero)
| * | wallet: guard against exception in process_blocksmoneromooo-monero2016-01-301-0/+2
| |/ | | | | | | | | If an exception occurs, the thread needs to be joined, or it will be deleted while still live, and terminate the process.
* | Merge pull request #632Riccardo Spagni2016-01-311-1/+9
|\ \ | | | | | | | | | 2cf8b32 wallet: guard against exception in process_blocks (moneromooo-monero)
| * | wallet: guard against exception in process_blocksmoneromooo-monero2016-01-301-1/+9
| |/ | | | | | | | | If an exception occurs, the thread needs to be joined, or it will be deleted while still live, and terminate the process.
* / wallet: detect and handle failed outgoing transfersmoneromooo-monero2016-01-293-2/+81
|/ | | | | When a transaction is not found in the pool anymore, it is marked as failed, and displayed as such in show_transfers.
* Fix V1/V2 use of hard fork related parametersmoneromooo-monero2016-01-292-5/+9
| | | | | Some of it uses hardcoded height, which will need some thinking for next (voted upon) fork.
* wallet2: update spent comparison now that we have two spent statesmoneromooo-monero2016-01-241-1/+1
|
* wallet2: decide at runtime which upper tx size to usemoneromooo-monero2016-01-102-6/+20
| | | | | | | | The value will be different depending on whether we've reached the first hard fork, which allows a larger size, or not. This fixes transactions being rejected by the daemon on mainnet where the first hard fork is not yet active.
* rpc: is_key_image_spent now checks the tx pool toomoneromooo-monero2016-01-051-3/+3
|
* Merge pull request #584Riccardo Spagni2015-12-311-1/+3
|\ | | | | | | 5c67c48 wallet: don't forget to close the file after storing cache (moneromooo-monero)
| * wallet: don't forget to close the file after storing cachemoneromooo-monero2015-12-311-1/+3
| | | | | | | | | | Also add some flags to open, as epee's save_string_to_file does, to truncate file, etc.
* | updated copyright yearRiccardo Spagni2015-12-318-8/+8
| |
* | wallet: add a rescan_bc command and rescan_blockchain RPCmoneromooo-monero2015-12-305-0/+56
| | | | | | | | | | | | | | | | | | Blockchain hashes and key images are flushed, and blocks are pulled anew from the daemon. The console command is shortened to match bc_height. This should make it a lot easier on users who are currently told to remove this particular cache file but keep the keys one, etc, etc.
* | wallet: protect against exceptions in the block pull threadmoneromooo-monero2015-12-302-14/+30
|/ | | | | This can happen when the daemon exits, which would also cause the wallet to crash via unhandled exception
* no longer need to pass the size to rapidjsonRiccardo Spagni2015-12-301-2/+2
|
* Merge pull request #575Riccardo Spagni2015-12-301-6/+8
|\ | | | | | | 61befc2 wallet: store cache to file without unnecessary memory buffer (moneromooo-monero)
| * wallet: store cache to file without unnecessary memory buffermoneromooo-monero2015-12-291-6/+8
| |
* | wallet_rpc_server: exit async, so we reply to stop_wallet RPCmoneromooo-monero2015-12-282-1/+11
| | | | | | | | Reported by saddam
* | wallet: do not return error if incoming_transfers finds nonemoneromooo-monero2015-12-281-5/+0
|/ | | | reported by saddam