Howard Chu
b937a2c915
Use boost::thread instead of std::thread
...
and all other associated IPC
8 years ago
moneromooo-monero
4513b4cd2b
simplewallet: add a new --restore-from-keys option
...
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.
8 years ago
moneromooo-monero
8f09b71b9b
wallet: clear missing data on rescan_bc
8 years ago
moneromooo-monero
c7b96b91ed
wallet: check a key image isn't already present when adding one
...
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.
8 years ago
Riccardo Spagni
616df496e9
Revert "Merge pull request #632"
...
This reverts commit 58f890652e
, reversing
changes made to 39d73d2a27
.
8 years ago
Riccardo Spagni
569316aea3
Merge pull request #634
...
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)
8 years ago
Riccardo Spagni
8d976a0683
Merge pull request #633
...
80882ac
wallet: guard against exception in process_blocks (moneromooo-monero)
8 years ago
Riccardo Spagni
58f890652e
Merge pull request #632
...
2cf8b32
wallet: guard against exception in process_blocks (moneromooo-monero)
8 years ago
moneromooo-monero
7fc6fa3fa2
wallet: forbid dust altogether in output selection where appropriate
8 years ago
moneromooo-monero
80882ac6dd
wallet: guard against exception in process_blocks
...
If an exception occurs, the thread needs to be joined, or it
will be deleted while still live, and terminate the process.
8 years ago
moneromooo-monero
2cf8b32229
wallet: guard against exception in process_blocks
...
If an exception occurs, the thread needs to be joined, or it
will be deleted while still live, and terminate the process.
8 years ago
moneromooo-monero
b11539fda7
wallet: detect and handle failed outgoing transfers
...
When a transaction is not found in the pool anymore, it is marked
as failed, and displayed as such in show_transfers.
8 years ago
moneromooo-monero
3b1d7e03fc
Fix V1/V2 use of hard fork related parameters
...
Some of it uses hardcoded height, which will need some thinking
for next (voted upon) fork.
8 years ago
moneromooo-monero
15d9ac8abd
wallet2: update spent comparison now that we have two spent states
8 years ago
moneromooo-monero
67bbb56a6c
wallet2: decide at runtime which upper tx size to use
...
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.
9 years ago
moneromooo-monero
a44d94d390
rpc: is_key_image_spent now checks the tx pool too
9 years ago
Riccardo Spagni
ac7d27d4f9
Merge pull request #584
...
5c67c48
wallet: don't forget to close the file after storing cache (moneromooo-monero)
9 years ago
moneromooo-monero
5c67c486e8
wallet: don't forget to close the file after storing cache
...
Also add some flags to open, as epee's save_string_to_file does,
to truncate file, etc.
9 years ago
Riccardo Spagni
de03926850
updated copyright year
9 years ago
moneromooo-monero
bc8a52efd8
wallet: add a rescan_bc command and rescan_blockchain RPC
...
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.
9 years ago
moneromooo-monero
92ef6b54fe
wallet: protect against exceptions in the block pull thread
...
This can happen when the daemon exits, which would also cause
the wallet to crash via unhandled exception
9 years ago
Riccardo Spagni
32a26332f8
no longer need to pass the size to rapidjson
9 years ago
moneromooo-monero
61befc2293
wallet: store cache to file without unnecessary memory buffer
9 years ago
Riccardo Spagni
47ca455ea8
fixed missing parenthesis
9 years ago
Lex Kalinkin
a004130a04
fix for 'failed to generate new wallet: failed to save file' error during wallet generation
9 years ago
moneromooo-monero
8ea7af1ba3
Allow the wallet to access hard fork information
...
And make it change behavior slightly when close/after first hard fork
9 years ago
Riccardo Spagni
5d33b43d8d
Merge pull request #544
...
01e92eb
replace std::auto_ptr with std::unique_ptr (moneromooo-monero)
9 years ago
moneromooo-monero
01e92ebdb0
replace std::auto_ptr with std::unique_ptr
...
The former is obsolete
9 years ago
moneromooo-monero
9b4f8b4b7e
wallet: save to a temporary file, then rename
...
This should avoid most of wallet cache corruption cases
9 years ago
moneromooo-monero
c6cfe0f26d
wallet: make the wallet refresh type a wallet setting
...
instead of a command line setting. It makes sense that is is
a long lived setting.
9 years ago
moneromooo-monero
fef2493617
wallet: default auto-refresh to true for old wallets
9 years ago
moneromooo-monero
41029d6d74
wallet2: default auto-refresh to true for preexisting wallets
9 years ago
moneromooo-monero
d68a63e404
wallet: cancellable refresh
...
^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.
9 years ago
Riccardo Spagni
5275db0786
Merge pull request #509
...
3030e3e
wallet2: remove confirmed transactions from detached blocks (moneromooo-monero)
9 years ago
Riccardo Spagni
bc1bc4adb2
Merge pull request #507
...
62e49a5
wallet: optional automatic refresh from the daemon (moneromooo-monero)
9 years ago
moneromooo-monero
3030e3ecff
wallet2: remove confirmed transactions from detached blocks
9 years ago
moneromooo-monero
9ee48e9071
wallet2: speed up wallet refresh for large miners
9 years ago
moneromooo-monero
62e49a5f02
wallet: optional automatic refresh from the daemon
...
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.
9 years ago
moneromooo-monero
490590306e
wallet2: parallelize pulling blocks and processing them on refresh
...
This needed locking the use of m_http_client, to avoid collisions
in I/O.
9 years ago
moneromooo-monero
d0eaf1d4e1
wallet2: maintain the short chain manually when refreshing
9 years ago
moneromooo-monero
a4e9506069
wallet2: split pull blocks between pulling and processing
9 years ago
moneromooo-monero
9b945f5211
wallet: make the refresh optimizations selectable via command line
...
Take the opportunity to add a no-coinbase case too, for even faster
sync when an address is known to never have mined to.
9 years ago
moneromooo-monero
d2c031332e
wallet: speedup refresh from daemon
...
Assume the whole of a coinbase goes to the same address (so that
if the first output isn't for us, none of it is), and only look
for payment id when we received something in the transaction.
9 years ago
moneromooo-monero
ea707c779c
wallet2: minor cleanup
...
- use std::vector::std::deque to not leak when exceptions happen
- use std::unique_ptr instead of the deprecated std::auto_ptr
9 years ago
moneromooo-monero
55a2da7475
wallet2: speedup refresh a bit
...
Use the NoodleDoodle threading technique to speedup a couple
code blocks on the main path when refreshing blocks without
any transactions for us.
9 years ago
moneromooo-monero
9156ba3a3c
wallet: rename store-tx-keys to store-tx-info
...
With backward compatibility
9 years ago
moneromooo-monero
b3d4d41e29
wallet: improve show_transfers
...
More information is now saved and displayed
9 years ago
moneromooo-monero
725ae4e710
wallet: use incoming blocks to keep track of payments too
9 years ago
moneromooo-monero
3f611bc3dc
wallet: track outgoing payments and add a show_transfers command
...
It's a user friendly display of incoming and outgoing transfers,
listed by height, within an optional height range.
9 years ago
moneromooo-monero
c7dc6ef8e8
simplewallet: add a set default-mixin command
...
The default default mixin is 4. It can now be changed per wallet.
9 years ago