Commit Graph
1243 Commits
Author SHA1 Message Date
cslashmandwowario 67a6dbc19f Fix sub-address tx scan.
When additional keys was needed, the TX scan failed because the
derivation data was always recomputed with the main tx_key and not
the corresponding additional one.

Moreover this patch avoid perf decreasing when not using HW device.
2018-06-01 09:01:43 +03:00
moneromooo-moneroandwowario f2e6a11703 wallet: catch exceptions dealing with ringdb and warn 2018-05-24 13:29:12 +03:00
stoffuandwowario b964e723dd wallet2: fix for loading settings of key reuse mitigation 2018-05-24 13:25:49 +03:00
stoffuandwowario da5dfaa1b6 wallet2: set from_height of GET_OUTPUT_DISTRIBUTION correctly
The previous expression

    req_t.from_height = X ? Y >= Z : 0;

forces the parameter to take the value of either 0 or 1.
2018-05-24 13:23:49 +03:00
cslashmandwowario f2cd4a45a7 Add the possibility to export private view key for fast scan.
On client startup the device asks for authorization to export the private view key.
If user agree, the client hold the private view key allowing a fast blockchain scan.
If the user does not agree, the blockchain scan is fully done via the device.
2018-05-24 13:07:57 +03:00
moneromooo-moneroandwowario 00b0f8dce4 rpc: allow getting pruned blocks from gettransactions
and get them pruned in find_and_save_rings, since it does not need
the pruned data in the first place.

Also set decode_to_json to false where missing, we don't need this
either.
2018-05-24 13:03:31 +03:00
moneromooo-moneroandwowario 234296d376 wallet2: request transactions in slices when scanning for known rings
This avoid massive memory consumption for huge wallets
2018-05-24 13:02:35 +03:00
moneromooo-moneroandwowario a89545dacf rpc: allow getting pruned blocks from gettransactions
and get them pruned in find_and_save_rings, since it does not need
the pruned data in the first place.

Also set decode_to_json to false where missing, we don't need this
either.
2018-05-24 13:01:43 +03:00
stoffuandwowario cefad3cea8 Wallet API: allow log path to be non-default & console output to be configurable 2018-05-24 12:28:17 +03:00
stoffuandwowario 0aa0b8347e Fix output shuffling for multisig 2018-05-24 12:28:16 +03:00
moneromooo-moneroandwowario b63635f38d wallet2: increase rpc timeout for get_output_distribution 2018-05-16 23:11:46 +03:00
moneromooo-moneroandwowario b9eda26091 add top height to get_output_distribution, and cache it for rct
This should cache the vast majority of calls for long running wallets
2018-05-16 23:11:19 +03:00
stoffuandwowario c71e8870db wallet2: store subaddress lookahead settings 2018-05-16 22:46:23 +03:00
cslashmandwowario 7b3aef524b Use 'boost' mutex instead of 'std' mutex 2018-05-16 22:43:27 +03:00
cslashmandwowario 7a79ba183d Fix sub-address tx scan.
When additional keys was needed, the TX scan failed because the
derivation data was always recomputed with the main tx_key and not
the corresponding additional one.

Moreover this patch avoid perf decreasing when not using HW device.
2018-05-16 22:43:05 +03:00
moneromooo-moneroandwowario 8de302627a wallet2: request transactions in slices when scanning for known rings
This avoid massive memory consumption for huge wallets
2018-05-16 22:41:34 +03:00
moneromooo-moneroandwowario f4d38403a0 rpc: allow getting pruned blocks from gettransactions
and get them pruned in find_and_save_rings, since it does not need
the pruned data in the first place.

Also set decode_to_json to false where missing, we don't need this
either.
2018-05-16 22:39:18 +03:00
moneromooo-moneroandwowario ab3c7036c3 wallet2: request transactions in slices when scanning for known rings
This avoid massive memory consumption for huge wallets
2018-05-16 22:36:34 +03:00
moneromooo-moneroandwowario 320db6c7b7 rpc: allow getting pruned blocks from gettransactions
and get them pruned in find_and_save_rings, since it does not need
the pruned data in the first place.

Also set decode_to_json to false where missing, we don't need this
either.
2018-05-16 22:34:05 +03:00
stoffuandwowario 6d16e1abf4 WalletManagerImpl: reuse existing connection to daemon instead of reconnectivng every time 2018-05-16 22:28:28 +03:00
moneromooo-moneroandwowario cfd7928365 wallet2: fix misc issues when the ringdb can't be initialized 2018-05-16 22:27:36 +03:00
cslashmandwowario 6b818bcf5c Add the possibility to export private view key for fast scan.
On client startup the device asks for authorization to export the private view key.
If user agree, the client hold the private view key allowing a fast blockchain scan.
If the user does not agree, the blockchain scan is fully done via the device.
2018-05-16 21:47:43 +03:00
moneromooo-moneroandwowario 0043d20939 fix lambda compile error on openbsd 2018-05-16 21:47:43 +03:00
stoffuandwowario ccae806c13 wallet2: set from_height of GET_OUTPUT_DISTRIBUTION correctly
The previous expression

    req_t.from_height = X ? Y >= Z : 0;

forces the parameter to take the value of either 0 or 1.
2018-05-16 21:47:42 +03:00
stoffuandwowario 3f5e731d31 wallet2: enable the mitigation only after the fork height 2018-05-16 21:47:42 +03:00
stoffuandwowario c455bbf413 wallet2: fix for loading settings of key reuse mitigation 2018-05-16 21:47:42 +03:00
Mikhail Mitkevichlandwowario c0c97c0c07 import_multisig_info: fix sanity check crash in detach_blockchain 2018-05-16 15:40:23 +03:00
moneromooo-moneroandwowario 2fbbccca6e wallet2: add missing parameters to get_output_histogram 2018-05-16 15:40:09 +03:00
wowario d00b812953 set static ring size 2018-05-07 23:30:16 +03:00
moneromooo-moneroandMatthew Incognito a5e0a08e8a wallet2: request transactions in slices when scanning for known rings
This avoid massive memory consumption for huge wallets
2018-05-01 11:13:11 +01:00
moneromooo-moneroandMatthew Incognito 1035e47dd0 rpc: allow getting pruned blocks from gettransactions
and get them pruned in find_and_save_rings, since it does not need
the pruned data in the first place.

Also set decode_to_json to false where missing, we don't need this
either.
2018-05-01 11:08:00 +01:00
moneromooo-moneroandMatthew Incognito 4e75860da2 wallet2: fix misc issues when the ringdb can't be initialized 2018-05-01 10:52:47 +01:00
wowario 3ed6bf8518 silent dns warning 2018-04-19 21:17:43 +03:00
wowario 0ac4b8e63e increase ringsize to 10 2018-04-19 04:21:25 +03:00
wowario a801517396 rename to wownero 2018-04-05 16:14:03 +03:00
jwinterm c473f01310 Initial commit 2018-03-29 19:55:44 -07:00
moneromooo-monero 1e393f4bb7 wallet: make the segregation height settable
via user setting first, then DNS TXT record, hardcoded fallback
2018-03-17 14:56:31 +00:00
Riccardo Spagni 5cd36e48bf Merge pull request #3421
9732a37e wallet_rpc_server: add sweep_unmixable as alias for sweep_dust (moneromooo-monero)
2018-03-17 16:52:46 +02:00
moneromooo-monero 9732a37e9a wallet_rpc_server: add sweep_unmixable as alias for sweep_dust 2018-03-17 11:22:58 +00:00
stoffuandcslashm b86f1e5dad Add command line option allowing to restrict the default sub-address lookahead in order to avoid
so looooong time of set-up when creating a HW based wallet.
2018-03-16 18:00:28 +01:00
Riccardo Spagni 0f27fc57ac Merge pull request #3336
57c0b1ed Fix typos in various files (Dimitris Apostolou)
2018-03-16 18:08:07 +02:00
moneromooo-monero eac3a11ed3 wallet: more user friendly print_ring
It can now take a txid (to display rings for all its inputs),
and will print rings in a format that set_ring understands
2018-03-16 12:07:45 +00:00
moneromooo-monero 798535149d wallet2_api: add key reuse mitigations API 2018-03-16 12:07:42 +00:00
moneromooo-monero b057a21d56 wallet2_api: add ring api 2018-03-16 10:33:05 +00:00
moneromooo-monero d32ef7b0f2 ringdb: factor ring addition code 2018-03-16 10:33:02 +00:00
moneromooo-monero a7da8208f5 wallet2_api: add blackball api 2018-03-16 10:32:59 +00:00
moneromooo-monero 504428ab4a ringdb: use the genesis block as a db name
This will avoid careless forkers polluting the shared database
even if they make their own chain. They'll then automatically
start using another subdb, and any key-reusing fork of those
forks will reuse their subdbs.
2018-03-16 10:32:54 +00:00
moneromooo-monero b09e5181cc wallet: add a set_ring command
This is so one can set rings for spent key images in case the
attackers don't merge the ring matching patch set.
2018-03-16 10:32:51 +00:00
moneromooo-monero db10dd6d83 wallet: make ringdb an object with database state 2018-03-16 10:32:42 +00:00
moneromooo-monero d29ea0455a wallet: add an output blackball list to avoid using those in rings 2018-03-16 10:32:37 +00:00