aboutsummaryrefslogtreecommitdiff
path: root/src/wallet (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-08-26Merge pull request #978Riccardo Spagni2-4/+12
99dd572 libwallet_api: tests: checking for result while opening wallet (Ilya Kitaev) bcf7b67 libwallet_api: Wallet::amountFromString fixed (Ilya Kitaev) 32bc7b4 libwallet_api: helper method to return maximumAllowedAmount (Ilya Kitaev) cbe534d libwallet_api: tests: removed logged passwords (Ilya Kitaev) b1a5a93 libwallet_api: do not store wallet on close if status is not ok (Ilya Kitaev)
2016-08-23libwallet_api: Wallet::amountFromString fixedIlya Kitaev1-1/+1
2016-08-23libwallet_api: helper method to return maximumAllowedAmountIlya Kitaev2-0/+6
2016-08-22Merge pull request #970Riccardo Spagni1-0/+3
25f529a wallet: store key images after importing them (moneromooo-monero)
2016-08-22libwallet_api: do not store wallet on close if status is not okIlya Kitaev1-3/+5
2016-08-17wallet: store key images after importing themmoneromooo-monero1-0/+3
It avoids rescan_spent resetting spent status, for example.
2016-08-17wallet: fix build on Mac and Windows (missing include)moneromooo-monero1-0/+1
Reported by RaskaRuby, tested by iDunk5400.
2016-08-11Merge pull request #948Riccardo Spagni4-57/+183
11dc091 Fake outs set is now decided by the wallet (moneromooo-monero) 1593553 new unlocked parameter to output_histogram (moneromooo-monero)
2016-08-11Fake outs set is now decided by the walletmoneromooo-monero4-52/+177
This plugs a privacy leak from the wallet to the daemon, as the daemon could previously see what input is included as a transaction input, which the daemon hadn't previously supplied. Now, the wallet requests a particular set of outputs, including the real one. This can result in transactions that can't be accepted if the wallet happens to select too many outputs with non standard unlock times. The daemon could know this and select another output, but the wallet is blind to it. It's currently very unlikely since I don't think anything uses non default unlock times. The wallet requests more outputs than necessary so it can use spares if any of the returns outputs are still locked. If there are not enough spares to reach the desired mixin, the transaction will fail.
2016-08-04wallet2: if importing key images fails, print failure indexmoneromooo-monero1-1/+2
2016-08-01new unlocked parameter to output_histogrammoneromooo-monero2-5/+6
This constrains the number of instances of any amount to the unlocked ones (as defined by the default unlock time setting: outputs with non default unlock time are not considered, so may be counted as unlocked even if they are not actually unlocked).
2016-07-26Merge pull request #928Riccardo Spagni6-1/+255
ebf97d7 wallet: new {ex,im}port_key_images commands and RPC calls (moneromooo-monero)
2016-07-24wallet: new {ex,im}port_key_images commands and RPC callsmoneromooo-monero6-1/+255
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.
2016-07-23cmake: wallet: libunbound is not always staticredfish1-22/+4
It is not clear why libunbound was added to this in the first place, since it wasn't here before and #915 doesn't seem to introduce any new dependency on it. Tested build with STATIC=OFF (with and without libunbound-dev libunbound8 installed) and STATIC=ON, on Ubuntu Trusty, Debian Jessie, and Arch Linux. For static builds, beware of #926 and #907. If this hack was introduced to make it build on some other system (Windows? OS X?), then it will have to be dealt with, but not this way.
2016-07-23Merge pull request #916Riccardo Spagni4-52/+215
b89b963 wallet: add unconfirmed incoming txes from the txpool (moneromooo-monero)
2016-07-23Merge pull request #915Riccardo Spagni5-30/+251
d7597c5 refreshing wallet even if error happened (Ilya Kitaev) 6d32a3d wallet_api: async init, Wallet::connected status, log level (Ilya Kitaev) 193d251 libwallet_api cmake: conditionally creating libwallet_merged2 only for STATIC build (Ilya Kitaev) 10c06dd wallet_api: segfault on refresh fixed (Ilya Kitaev) 9d2cb4f WalletListener functionality (Ilya Kitaev) d27b883 hack to successfull linking for MSYS2 (Ilya Kitaev) 083380c Transaction fee multiplier aka priority integraged (Ilya Kitaev) 00ed12b Wallet::paymentIdValid (Ilya Kitaev)
2016-07-20wallet: add unconfirmed incoming txes from the txpoolmoneromooo-monero4-52/+215
Shown in show_transfers simplewallet command, and get_transfers RPC command, if req.pool is true.
2016-07-20Merge pull request #914Riccardo Spagni1-2/+2
87b1153 wallet2_api: use uint64_t for amounts (moneromooo-monero)
2016-07-20Merge pull request #902Riccardo Spagni2-9/+26
014f3a0 Add a daemon RPC version, and make simplewallet check it (moneromooo-monero)
2016-07-20Merge pull request #899Riccardo Spagni1-1/+8
a95a2cb wallet_rpc_server: add payment id from integrated addresses to extra (moneromooo-monero)
2016-07-19wallet: add command and RPC to sign/verify datamoneromooo-monero6-1/+125
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).
2016-07-18refreshing wallet even if error happenedIlya Kitaev2-6/+18
2016-07-18wallet_api: async init, Wallet::connected status, log levelIlya Kitaev4-18/+91
2016-07-18libwallet_api cmake: conditionally creating libwallet_merged2 only forIlya Kitaev2-9/+17
STATIC build
2016-07-18wallet_api: segfault on refresh fixedIlya Kitaev2-5/+9
2016-07-18WalletListener functionalityIlya Kitaev3-13/+105
2016-07-18hack to successfull linking for MSYS2Ilya Kitaev1-2/+6
2016-07-18Transaction fee multiplier aka priority integragedIlya Kitaev3-4/+25
2016-07-18Wallet::paymentIdValidIlya Kitaev2-0/+7
2016-07-17wallet2_api: use uint64_t for amountsmoneromooo-monero1-2/+2
2016-07-10Add a daemon RPC version, and make simplewallet check itmoneromooo-monero2-9/+26
If the version is different, simplewallet will refuse to use that daemon, unless --allow-mismatched-daemon-version is used.
2016-07-10wallet_rpc_server: add payment id from integrated addresses to extramoneromooo-monero1-1/+8
2016-07-07wallet2_api: make this build (smatch needs .str() for /=)moneromooo-monero1-1/+1
2016-07-06Merge pull request #878Riccardo Spagni5-27/+66
945c272 wallet: add a fee multiplier (moneromooo-monero)
2016-06-24CMake: GPL 'libutils' script removedIlya Kitaev1-2/+4
2016-06-23Merge branch 'master' of https://github.com/mbg033/bitmoneroIlya Kitaev4-12/+13
2016-06-23WalletManager::findWallets: searching by "keys" files instead ofIlya Kitaev1-5/+3
"address.txt" files
2016-06-23Wallet: payment id and integrated addressIlya Kitaev3-11/+68
2016-06-23PendingTransactionImpl: pointer->referenceIlya Kitaev2-4/+4
2016-06-23commented regexIlya Kitaev1-1/+1
2016-06-23Typo fixedIlya Kitaev1-1/+1
2016-06-23Wallet::createTransaction: added mixin_count paramIlya Kitaev3-10/+23
2016-06-23double/string to monero integer convertion methodsIlya Kitaev2-0/+19
2016-06-23wallet::default_mixin exposed to public interface asIlya Kitaev3-1/+22
Wallet::setDefaultMixin, Wallet::defaultMixin; wallet::create_transaction_2 used in Wallet::createTransaction
2016-06-23Wallet::filename, Wallet::keysFilename, tests for move walletIlya Kitaev3-0/+29
2016-06-23removed unused "using"Ilya Kitaev1-1/+0
2016-06-23Wallet API : WalletManager::findWallets() addedIlya Kitaev4-4/+57
2016-06-23installing wallet_api headerIlya Kitaev1-2/+2
2016-06-23all wallet dependencies merged to single static libIlya Kitaev1-2/+15
2016-06-23WalletListener::moneySpent testIlya Kitaev2-2/+10
2016-06-23WalletListener::moneySpent(), WalletListener::moneyReceived()Ilya Kitaev2-2/+22
2016-06-23i_wallet_callback: virtual dtorIlya Kitaev1-0/+1
2016-06-23started WalletListenerIlya Kitaev3-1/+65
2016-06-23TransactionHistory continuedIlya Kitaev4-12/+103
2016-06-23merged with upstreamIlya Kitaev5-3/+106
2016-06-23Wallet API : transaction history in progressIlya Kitaev7-32/+87
2016-06-23transaction history api in progressIlya Kitaev7-16/+110
2016-06-23api implementation splitted over separate filesIlya Kitaev13-315/+710
2016-06-23TransactionInfo / TransactionHistory APIs designIlya Kitaev2-130/+188
2016-06-23Wallet::createTransaction API introducedIlya Kitaev2-132/+214
Transaction API continued TODOs for Transaction/Transfer interface
2016-06-23Wallet::transfer in progressIlya Kitaev2-2/+198
2016-06-23Wallet::refresh + testsIlya Kitaev2-0/+16
2016-06-23"testnet" is default parameterIlya Kitaev2-3/+11
2016-06-23testnet option, Wallet::balance(), Wallet::unlockedBalance()Ilya Kitaev2-6/+15
2016-06-23- testnet option added to api;Ilya Kitaev4-13/+54
2016-06-23wallet2::store() implemented within wallet2::store_toIlya Kitaev3-69/+62
2016-06-22wallet: add a fee multipliermoneromooo-monero5-27/+66
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".
2016-06-22PendingTransactionImpl: pointer->referenceIlya Kitaev2-4/+4
2016-06-22commented regexIlya Kitaev1-1/+1
2016-06-22Typo fixedIlya Kitaev1-1/+1
2016-06-20Wallet::createTransaction: added mixin_count paramIlya Kitaev3-10/+23
2016-06-19wallet_rpc_server: fix some string values being returned between <>moneromooo-monero1-10/+10
2016-06-16double/string to monero integer convertion methodsIlya Kitaev2-0/+19
2016-06-10wallet::default_mixin exposed to public interface asIlya Kitaev3-1/+22
Wallet::setDefaultMixin, Wallet::defaultMixin; wallet::create_transaction_2 used in Wallet::createTransaction
2016-06-10Wallet::filename, Wallet::keysFilename, tests for move walletIlya Kitaev3-0/+29
2016-06-03removed unused "using"Ilya Kitaev1-1/+0
2016-06-03Wallet API : WalletManager::findWallets() addedIlya Kitaev4-4/+57
2016-05-27Merge remote-tracking branch 'upstream/master'Ilya Kitaev2-5/+15
2016-05-27installing wallet_api headerIlya Kitaev1-2/+2
2016-05-27all wallet dependencies merged to single static libIlya Kitaev1-2/+15
2016-05-17Merge pull request #827Riccardo Spagni2-5/+15
f1e70d1 Only log 1/N skipped blocks (Howard Chu) cebb97c Move refresh height to keys file from cache file (Howard Chu) 590c439 Make fast_refresh interruptible (Howard Chu) 687855d Set refresh height earlier (Howard Chu) 2fb00c0 Fix 19fe8ae3ef1aa46ae8fdd4e4d6862510390ddab7 (Howard Chu)
2016-05-16WalletListener::moneySpent testIlya Kitaev2-2/+10
2016-05-13WalletListener::moneySpent(), WalletListener::moneyReceived()Ilya Kitaev2-2/+22
2016-05-13i_wallet_callback: virtual dtorIlya Kitaev1-0/+1
2016-05-12Merge remote-tracking branch 'upstream/master'Ilya Kitaev7-24/+664
2016-05-05started WalletListenerIlya Kitaev3-1/+65
2016-04-29Only log 1/N skipped blocksHoward Chu1-2/+4
2016-04-29Move refresh height to keys file from cache fileHoward Chu2-1/+8
2016-04-29Make fast_refresh interruptibleHoward Chu1-2/+3
2016-04-29TransactionHistory continuedIlya Kitaev4-12/+103
2016-04-29Merge pull request #825Riccardo Spagni1-2/+2
513a658 add a --max-concurrency flag (moneromooo-monero)
2016-04-28add a --max-concurrency flagmoneromooo-monero1-2/+2
It sets the max number of threads to use for a parallel job. This is different that the number of total threads, since monero binaries typically start a lot of them.
2016-04-27wallet: add a filter_by_height field to get_transfersmoneromooo-monero2-2/+12
It allows a simple get_transfers (with default 0 min_height and max_height) to return all transactions, instead of the unexpected set of txes in block 0, which is probably none at all.
2016-04-26wallet: add get_transfers rpc callmoneromooo-monero3-0/+151
Allows getting in, out, pending, and failed transfers, similarly to the show_transfers command.
2016-04-26wallet: allow attaching notes to txidsmoneromooo-monero6-1/+130
2016-04-26wallet: add GMT timestamps to transfers/paymentsmoneromooo-monero2-11/+26
2016-04-26Merge pull request #815Riccardo Spagni5-0/+224
b0850a9 wallet: add a new sweep_all command and RPC command (moneromooo-monero)
2016-04-26Merge pull request #814Riccardo Spagni2-6/+21
68cbe15 modified: src/wallet/wallet2.cpp modified: src/wallet/wallet2.h (awfulcrawler) 4b325bd modified: src/simplewallet/simplewallet.cpp modified: src/wallet/wallet2.cpp modified: src/wallet/wallet2.h (awfulcrawler)
2016-04-26Merge pull request #811Riccardo Spagni1-4/+6
672162d tests: fix compile failure on wallet2::transfer (moneromooo-monero) b0c18ef wallet2: move output selection api public (moneromooo-monero)
2016-04-26merged with upstreamIlya Kitaev5-3/+106
2016-04-26Merge remote-tracking branch 'upstream/master' into developIlya Kitaev5-96/+107
2016-04-22Wallet API: transaction history in progressIlya Kitaev4-7/+15
2016-04-22Wallet API : transaction history in progressIlya Kitaev7-25/+72
2016-04-20transaction history api in progressIlya Kitaev2-0/+42
2016-04-20transaction history api in progressIlya Kitaev6-16/+68
2016-04-20api implementation splitted over separate filesIlya Kitaev13-315/+710
2016-04-19wallet: add a new sweep_all command and RPC commandmoneromooo-monero5-0/+224
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.
2016-04-19TransactionInfo / TransactionHistory APIs designIlya Kitaev2-130/+188
2016-04-18 modified: src/wallet/wallet2.cppawfulcrawler2-5/+6
modified: src/wallet/wallet2.h Removed working comments
2016-04-18 modified: src/simplewallet/simplewallet.cppawfulcrawler2-6/+20
modified: src/wallet/wallet2.cpp modified: src/wallet/wallet2.h Update to fix unconfirmed balance and give a slightly more verbose and informative confirmation message for transfers
2016-04-17Add GET_HASHES_FAST rpc, use it in walletHoward Chu3-0/+94
When m_refresh_from_block_height has been set, only hashes will be retrieved up to that height, instead of full blocks. The same will be done for "refresh <height>" when the specified height is beyond the current local blockchain.
2016-04-17wallet2: move output selection api publicmoneromooo-monero1-4/+6
2016-04-14Merge pull request #784Riccardo Spagni1-0/+1
087373e Fix potential race with parallel processing of txes/signatures/blocks (moneromooo-monero)
2016-04-14Merge pull request #783Riccardo Spagni4-71/+58
48d0747 wallet: better output selection for transfer/transfer_new (moneromooo-monero)
2016-04-12TODOs for Transaction/Transfer interfaceIlya Kitaev2-19/+25
2016-04-06Transaction API continuedIlya Kitaev2-4/+21
2016-04-05rpc: add a do_not_relay boolean to tx submissionmoneromooo-monero1-0/+1
Just to make it easier
2016-04-05Wallet::createTransaction API introducedIlya Kitaev2-124/+183
2016-04-04Wallet::transfer() continuedIlya Kitaev2-6/+161
2016-04-03Wallet::transfer in progressIlya Kitaev2-1/+42
2016-04-02Fix potential race with parallel processing of txes/signatures/blocksmoneromooo-monero1-0/+1
2016-04-02wallet: better output selection for transfer/transfer_newmoneromooo-monero4-71/+58
This now requests the set of outputs that can be mixed first, to avoid trying non dust but unmixable outputs, which we know will fail.
2016-04-02Merge pull request #769Riccardo Spagni2-23/+38
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)
2016-04-02Merge pull request #767Riccardo Spagni2-2/+9
24b3e90 Convey tx verification failure reasons to the RPC client (moneromooo-monero)
2016-03-31Wallet::refresh + testsIlya Kitaev2-0/+16
2016-03-31"testnet" is default parameterIlya Kitaev2-3/+11
2016-03-31testnet option, Wallet::balance(), Wallet::unlockedBalance()Ilya Kitaev2-6/+15
2016-03-31Merge remote-tracking branch 'upstream/master'Ilya Kitaev5-45/+134
2016-03-28wallet: fix --generate-from-keys saving as watch onlymoneromooo-monero1-1/+1
2016-03-27wallet: make load_keys check types when loading JSONmoneromooo-monero2-23/+38
2016-03-27Convey tx verification failure reasons to the RPC clientmoneromooo-monero2-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.
2016-03-26wallet: pass std::function by const ref, not valuemoneromooo-monero2-2/+2
Because we can.
2016-03-26wallet: do not leak owned amounts to the daemon unless --trusted-daemonmoneromooo-monero4-7/+10
This will be slower, though more private. New trusted_daemon parameter to the matching RPC call, false by default.
2016-03-26wallet: change sweep_dust to sweep_unmixablemoneromooo-monero4-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.
2016-03-26wallet: handle rare case where fee adjustment can bump to the next kBmoneromooo-monero1-2/+3
It resulted in a tx being sent with too low a fee, and thus rejected.
2016-03-26wallet: factor fee calculationmoneromooo-monero1-22/+11
2016-03-25- testnet option added to api;Ilya Kitaev4-13/+54
2016-03-25wallet: add a --generate-from-json flagmoneromooo-monero2-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.
2016-03-21wallet2::store() implemented within wallet2::store_toIlya Kitaev3-69/+62
2016-03-21Revert "Print stack trace upon exceptions"moneromooo-monero3-5/+2
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
2016-03-19Print stack trace upon exceptionsmoneromooo-monero3-2/+5
Useful for debugging users' logs
2016-03-16Wallet::store_to(path, password) implemented;Ilya Kitaev5-17/+113
2016-03-16Wallet::address implementedIlya Kitaev2-0/+7
2016-03-16WalletManager::recoveryWallet implementedIlya Kitaev2-5/+42
2016-03-16Wallet::setPassword() method for wallet2_apiIlya Kitaev4-9/+58
2016-03-16changes in wallet2_api + implemented WalletManager::openWalletIlya Kitaev2-28/+130
2016-03-16get_seed() included to interfaceIlya Kitaev2-14/+31
2016-03-16tests for wallet2_apiIlya Kitaev3-6/+40
2016-03-16wallet2 public api. initial commitIlya Kitaev3-2/+227
2016-03-11wallet: use minimum mixin when RPC asks for too low mixinmoneromooo-monero1-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.
2016-03-11wallet_rpc_server: make use_fork_rules publicmoneromooo-monero1-1/+2
We will need it in the wallet RPC server
2016-03-11Use boost::thread instead of std::threadHoward Chu3-6/+7
and all other associated IPC
2016-03-05get_payments short IDluigi11111-8/+17
Add support for short/integrated/encrypted IDs to get_payments RPC
2016-02-22simplewallet: add a new --restore-from-keys optionmoneromooo-monero2-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.
2016-02-15wallet: clear missing data on rescan_bcmoneromooo-monero1-0/+4
2016-02-05wallet: check a key image isn't already present when adding onemoneromooo-monero1-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.
2016-01-31Revert "Merge pull request #632"Riccardo Spagni1-9/+1
This reverts commit 58f890652e86039e98dff2d48d217c9ea9e84eca, reversing changes made to 39d73d2a27730e6a5844c259d81a0ed9d4ee3000.
2016-01-31Merge pull request #634Riccardo Spagni2-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)
2016-01-31Merge pull request #633Riccardo Spagni1-0/+2
80882ac wallet: guard against exception in process_blocks (moneromooo-monero)
2016-01-31Merge pull request #632Riccardo Spagni1-1/+9
2cf8b32 wallet: guard against exception in process_blocks (moneromooo-monero)
2016-01-31wallet: forbid dust altogether in output selection where appropriatemoneromooo-monero2-5/+14
2016-01-30wallet: guard against exception in process_blocksmoneromooo-monero1-0/+2
If an exception occurs, the thread needs to be joined, or it will be deleted while still live, and terminate the process.
2016-01-30wallet: guard against exception in process_blocksmoneromooo-monero1-1/+9
If an exception occurs, the thread needs to be joined, or it will be deleted while still live, and terminate the process.
2016-01-29wallet: detect and handle failed outgoing transfersmoneromooo-monero3-2/+81
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-monero2-5/+9
Some of it uses hardcoded height, which will need some thinking for next (voted upon) fork.
2016-01-24wallet2: update spent comparison now that we have two spent statesmoneromooo-monero1-1/+1
2016-01-10wallet2: decide at runtime which upper tx size to usemoneromooo-monero2-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.
2016-01-05rpc: is_key_image_spent now checks the tx pool toomoneromooo-monero1-3/+3
2015-12-31Merge pull request #584Riccardo Spagni1-1/+3
5c67c48 wallet: don't forget to close the file after storing cache (moneromooo-monero)
2015-12-31wallet: don't forget to close the file after storing cachemoneromooo-monero1-1/+3
Also add some flags to open, as epee's save_string_to_file does, to truncate file, etc.
2015-12-31updated copyright yearRiccardo Spagni8-8/+8
2015-12-30wallet: add a rescan_bc command and rescan_blockchain RPCmoneromooo-monero5-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.
2015-12-30wallet: protect against exceptions in the block pull threadmoneromooo-monero2-14/+30
This can happen when the daemon exits, which would also cause the wallet to crash via unhandled exception
2015-12-30no longer need to pass the size to rapidjsonRiccardo Spagni1-2/+2
2015-12-30Merge pull request #575Riccardo Spagni1-6/+8
61befc2 wallet: store cache to file without unnecessary memory buffer (moneromooo-monero)
2015-12-29wallet: store cache to file without unnecessary memory buffermoneromooo-monero1-6/+8
2015-12-28wallet_rpc_server: exit async, so we reply to stop_wallet RPCmoneromooo-monero2-1/+11
Reported by saddam
2015-12-28wallet: do not return error if incoming_transfers finds nonemoneromooo-monero1-5/+0
reported by saddam
2015-12-25Merge pull request #557Riccardo Spagni3-1/+35
791e7fb changed height to uint64_t (Brendan Telzrow) 4cd7913 added RPC wallet command getheight (Brendan Telzrow)
2015-12-24fixed missing parenthesisRiccardo Spagni1-1/+1
2015-12-24fix for 'failed to generate new wallet: failed to save file' error during ↵Lex Kalinkin1-3/+5
wallet generation
2015-12-23changed height to uint64_tBrendan Telzrow1-4/+4
2015-12-23added RPC wallet command getheightBrendan Telzrow3-1/+35
2015-12-22Merge pull request #550Riccardo Spagni1-2/+5
8c93608 wallet: fix load/save versioning bug for recently added tx data (moneromooo-monero)
2015-12-20wallet: fix load/save versioning bug for recently added tx datamoneromooo-monero1-2/+5
The version number passed to those data's serialize function was always 0, not the wallet's version as I had expected. A version number now exists for these structures so they're versioned correctly.
2015-12-19Allow the wallet to access hard fork informationmoneromooo-monero2-2/+39
And make it change behavior slightly when close/after first hard fork
2015-12-18Merge pull request #544Riccardo Spagni1-2/+2
01e92eb replace std::auto_ptr with std::unique_ptr (moneromooo-monero)
2015-12-17replace std::auto_ptr with std::unique_ptrmoneromooo-monero1-2/+2
The former is obsolete
2015-12-17wallet: save to a temporary file, then renamemoneromooo-monero2-1/+20
This should avoid most of wallet cache corruption cases
2015-12-05wallet: make the wallet refresh type a wallet settingmoneromooo-monero2-1/+15
instead of a command line setting. It makes sense that is is a long lived setting.
2015-12-05wallet: default auto-refresh to true for old walletsmoneromooo-monero1-0/+1
2015-12-05wallet: add a stop_wallet RPC callmoneromooo-monero3-0/+40
2015-11-30wallet2: default auto-refresh to true for preexisting walletsmoneromooo-monero1-1/+1
2015-11-29wallet: cancellable refreshmoneromooo-monero1-0/+1
^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 #509Riccardo Spagni1-0/+8
3030e3e wallet2: remove confirmed transactions from detached blocks (moneromooo-monero)
2015-11-30Merge pull request #507Riccardo Spagni2-2/+9
62e49a5 wallet: optional automatic refresh from the daemon (moneromooo-monero)
2015-11-29wallet2: remove confirmed transactions from detached blocksmoneromooo-monero1-0/+8
2015-11-28wallet2: speed up wallet refresh for large minersmoneromooo-monero1-14/+47
2015-11-28wallet: optional automatic refresh from the daemonmoneromooo-monero2-2/+9
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-27wallet2: parallelize pulling blocks and processing them on refreshmoneromooo-monero2-13/+49
This needed locking the use of m_http_client, to avoid collisions in I/O.