Commit Graph
100 Commits
Author SHA1 Message Date
stoffu 8ca1215f25 wallet: store trusted-daemon flag in wallet2 2018-08-23 14:55:09 +09:00
stoffu 1f2409e9e2 Do memwipe for critical secret keys copied to rct::key 2018-08-16 22:26:30 +09:00
stoffu a64f57fe42 wallet2: make --restricted-rpc available for wallet RPC only 2018-08-16 09:54:23 +09:00
stoffu b21fdaa874 fuzz: set address properly 2018-08-14 20:17:51 +09:00
stoffu 95766fe878 README: add dependency on libpgm-dev 2018-08-12 20:12:41 +09:00
stoffu bcab579864 wallet: allow adjusting number of rounds for the key derivation function 2018-08-08 01:56:54 +09:00
stoffu 1c6cfd34f4 wallet-rpc: add get_address_index command 2018-07-31 21:36:12 +09:00
stoffu 9127a8b79f wallet-rpc: filter getbalance response by address index 2018-07-31 20:45:41 +09:00
stoffu a3fe1c56ee simplewallet: add set_tx_key for importing tx keys from 3rd party wallets 2018-07-30 20:50:05 +09:00
stoffu f13c7a8263 simplewallet: make sure wallet config is stored right after creation 2018-07-30 20:39:05 +09:00
stoffu 3940e12933 daemon.print_bc: don't print difficulty twice 2018-07-24 16:17:49 +09:00
stoffu 3a4c3ac891 simplewallet.unspent_outputs: fix wrong logic for parsing 2018-07-24 13:32:58 +09:00
stoffu 7db7ec8591 wallet rpc: support making integrated address of given standard address 2018-07-20 21:33:36 +09:00
stoffu f2e65c6e50 wallet2: consider minimum fee when testing if balance is sufficient 2018-07-19 20:31:07 +09:00
stoffu a4272de797 wallet2: unlock keys file before calling verify_password (needed for Windows)
Also added notes to WalletManager::verifyWalletPassword (which afaik seems unused
by anyone at the moment) regarding the need to unlock the keys file beforehand.
2018-07-03 18:07:20 +09:00
stoffu d6d78f157b Allow fractional outputs to be ignored 2018-07-03 18:04:31 +09:00
stoffu 49dc78d99b util: fix mistakes made in #3994 2018-06-28 10:39:04 +09:00
stoffu 29254fc06e api/wallet: add missing arg to wallet2::refresh() 2018-06-28 10:24:05 +09:00
stoffu 4510f417f9 Wallet API: add some missing override keyword
Also remove dust() from UnsignedTransactionImpl (already in PendingTransactionImpl)
2018-06-28 09:59:09 +09:00
stoffu 3d623a86d1 wallet: prevent the same wallet file from being opened by multiple processes 2018-06-28 09:41:43 +09:00
stoffu 59de6f8d99 util: add file_locker class 2018-06-28 09:40:31 +09:00
stoffu 1d176473e9 epee.string_tools: add conversion between UTF-8 and UTF-16 2018-06-28 09:40:26 +09:00
stoffu 13851b28c7 simplewallet.sweep_all: show usage when parsing fails 2018-06-27 22:54:10 +09:00
stoffu 46e90b7780 Wallet API: add support for wallet creation from hardware device 2018-06-21 12:36:27 +09:00
stoffu 248310de06 Move parse_subaddress_lookahead() from simplewallet.cpp to util.cpp 2018-06-21 12:36:17 +09:00
stoffu 8fc0cdb96f wallet2: lower default for subaddress lookahead when restoring with hardware 2018-06-21 12:35:23 +09:00
stoffu 66df13a58b wallet-rpc.getaddress: throw if index is out of bound 2018-06-21 10:49:03 +09:00
stoffu 0c4148845b miner: show id and height when a block is found 2018-06-20 12:08:40 +09:00
stoffu bd9e4e3149 daemon: show a bit more info with print_block 2018-06-20 12:04:03 +09:00
stoffuandvictorsintnicolaas 149da420e9 db_lmdb: enable batch transactions by default 2018-06-14 20:56:11 +02:00
stoffu 63d0ab09b5 mlog: --max-log-files to set the max number of rotated log files 2018-06-13 12:44:27 +09:00
stoffu 798dfcfe79 wallet: allow unspendable unmixable outputs to be discarded 2018-06-13 11:56:40 +09:00
stoffu 0a5292c339 wallet2: use decoded amount when reporting repeated output key 2018-06-13 01:06:44 +09:00
stoffu 25c15dca5c wallet2: use correct fee for split txes 2018-06-12 12:06:51 +09:00
stoffu 0cf80baea4 net_node: resolve host for node addresses given via command line flags 2018-06-11 20:17:13 +09:00
stoffu 08b85a8e00 cryptonote_config: add get_config to refactor x = testnet ? config::testnet::X : stagenet ? config::stagenet::X : config::X 2018-06-11 20:17:02 +09:00
stoffu 362f5e6eb8 simplewallet: don't confirm missing payment ID when sending to only subaddresses 2018-06-10 20:00:59 +09:00
stoffu bf26920f27 wallet2: fix get_approximate_blockchain_height for stagenet 2018-06-06 20:33:01 +09:00
stoffu ace2edacb6 blockchain: pop forked blocks only when DB is not read-only 2018-06-04 20:59:50 +09:00
stoffu 6b8568e9a1 simplewallet.sign_transfer: rename export to export_raw, add help message 2018-06-01 09:38:14 +09:00
stoffu 0da5d37bf3 wallet: fix shared ring db path 2018-05-31 08:16:45 +09:00
stoffu 0321d1ac79 unit_tests/hardfork: add tests for get_voting_info() 2018-05-30 09:49:58 +09:00
stoffu 98cf62cc45 hardfork: fix get_next_version() 2018-05-30 09:49:57 +09:00
stoffu 7e30eadb32 unit_tests/hardfork: add tests for check_for_height() 2018-05-30 09:49:55 +09:00
stoffu a79fc219b7 hardfork: fix get_earliest_ideal_height_for_version() to support non-existent versions 2018-05-30 09:49:52 +09:00
stoffu a6b8d3fee1 tx_pool: remove old comment from fill_block_template() 2018-05-28 13:41:39 +09:00
stoffu 18761b372f simplewallet: use correct unit for fee command 2018-05-20 23:16:31 +09:00
stoffu cb9c7972b6 Fix output shuffling for multisig 2018-05-20 09:38:41 +09:00
stoffu 872cb4efd8 blockchain: pop top if block version disagrees with the ideal fork version 2018-05-06 20:50:46 +09:00
stoffu b13bddc3c9 Wallet API: allow log path to be non-default & console output to be configurable 2018-05-04 10:21:25 +09:00
stoffu 3880bf396a cryptonote_protocol_handler.inl: remove span read just now that failed to pass some basic tests 2018-04-28 11:10:59 +09:00
stoffu da249fd5ba cryptonote_protocol_handler.inl: fix return type mismatches (int vs bool) 2018-04-28 11:07:51 +09:00
stoffu f36132a837 wallet cli/rpc: terminate execution with code 0 when --help or --version is given 2018-04-22 11:48:44 +09:00
stoffu 998c1461c3 daemon: read config file before reading any other args 2018-04-14 22:05:24 +09:00
stoffu b5d6c723e9 wallet2: store subaddress lookahead settings 2018-04-12 22:23:53 +09:00
stoffu 54d9fffa10 gtest: Fix compilation on MinGW with pthread /googletest#621 2018-04-11 11:35:45 +09:00
stoffu 0b88fff3a5 simplewallet: fix help message of sign_transfer 2018-04-07 22:51:03 +09:00
stoffu f82c10dc96 WalletManagerImpl: reuse existing connection to daemon instead of reconnectivng every time 2018-04-07 14:06:29 +09:00
stoffu 353e9c0c90 Core RPC: optionally add POW hash to block_header_response 2018-04-05 23:15:15 +09:00
stoffu eb59f7c563 cryptonote_tx_util: make destinations properly shuffled 2018-03-31 18:37:46 +09:00
stoffu 66a659bb03 blockchain: add scope guard to waiter for threaded txv1 verification 2018-03-30 19:22:32 +09:00
stoffu eaa8bfe7c0 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-03-22 20:02:25 +09:00
stoffu 0a619f789b wallet2: enable the mitigation only after the fork height 2018-03-22 20:02:14 +09:00
stoffu 5f6647934b p2p: correct port number for seed nodes 2018-03-22 14:56:35 +09:00
stoffu 0098ed338c wallet2: fix for loading settings of key reuse mitigation 2018-03-22 12:10:46 +09:00
stoffu 3b941befae core: add get_earliest_ideal_height_for_version() 2018-03-21 01:53:24 +09: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
stoffuandmoneromooo-monero 2ab66ff1d4 liblmdb: install lmdb library for wallet2_api usage 2018-03-16 10:32:57 +00:00
stoffu 6f54c910f7 simplewallet: fix restore height prompt that got disabled by #3175 2018-03-16 11:55:31 +09:00
stoffu 524cbdc1e2 blockchain: fix log message about per-kB fee 2018-03-16 10:43:19 +09:00
stoffu a7266d6d7b wallet2+cli+rpc: eliminate redundant m_http_client from cli/rpc and delegate calls to wallet2 2018-03-15 22:01:51 +09:00
stoffu 71d186566e replace invoke_http_json("/json_rpc",...) with invoke_http_json_rpc("/json_rpc",methodname,...) to reduce boilerplate 2018-03-14 23:23:59 +09:00
stoffu 4405e4fc73 wallet2: check_tx_key() shouldn't require hardware encryption 2018-03-14 21:00:18 +09:00
stoffu 7dfa5e9e6e chacha: call prehashed version explicitly as generate_chacha_key_prehashed
hash: add prehashed version cn_slow_hash_prehashed
slow-hash: let cn_slow_hash take 4th parameter for deciding prehashed or not
slow-hash: add support for prehashed version for the other 3 platforms
2018-03-14 21:00:17 +09:00
stoffu b2d23b189e crypto: revert odd namespace changes made in #3303 2018-03-14 21:00:17 +09:00
stoffu 8705beaf51 keypair::generate: always require hw::device to avoid possible mistake 2018-03-14 21:00:16 +09:00
stoffu 27a196b126 device: untangle cyclic depenency
When #3303 was merged, a cyclic dependency chain was generated:

    libdevice <- libcncrypto <- libringct <- libdevice

This was because libdevice needs access to a set of basic crypto operations
implemented in libringct such as scalarmultBase(), while libringct also needs
access to abstracted crypto operations implemented in libdevice such as
ecdhEncode(). To untangle this cyclic dependency chain, this patch splits libringct
into libringct_basic and libringct, where the basic crypto ops previously in
libringct are moved into libringct_basic. The cyclic dependency is now resolved
thanks to this separation:

    libcncrypto <- libringct_basic <- libdevice <- libcryptonote_basic <- libringct

This eliminates the need for crypto_device.cpp and rctOps_device.cpp.

Also, many abstracted interfaces of hw::device such as encrypt_payment_id() and
get_subaddress_secret_key() were previously implemented in libcryptonote_basic
(cryptonote_format_utils.cpp) and were then called from hw::core::device_default,
which is odd because libdevice is supposed to be independent of libcryptonote_basic.
Therefore, those functions were moved to device_default.cpp.
2018-03-14 21:00:15 +09:00
stoffu c9b38b4765 device: made function prototypes consistent with pre-#3303 codebase 2018-03-14 21:00:06 +09:00
stoffu 1d39b26556 wallet2: fix use_fork_rules() when querying version that is defined but not enabled yet 2018-03-14 19:02:21 +09:00
stoffu c577abab61 wallet: fix auto low priority so that it takes effect only when saved default is 0 2018-03-14 18:33:43 +09:00
stoffu 978663d461 Stagenet: successive forks up to v7 2018-03-09 13:59:11 +09:00
stoffu 55a65f3269 Wallet API: corrected testnet/mainnet ordering 2018-03-07 13:56:17 +09:00
stoffu 49c70962ee device: remove dependency on readline 2018-03-07 07:42:28 +09:00
stoffu 1ff35fda7c Wallet API: make nettype non-defaulted to disambiguate from deprecated versions (and make libwallet_api_tests compilable) 2018-03-06 21:14:52 +09:00
stoffu 0bbd521fa2 libwallet_merged: added missing libdevice 2018-03-06 02:36:37 +09:00
stoffu 0e7ad2e2c9 Wallet API: generalize 'bool testnet' to 'NetworkType nettype' 2018-03-05 23:59:16 +09:00
stoffu 9a6be3da25 wallet_manager: fixed typo deviuce/device.hpp 2018-03-05 11:57:30 +09:00
stoffu af773211cb Stagenet 2018-03-05 11:55:05 +09:00
stoffu cc9a0bee04 command_line: allow args to depend on more than one args 2018-03-05 11:19:08 +09:00
stoffu 55f8d917fd command_line::get_arg: remove 'required' for dependent args as they're always optional 2018-03-05 11:19:06 +09:00
stoffu 450306a01c command line: allow has_arg to handle arg_descriptor<bool,false,true> #3318 2018-03-05 11:19:04 +09:00
stoffu 71bff546d3 wallet api: when restoring from EnglishOld, set language to English 2018-02-25 22:04:36 +09:00
stoffu 399120ddad simplewallet: set seed language when restoring from english-old seed 2018-02-25 12:44:10 +09:00
stoffu fd57e13a84 simplewallet: typo in generate-from-multisig-keys 2018-02-19 09:51:30 +09:00
stoffu 10f78f63f1 p2p: need libcryptonote_core due to arg_testnet_on being used 2018-02-18 16:40:43 +09:00
stoffu dfabc005d1 memwipe: add missing #include <stdio.h> 2018-02-17 01:06:05 +09:00
stoffu da25757b42 simplewallet: do nothing in on_skip_transaction (wallet2 already logs warnings) 2018-02-15 17:20:39 +09:00
stoffu 54c256bc26 unit_tests.serialization: refactored with ASSERT_EQ_MAP 2018-02-12 21:56:51 +09:00
stoffu e6a6093871 unit_tests: added gtest utility ASSERT_EQ_MAP for easily testing key-value map 2018-02-12 21:56:36 +09:00
stoffu 3c33e1317b wallet2: don't store invalid key image when watch-only 2018-02-12 20:36:15 +09:00