aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.h
Commit message (Collapse)AuthorAgeFilesLines
...
* | extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-081-2/+2
|/
* Merge pull request #1640Riccardo Spagni2017-02-041-0/+1
|\ | | | | | | f97526e6 simplewallet: option to always ask password for any crytical operations (kenshi84)
| * simplewallet: option to always ask password for any crytical operationskenshi842017-02-031-0/+1
| |
* | Add change_password for simplewalletAshley Perpetual2017-01-291-0/+1
|/
* Change logging to easylogging++moneromooo-monero2017-01-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #1559Riccardo Spagni2017-01-131-0/+1
|\ | | | | | | db56a03f Wallet2 + API: Callbacks for unconfirmed transfers (Jaquee)
| * Wallet2 + API: Callbacks for unconfirmed transfersJaquee2017-01-121-0/+1
| |
* | wallet cli: print originating block heights of mixin keys when making transferkenshi842017-01-091-1/+3
|/
* Merge pull request #1537Riccardo Spagni2017-01-081-0/+1
|\ | | | | | | | | c2135082 simplewallet: add a show_transfer <txid> command (moneromooo-monero) 19c4041d wallet_rpc_server: new RPC call to get a transfer by txid (moneromooo-monero)
| * simplewallet: add a show_transfer <txid> commandmoneromooo-monero2017-01-081-0/+1
| |
* | Merge pull request #1496Riccardo Spagni2017-01-081-0/+1
|\ \ | | | | | | | | | adee1644 wallet cli: print unspent outputs with histogram (kenshi84)
| * | wallet cli: print unspent outputs with histogramkenshi842016-12-261-0/+1
| |/
* | Merge pull request #1482Riccardo Spagni2017-01-081-0/+1
|\ \ | | | | | | | | | 38f00d07 wallet cli: viewing and editing address book (kenshi84)
| * | wallet cli: viewing and editing address bookkenshi842016-12-211-0/+1
| |/
* / make openalias also available for solo miner; introduce namespace ↵kenshi842016-12-211-1/+0
|/ | | | tools::dns_utils; support integrated address with dns lookup
* Refactored password prompting for walletsLee Clagett2016-12-191-0/+3
|
* wallet cli: donate commandKenshi Takayama2016-12-151-0/+1
|
* wallet: auto sync outputs and key images in cold signing filesmoneromooo-monero2016-11-161-1/+1
| | | | | | | | | When passing around unsigned and signed transactions, outputs and key images are passed along (outputs are passed along unsigned transactions from the hot wallet to the cold wallet, key images are passed along with signed transations from the cold wallet to the hot wallet), to allow more user friendly syncing between hot and cold wallets.
* Created monero-wallet-rpc, moving functionality from monero-wallet-cliLee Clagett2016-11-101-14/+7
|
* Merge pull request #1281Riccardo Spagni2016-11-011-0/+2
|\ | | | | | | bb560dd wallet: new import_outputs/export_outputs commands (moneromooo-monero)
| * wallet: new import_outputs/export_outputs commandsmoneromooo-monero2016-10-301-0/+2
| | | | | | | | | | | | | | | | The intended use is to export outputs from a hot wallet, which can scan incoming transfers from the network, and import them in the cold wallet, which can't. The cold wallet can then compute key images for those outputs, which can then be exported with export_key_images, etc.
* | wallet: print tx overview on submit_transfer toomoneromooo-monero2016-10-301-0/+2
|/ | | | | This is on the potentially compromised wallet, but still guards against stupid mistakes.
* Merge pull request #1179Riccardo Spagni2016-10-041-0/+1
|\ | | | | | | | | | | | | | | | | | | | | 714ee99 Fix description for locked_transfer (Oyvind Kvanes) 71538f3 Rename to lockblocks and add max value (Oyvind Kvanes) 68ac060 Fix locked_transfer (Oyvind Kvanes) 7d020bd Add locked_transfer (Oyvind Kvanes) d5f918a Revert transfer_main in simplewallet (Oyvind Kvanes) 3451963 Add motifications to test out locked_transfer (Oyvind Kvanes) e5e6d88 Add more information to transaction in wallet (Oyvind Kvanes) 9b8a062 Make a small test change (Oyvind Kvanes)
| * Revert transfer_main in simplewalletOyvind Kvanes2016-09-281-0/+1
| |
* | Merge pull request #1160Riccardo Spagni2016-10-041-0/+1
|\ \ | | | | | | | | | 80b4da3 wallet: wallet option to confirm transfers with no payment id (moneromooo-monero)
| * | wallet: wallet option to confirm transfers with no payment idmoneromooo-monero2016-10-011-0/+1
| |/ | | | | | | | | | | set confirm-missing-payment-id 0|1 Defaults to true.
* / wallet: cold wallet transaction signingmoneromooo-monero2016-09-271-0/+3
|/ | | | | | | | | | | | | | | | | | | This change adds the ability to create a new unsigned transaction from a watch only wallet, and save it to a file. This file can then be moved to another computer/VM where a cold wallet may load it, sign it, and save it. That cold wallet does not need to have a blockchain nor daemon. The signed transaction file can then be moved back to the watch only wallet, which can load it and send it to the daemon. Two new simplewallet commands to use it: sign_transfer (on the cold wallet) submit_transfer (on the watch only wallet) The transfer command used on a watch only wallet now writes an unsigned transaction set in a file called 'unsigned_monero_tx' instead of submitting the tx to the daemon as a normal wallet does. The signed tx file is called 'signed_monero_tx'.
* wallet: change priority/fee to ArticMine's recommendationmoneromooo-monero2016-09-161-1/+1
| | | | | | | | | | | We keep 1, 2, 3 multipliers till the fee decrase from 0.01/kB to 0.002/kB, where we start using 1, 20, 166 multipliers. This ensures the higher multiplier will compensate for the block reward penalty when pushing past 100% of the past median. The fee-multiplier wallet setting is now rename to priority, since it keeps its [0..3] range, but maps to different multiplier values.
* wallet: factor transfer_rct code with transfer codemoneromooo-monero2016-08-281-1/+0
| | | | | | | The "transfer" simplewallet command is renamed to "transfer_original". "transfer_new" is renamed "transfer", "transfer_rct" is removed, and the new "transfer" now selects rct or non rct transactions based on the current block height.
* add rct to the protocolmoneromooo-monero2016-08-281-3/+4
| | | | | It is not yet constrained to a fork, so don't use on the real network or you'll be orphaned or rejected.
* Merge pull request #952Riccardo Spagni2016-08-111-0/+1
|\ | | | | | | | | 709c724 Better fix (#4) (hyc) d2644c1 fix restore-deterministic height (luigi1111)
| * Better fix (#4)hyc2016-08-091-0/+1
| |
* | Merge pull request #949Riccardo Spagni2016-08-111-5/+7
|\ \ | | | | | | | | | da1007f simplewallet: make the refresh thread into more generic idle thread (moneromooo-monero)
| * | simplewallet: make the refresh thread into more generic idle threadmoneromooo-monero2016-08-071-5/+7
| |/
* / Fix #864guzzi_jones2016-08-011-0/+1
|/ | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 9af9e4223b58bbb65a3519af2c2bfc273cbd23d6 fixed some formatting commit c7920e1cf88ff46eb9294101344d9a567f22e2da Merge: 97eb28b 1da1c68 fix#864 fix using boolean commit 97eb28ba5dd49ddde8c8785f39b24d955e5de31c Fix #864 boolean value used to verify on new wallet commit 1da1c68bd3a9a373c70482b6e6e95251096149f1 fix #864 changed to boolean to prompt for verify commit 5bee96652434762d2c91ce31a1b1c9f169446ddc fix 864; made variable names easier for understanding branching. commit 45715960d30293f781b2ff9e5e647c2ec893f4a3 fix #864; allow password to be entered twice for new wallets for verification. fix #864 password entry verification; ammended boolean fix #864 ; default constructor for password_container should set verify=true
* wallet: new {ex,im}port_key_images commands and RPC callsmoneromooo-monero2016-07-241-0/+2
| | | | | | They are used to export a signed set of key images from a wallet with a private spend key, so an auditor with the matching view key may see which of those are spent, and which are not.
* Merge pull request #902Riccardo Spagni2016-07-201-1/+2
|\ | | | | | | 014f3a0 Add a daemon RPC version, and make simplewallet check it (moneromooo-monero)
| * Add a daemon RPC version, and make simplewallet check itmoneromooo-monero2016-07-101-1/+2
| | | | | | | | | | If the version is different, simplewallet will refuse to use that daemon, unless --allow-mismatched-daemon-version is used.
* | wallet: add command and RPC to sign/verify datamoneromooo-monero2016-07-191-0/+2
|/ | | | | | | | | Signing is done using the spend key, since the view key may be shared. This could be extended later, to let the user choose which key (even a per tx key). simplewallet's sign/verify API uses a file. The RPC uses a string (simplewallet can't easily do strings since commands receive a tokenized set of arguments).
* wallet: add a fee multipliermoneromooo-monero2016-06-221-0/+1
| | | | | | | Fee can now be multiplied by 2 or 3, if users want to give priority to their transactions. There are only three levels to avoid too much fingerprinting. Default is 1 (minimum fee). The default multiplier can be set by "set fee-multiplier X".
* simplewallet: add a status commandmoneromooo-monero2016-06-201-0/+1
| | | | | It matches the daemon, and should allow people who're suspicious of the background refresh to know they're synced.
* wallet: allow attaching notes to txidsmoneromooo-monero2016-04-261-0/+2
|
* Merge pull request #817Riccardo Spagni2016-04-261-0/+1
|\ | | | | | | 4b1c0d6 simplewallet: some background refresh threading fixes (moneromooo-monero)
| * simplewallet: some background refresh threading fixesmoneromooo-monero2016-04-211-0/+1
| | | | | | | | | | | | | | | | We want to lock operations which access the blockchain in wallet2. We also want the background refresh to happen again when we cancel a foreground refresh. Wrap the locking setup in a macro so it doesn't get copy/pasted/mangled, and use a scope exit trick to ensure it's always properly restored.
* | Merge pull request #815Riccardo Spagni2016-04-261-0/+2
|\ \ | | | | | | | | | b0850a9 wallet: add a new sweep_all command and RPC command (moneromooo-monero)
| * | wallet: add a new sweep_all command and RPC commandmoneromooo-monero2016-04-191-0/+2
| |/ | | | | | | | | | | This sends all outputs in a wallet to a given address, alleviating the difficulty people have had trying to send all monero but being left with some small amount left.
* / Add --restore-height optionHoward Chu2016-04-171-0/+1
|/ | | | For specifying the block height from which to start a restore
* wallet: change sweep_dust to sweep_unmixablemoneromooo-monero2016-03-261-1/+1
| | | | | | 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: add a --generate-from-json flagmoneromooo-monero2016-03-251-0/+2
| | | | | | | | | | | | | | | | | | | | 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.
* Use boost::thread instead of std::threadHoward Chu2016-03-111-3/+3
| | | | and all other associated IPC