aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-02-22move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero1-2/+0
This avoids the need to define that variable in every program which uses epee.
2016-02-20simplewallet: wording change for single tx confirmationmoneromooo-monero1-3/+12
2016-02-05simplewallet: check watch-only view key matches standard addressmoneromooo-monero1-0/+11
2016-01-30simplewallet: show_transfers can now show just failed txesmoneromooo-monero1-6/+13
2016-01-29wallet: detect and handle failed outgoing transfersmoneromooo-monero1-1/+2
When a transaction is not found in the pool anymore, it is marked as failed, and displayed as such in show_transfers.
2016-01-29Fix V1/V2 use of hard fork related parametersmoneromooo-monero1-1/+2
Some of it uses hardcoded height, which will need some thinking for next (voted upon) fork.
2016-01-25simplewallet: remove leftover command line refresh-type handlingmoneromooo-monero2-5/+0
2016-01-09use load_file_to_string and exit with error on file read errorsFabian Hirschmann1-3/+9
2016-01-09remove new lines at the end of the password onlyFabian Hirschmann1-2/+2
2016-01-09add --password-file optionFabian Hirschmann1-0/+19
2015-12-31update versionRiccardo Spagni1-3/+3
2015-12-31updated copyright yearRiccardo Spagni5-5/+5
2015-12-30wallet: add a rescan_bc command and rescan_blockchain RPCmoneromooo-monero2-13/+28
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.
2015-12-19Add missing semicolons after log statementsmoneromooo-monero1-1/+1
2015-12-11Stop displaying internal commands for --helpluigi11111-1/+1
Displaying in-program commands with --help doesn't match daemon behaviour (or make sense)
2015-12-11simplewallet help & error cleanupluigi11111-120/+120
Typos, grammar, consistency. I don't claim to have gotten everything.
2015-12-05wallet: make the wallet refresh type a wallet settingmoneromooo-monero2-33/+78
instead of a command line setting. It makes sense that is is a long lived setting.
2015-11-30Merge pull request #512Riccardo Spagni1-8/+8
36a298c simplewallet: add tr markers in a few missing user visible strings (moneromooo-monero)
2015-11-29wallet: cancellable refreshmoneromooo-monero2-7/+50
^C while in manual refresh will cancel the refresh, since that's often an annoying thing to have to wait for. Also, a manual refresh command will interrupt any running background refresh and take over, rather than wait for the background refresh to be done, and look to be hanging.
2015-11-30Merge pull request #511Riccardo Spagni1-1/+1
66849ac simplewallet: swap colors in show_transfers (moneromooo-monero)
2015-11-29simplewallet: add tr markers in a few missing user visible stringsmoneromooo-monero1-8/+8
2015-11-29simplewallet: swap colors in show_transfersmoneromooo-monero1-1/+1
Green is now used for incoming transfers, and magenta for outgoing transfers. This is consistent to the scheme used by other logging.
2015-11-28wallet: optional automatic refresh from the daemonmoneromooo-monero2-9/+113
The daemon will be polled every 90 seconds for new blocks. It is enabled by default, and can be turned on/off with set auto-refresh 1 and set auto-refresh 0 in the wallet.
2015-11-22wallet: make the refresh optimizations selectable via command linemoneromooo-monero2-3/+42
Take the opportunity to add a no-coinbase case too, for even faster sync when an address is known to never have mined to.
2015-11-22Merge pull request #496Riccardo Spagni2-16/+35
db1fb66 wallet: storing outgoing tx info now defaults to enabled (moneromooo-monero) 9156ba3 wallet: rename store-tx-keys to store-tx-info (moneromooo-monero) b3d4d41 wallet: improve show_transfers (moneromooo-monero) 725ae4e wallet: use incoming blocks to keep track of payments too (moneromooo-monero) 00790a8 simplewallet: lessen display flicker confusion (moneromooo-monero)
2015-11-22wallet: rename store-tx-keys to store-tx-infomoneromooo-monero2-7/+7
With backward compatibility
2015-11-22wallet: improve show_transfersmoneromooo-monero1-8/+25
More information is now saved and displayed
2015-11-21wallet: use incoming blocks to keep track of payments toomoneromooo-monero1-4/+6
2015-11-21simplewallet: lessen display flicker confusionmoneromooo-monero1-2/+2
Height seemed to be flying all over the place on a rescan here. Logging to a file shows the heights are actually correct, and this is some kind of screen refresh artifact. Flush after \r and update less often to reduce this effect a lot.
2015-11-21Fix startup crash when using a locale boost does not likemoneromooo-monero1-1/+4
There are various locale related bugs in various versions of boost, where exceptions are thrown in boost::filesystem APIs when the current locale is not to boost's liking. It's not clear what "not to boost's liking" means in detail, though "en" and "en_US.UTF-8" are not to its liking. Fix it by running a test function that's known to throw in such a case, and resetting LANG and LC_ALL to C if an exception is thrown. In simplewallet, the locale is queried before that so the correct translations will still be used.
2015-11-15wallet: track outgoing payments and add a show_transfers commandmoneromooo-monero2-0/+100
It's a user friendly display of incoming and outgoing transfers, listed by height, within an optional height range.
2015-10-30simplewallet: add a set default-mixin commandmoneromooo-monero2-3/+77
The default default mixin is 4. It can now be changed per wallet.
2015-10-27Fix a possibly-unused warning, and rationalize typesmoneromooo-monero1-3/+3
2015-10-14simplewallet: add a check_tx_key commandmoneromooo-monero2-0/+106
It allows one to check the amount of monero sent to a particular address in a particular transaction, given that transaction's tx key
2015-10-12simplewallet: hide start_mining behind --trusted-daemonmoneromooo-monero1-0/+6
because it leaks your standard address
2015-10-11Merge pull request #427Riccardo Spagni2-0/+10
df8a110 simplewallet: add a --trusted-daemon flag (moneromooo-monero)
2015-10-11simplewallet: add a --trusted-daemon flagmoneromooo-monero2-0/+10
It allows enabling the rescan_spent command only for trusted daemon
2015-10-11simplewallet: bump default mixin from 3 to 4moneromooo-monero1-1/+1
As recommended in MRL-0004
2015-08-26Merge pull request #390Riccardo Spagni1-1/+1
5dc53c2 wallet: use mutex protected random generation api (moneromooo-monero)
2015-08-26wallet: use mutex protected random generation apimoneromooo-monero1-1/+1
2015-08-24simplewallet: add a store-tx-keys option to setmoneromooo-monero2-1/+46
To enable storing tx keys in the (now encrypted) wallet cache.
2015-08-19make tx keys available to the usermoneromooo-monero2-0/+33
They are also stored in the cache file, to be retrieved using a new get_tx_key command.
2015-08-16simplewallet: Use default log file name when executable's file path is unknownwarptangent1-3/+21
Default to "simplewallet.log" in current directory when file path isn't obtained from epee. In this situation previously, it defaulted to the file name of ".log" ("" + ".log") in the current directory. (Thanks to @sammy007 for reporting bug.) An earlier version yet used "" + "/" + ".log" = "/.log", which resulted in silently not logging in most cases, due to lack of permission. Test: PATH=$PATH:</path/to/simplewallet/folder> && simplewallet --wallet-file /dev/null This results in epee not finding the executable's file path, so simplewallet will now use a default log filename.
2015-08-11wallet: new rescan_spent command to update outputs' spent statusmoneromooo-monero2-0/+41
This obsoletes the need for a lengthy blockchain rescan when a transaction doesn't end up in the chain after being accepted by the daemon, or any other reason why the wallet's idea of spent and unspent outputs gets out of sync from the blockchain's.
2015-08-09encrypted payment ids are now 64 bit, instead of 256 bitmoneromooo-monero1-28/+30
Pros: - smaller on the blockchain - shorter integrated addresses Cons: - less sparseness - less ability to embed actual information The boolean argument to encrypt payment ids is now gone from the RPC calls, since the decision is made based on the length of the payment id passed.
2015-08-09Encrypted payment IDsmoneromooo-monero1-2/+8
A payment ID may be encrypted using the tx secret key and the receiver's public view key. The receiver can decrypt it with the tx public key and the receiver's secret view key. Using integrated addresses now cause the payment IDs to be encrypted. Payment IDs used manually are not encrypted by default, but can be encrypted using the new 'encrypt_payment_id' field in the transfer and transfer_split RPC calls. It is not possible to use an encrypted payment ID by specifying a manual simplewallet transfer/transfer_new command, though this is just a limitation due to input parsing.
2015-07-22wallet: new transaction construction algorithmmoneromooo-monero2-2/+19
It should avoid a lot of the issues sending more than half the wallet's contents due to change. Actual output selection is still random. Changing this would improve the matching of transaction amounts to output sizes, but may have non obvious effects on blockchain analysis. Mapped to the new transfer_new command in simplewallet, and transfer uses the existing algorithm. To use in RPC, add "new_algorithm: true" in the transfer_split JSON command. It is not used in the transfer command.
2015-07-19simplewallet: fix context/string order mismatchmoneromooo-monero1-1/+1
2015-07-19simplewallet: use unsigned long long instead of size_t in messagemoneromooo-monero1-4/+4
boost doesn't support %zu for size_t, and the previous change to %u could technically lose bits (though it would require splitting a transfer into 4 billion transactions, which seems unlikely).
2015-07-18wallet: add boolean to always confirm transactions with the usermoneromooo-monero2-5/+71
This can be useful if you want to be given a veto over the tx fee, or if you want to see what a tx fee would be without actually sending.
2015-07-18boost doesn't like %zu for size_t, replace with %umoneromooo-monero1-2/+2
2015-07-14Translatable strings for simplewalletmoneromooo-monero2-247/+267
The system is mostly the Qt system, but we don't use Qt to avoid the dependencies. See README.i18n for details.
2015-06-20simplewallet: allow creating a wallet from a public address and view secret keymoneromooo-monero2-8/+81
The needed information is supplied via a triple: --generate-from-view-key address:viewkey:filename
2015-06-20simplewallet: forbid seed commands for watch only walletsmoneromooo-monero1-0/+10
They do not make sense
2015-06-14Merge pull request #318Riccardo Spagni3-8/+14
fb20071 simplewallet: allow a different password for the watch-only wallet (moneromooo-monero)
2015-06-12simplewallet: allow integrated_address to generate a random payment idmoneromooo-monero1-4/+11
2015-06-12Integrated addresses (standard address plus payment id)moneromooo-monero2-2/+63
2015-06-12simplewallet: allow a different password for the watch-only walletmoneromooo-monero3-8/+14
2015-05-31wallet: add watch only wallet supportmoneromooo-monero2-1/+40
The new save_watch_only saves a copy of the keys file without the spend key. It can then be given away to be used as a normal keys file, but with no spend ability.
2015-05-30wallet: add a sweep_dust commandmoneromooo-monero2-1/+129
Sends all the dust to your own wallet. May fail (if the fee required is more than the dust total). May end up paying most of the dust in fees. Unlocked dust total is now also displayed in "balance".
2015-05-28simplewallet: Update and add log optionswarptangent1-9/+29
Replace --set_log with --log-level for consistency. Show default log level in usage. Add --log-file for specifying log file path. Document log file path. Display log file path at startup.
2015-05-28simplewallet: Don't log view key and spend keywarptangent1-4/+7
As with display of seed, don't log view key and spend key. Includes: - display of viewkey at wallet creation - "viewkey" command output - "spendkey" command output
2015-05-19Add spendkey dump to simplewalletluigi11112-0/+9
2015-04-01remerged; commands JSON. logging upgrade. doxygenrfree2monero1-0/+2
2015-04-01Merge remote-tracking branch 'monero-official/master' into network-1.6-work1rfree2monero1-11/+16
2015-03-10default mix factor in simplewalletsmooth1-10/+16
2015-02-202014 network limit 1.2 +utils +toc -doc -drmonerorfree2monero1-0/+1
new update of the pr with network limits more debug options: discarding downloaded blocks all or after given height. trying to trigger the locking errors. debug levels polished/tuned to sane values. debug/logging improved. warning: this pr should be correct code, but it could make an existing (in master version) locking error appear more often. it's a race on the list (map) of peers, e.g. between closing/deleting them versus working on them in net-limit sleep in sending chunk. the bug is not in this code/this pr, but in the master version. the locking problem of master will be fixed in other pr. problem is ub, and in practice is seems to usually cause program abort (tested on debian stable with updated gcc). see --help for option to add sleep to trigger the error faster.
2015-02-202014 network limit 1.0a +utils +toc -doc -drmonerorfree2monero1-0/+1
commands and options for network limiting works very well e.g. for 50 KiB/sec up and down ToS (QoS) flag peer number limit TODO some spikes in ingress/download TODO problems when other up and down limit added "otshell utils" - simple logging (with colors, text files channels)
2015-01-11Add a --restricted-rpc flag to simplewalletmoneromooo-monero1-1/+4
It restricts RPC to a subset of "view only" commands. Kind of like a poor man's view key replacement.
2015-01-02year updated in licenseRiccardo Spagni5-5/+5
2014-12-13Merge pull request #203Riccardo Spagni1-4/+24
583cf0a Document existing function (warptangent) 95eb944 Repeat prompt for wallet path if invalid (warptangent)
2014-12-11Repeat prompt for wallet path if invalidwarptangent1-4/+24
simplewallet run without a wallet path argument should prompt again if an invalid path was entered. Validity here currently means the string isn't empty.
2014-12-08Add simple_wallet::seed_set_language methodwarptangent2-0/+72
Add simple_wallet::set_variable method to provide top-level "set" command and support "set seed language" command.
2014-12-06Checking and handling for deterministic vs non-deterministic walletwarptangent1-19/+35
simple_wallet::seed() - Check that wallet is deterministic. simple_wallet::new_wallet() - Prompt for seed language only if it's a non-deterministic wallet, along with previous conditions. simple_wallet::open_wallet() - Fixed check for deterministic wallet (flag based on command line non-deterministic argument was used before, but it's inapplicable to opening an existing wallet). - As with deterministic wallet, non-deterministic also included to be rewritten to new JSON format file. That's what's done for newly generated non-deterministic wallets, so old versions should be updated to same format.
2014-12-06indentationwarptangent1-1/+1
2014-12-06replace lines with call to recently added print_seed()warptangent1-4/+1
2014-12-02Merge pull request #186Riccardo Spagni1-3/+0
3300ae5 remove unused display variable (warptangent) 0e0e557 return true on success (warptangent) 2e11eb1 deterministic wallet use of twelve words fixed (warptangent) 21a3c46 ensure that keccak is called on view spend key, not a possibly pre-sc_reduce32 version of it - for deriving view secret key (warptangent)
2014-12-01prompt for seed language and error handlingwarptangent1-0/+7
- "seed" simplewallet command was only displaying seed if wallet was newly generated
2014-12-01remove unused display variablewarptangent1-3/+0
2014-12-01Merge pull request #1Riccardo Spagni2-21/+54
f1eaf88 Prints seed after wallet upgrade. Removed iostream include. (Oran Juice) 70971be Doxygen comments (Oran Juice) 031ca23 Rewrites to old wallet file correctly (Oran Juice) 1f833dc Doxygen comments in (Oran Juice) 0bd88ff Writes seed language while generating wallet. Wallet open fix. (Oran Juice) 09a659e Stores seed language in wallet file. added rapidjson. Yet to test backward compatibility (Oran Juice)
2014-11-26Merge pull request #188Riccardo Spagni1-3/+2
dde7897 Disable legacy fees for now (iamsmooth) cc74b43 Remove DEFAULT_FEE, add temporary acceptance of too-small per-kb fee >= 0.1, denominations based on DEFAULT_DUST_THRESHOLD, document fee arg to create_transactions as unused, se DEFAULT_DUST_THRESHOLD for wallet dust collection instead of calcualted tx fee (iamsmooth)
2014-11-09Remove DEFAULT_FEE, add temporary acceptance of too-small per-kb fee >= 0.1, ↵iamsmooth1-3/+2
denominations based on DEFAULT_DUST_THRESHOLD, document fee arg to create_transactions as unused, se DEFAULT_DUST_THRESHOLD for wallet dust collection instead of calcualted tx fee
2014-10-24cmake: fix up link linesBen Boeckel1-1/+1
2014-10-24cmake: support 2.8.7Ben Boeckel1-1/+1
Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
2014-10-23cmake: handle private vs. public headersBen Boeckel1-2/+7
2014-10-23cmake: refactor common code with executablesBen Boeckel1-18/+1
2014-10-23cmake: put each library into its own directoryBen Boeckel1-0/+70
This cleans up the CMake code and shows patterns more easily (to be refactored in the next commit).
2014-10-19Prints seed after wallet upgrade. Removed iostream include.Oran Juice2-4/+26
2014-10-19Rewrites to old wallet file correctlyOran Juice1-1/+1
2014-10-18Writes seed language while generating wallet. Wallet open fix.Oran Juice1-17/+28
2014-10-18Stores seed language in wallet file. added rapidjson. Yet to test backward ↵Oran Juice1-2/+2
compatibility
2014-10-05split mnemonic printout over 3 linesRiccardo Spagni1-0/+4
2014-10-05fixed conflict in CMakeListsRiccardo Spagni2-14/+100
2014-10-03cleaned up OpenAlias messages in simplewalletRiccardo Spagni1-6/+6
2014-10-03Don't show Old English as an available optionOran Juice1-1/+1
2014-10-02Restructured language sources to be singletonsOran Juice2-36/+16
2014-10-01simplewallet ignoring testnet port in RPC modeRiccardo Spagni1-1/+1
2014-09-30Change seed message to '25' words from '24' wordsOran Juice1-2/+2
2014-09-28Merge with origin/masterOran Juice1-2/+56
2014-09-28Minor comment changes and code clean-upOran Juice1-3/+3
2014-09-28CRC Checksum for word seed. Gives a new 25 word seed with checksum if one ↵Oran Juice1-6/+10
without checksum is passed. Doxygen comment fix.
2014-09-27Doxygen comments inOran Juice2-6/+36
2014-09-27Informs about old style mnemonics from older wallet and provides a new one. ↵Oran Juice1-2/+8
CMakeLists.txt update.
2014-09-27Throw error when word list file is empty and quick bug fixOran Juice1-7/+31
2014-09-26Supports wallet restorationOran Juice1-4/+6
2014-09-25Accepts seed language choice from user.Oran Juice2-0/+39
2014-09-24Copies word lists directory to the location of the executableOran Juice1-0/+1
2014-09-23Fixed artifacts from cherry-picking devel->masterThomas Winget1-2/+2
2014-09-23change to allow (at least a bit) for multiple TXT recordsThomas Winget1-7/+10
2014-09-23Simplewallet should now resolve urls to addressesThomas Winget1-2/+53
Simplewallet should now do a DNS query on an address if it fails to convert the given string to a binary representation of an address (base58->binary). It will prompt the user, telling of what the "url" passed was, what monero address it translated to, and whether or not DNSSEC validation was a success, and ask for a confirmation that these are all acceptable.
2014-09-23Moved mnemonics code to src/mnemonicsOran Juice1-1/+1
2014-09-15Separate testnet address prefixZachary Michaels1-6/+9
2014-09-15Separate rpc port for testnetZachary Michaels1-3/+7
2014-09-15Reorganize testnet constantsZachary Michaels1-2/+2
2014-09-15Add testnet flagZachary Michaels2-9/+14
Source: cryptonotefoundation
2014-09-12versioning now includes the commit hash, or -final for tagged releasesRiccardo Spagni1-3/+3
2014-08-05added viewkey command to CLIJakob Lind2-0/+9
2014-08-03refactoring. get seed code in wallet2Jakob Lind1-12/+3
2014-08-03check its deterministic wallet before printing seedJakob Lind1-3/+19
when running the seed command
2014-08-03remove help text about seed only displayed onceJakob Lind1-2/+2
2014-08-03added seed command to get deterministic seed.Jakob Lind2-0/+12
not yet password protected
2014-08-01#36 simplewallet refresh include optional height paramJakob Lind1-1/+14
height param is used optionally in refresh command TODO: This should also be the default behaviour when generating a new wallet.
2014-07-23License updated to BSD 3-clausefluffypony4-13/+116
2014-07-17Merge pull request #63 from mikezackles/bytecoin_for_mergemikezackles1-2/+2
Misc fixes from bytecoin
2014-07-01Fix thread count argument handling in simplewalletZachary Michaels1-2/+2
2014-06-30wallet RPC converted to use new transaction semanticsThomas Winget2-165/+32
wallet RPC now uses wallet2::create_transactions and wallet2::commit_tx instead of wallet2::transfer. This made it possible to add the RPC call /transfer_split, which will split transactions automatically if they are too large. The old call to /transfer will return an error stating to use /transfer_split if multiple transactions are needed to fulfill the request.
2014-06-30removed erroneous printing of newlinesThomas Winget1-1/+0
2014-06-30removed some debugging code (really stupid printf-style debuggng..Thomas Winget1-11/+2
2014-06-30Transaction splitting *seems* to be working!!!tom1-6/+21
2014-06-30Added confirmation prompt if transactions are to be splitThomas Winget1-0/+16
2014-06-30added back successful tx message. oops.Thomas Winget1-1/+3
2014-06-30up tx splits limit 5 -> 30Thomas Winget1-1/+1
2014-06-30final changes to get transaction splitting building. needs testing.Thomas Winget2-16/+82
2014-06-30working on dividing functions in prep for tx splittingtom2-9/+84
2014-06-12changed wallet mnemonic to use cout so it doesn't print to logThomas Winget1-1/+2
2014-06-12changed text a bit moretom1-10/+11
2014-06-12changed some print messagestom1-2/+2
2014-06-12allow two-random-numbers wallet generation (but not as default)Thomas Winget2-36/+46
2014-06-12reworked command line args for simplewallet.Thomas Winget2-19/+30
--generate-new-wallet and --wallet-file are now properly mutually-exclusive.
2014-06-12DRY cin input_line (and test replacement of non-DRY usage)Thomas Winget1-6/+4
2014-06-12more pointer-based derpThomas Winget1-5/+10
2014-06-12fixed some pointer- and loop-based derpsThomas Winget1-0/+2
2014-06-12builds, but doesn't link. other than that, electrum-style recovery ↵Thomas Winget1-1/+9
implemented (but not tested\!)
2014-06-12most functions prototyped/modified for wallet recoveryThomas Winget2-4/+41
2014-06-02Added 'payment_id' optional argument to 'transfer' wallet RPC methodNeozaru1-15/+2
2014-06-01Merge bitmonero@monero-projectNeozaru2-18/+16
2014-05-28simplewallet returns 0 when no errorNeozaru1-1/+1
2014-05-28Added '--exit-after-cmd' option in simplewalletNeozaru1-1/+9
2014-05-28Fixed return status for '--help'. Fixed wallet name (use macro instead of ↵Neozaru1-2/+2
'bytecoin wallet'
2014-05-26Merge remote-tracking branch 'origin/master' into 0.8.8updatemydesktop1-5/+11
Latest PR merged into experimental branch.
2014-05-26simplewallet exits when COMMAND is given as a command-line argumentpaybee1-5/+11
2014-05-250.8.8updatemydesktop2-6/+6
2014-05-16Added 'save_bc' command in daemon for saving blockchain remotelyNeozaru2-0/+18
2014-05-03initial [broken] updatemydesktop2-18/+148
2014-04-30various fixes to allow mac osx compilationmydesktop1-1/+1
2014-04-07Improvements in JSON RPCAntonio Juarez1-11/+15
2014-04-02json rpc for wallet and bugfixAntonio Juarez2-167/+564
2014-03-20some fixesAntonio Juarez2-112/+172
2014-03-03moved all stuff to githubAntonio Juarez4-0/+864