aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-22wallet: store watch-only wallet correctly when `change_password()` is calledjeff1-2/+2
The Monero GUI code was calling `Monero::wallet::setPassword()` on every open/close for some reason, and the old `store_to()` code called `store_keys()` with `watch_only=false`, even for watch-only wallets. This caused a bug where the watch-only keys file got saved with with the JSON field `watch_only` set to 0, and after saving a watch-only wallet once, a user could never open it back up against because `load()` errored out. This never got brought up before this because you would have to change the file location of the watch-only wallet to see this bug, and I guess that didn't happen often, but calling the new `store_to()` function with the new `force_rewrite` parameter set to `true` triggers key restoring and the bug appeared.
2023-09-10build: prepare v0.18.3.0selsta4-2/+3
2023-08-23wallet2: fix `store_to()` and `change_password()`jeffro2562-34/+90
Resolves #8932 and: 2. Not storing cache when new path is different from old in `store_to()` and 3. Detecting same path when new path contains entire string of old path in `store_to()` and 4. Changing your password / decrypting your keys (in this method or others) and providing a bad original password and getting no error and 5. Changing your password and storing to a new file
2023-08-17wallet_rpc_server: chunk refresh to keep responding to RPC while refreshingmoneromooo-monero3-5/+9
2023-08-17wallet_rpc_server: add --no-initial-sync flag for quicker network bindingmoneromooo-monero1-1/+5
2023-08-10wallet-rpc: restore from multisig seedjeffro2564-25/+59
2023-07-19scan_tx: fix custom comparator for == case; fixes #8951j-berman1-4/+9
Co-authored-by: woodser <woodser@protonmail.com>
2023-07-17wallet2: when checking frozen multisig tx set, don't assume orderjeffro2561-4/+4
2023-07-09Enforce restricted # pool txs served via RPC + optimize chunked reqs ↵j-berman12-168/+245
[release-v0.18] - `/getblocks.bin` respects the `RESTRICTED_TX_COUNT` (=100) when returning pool txs via a restricted RPC daemon. - A restricted RPC daemon includes a max of `RESTRICTED_TX_COUNT` txs in the `added_pool_txs` field, and returns any remaining pool hashes in the `remaining_added_pool_txids` field. The client then requests the remaining txs via `/gettransactions` in chunks. - `/gettransactions` no longer does expensive no-ops for ALL pool txs if the client requests a subset of pool txs. Instead it searches for the txs the client explicitly requests. - Reset `m_pool_info_query_time` when a user: (1) rescans the chain (so the wallet re-requests the whole pool) (2) changes the daemon their wallets points to (a new daemon would have a different view of the pool) - `/getblocks.bin` respects the `req.prune` field when returning pool txs. - Pool extension fields in response to `/getblocks.bin` are optional with default 0'd values.
2023-07-09wallet2, RPC: Optimize RPC calls for periodic refresh from 3 down to 1 call ↵rbrunner79-205/+759
[release-v0.18]
2023-06-30core_rpc_server: return ID of submitted blockjeffro2562-2/+7
2023-06-27wallet2: do not lose exception in current thread on refreshCrypto City1-0/+1
2023-06-27wallet2: fix missing exceptions from failing wallet refreshCrypto City1-0/+1
2023-06-27protocol: drop peers sending duplicate txesmoneromooo-monero1-0/+10
2023-06-16Add CLSAG serialization to ZMQ codeLee Clagett2-0/+29
2023-06-12wallet: respect frozen key images in multisig wallets [RELEASE]jeffro2562-2/+40
Before this change, if a multisig peer asked you to sign a transaction with a frozen enote, the wallet will do it without any error or warning. This change makes it so that wallets will refuse to sign multisig transactions with frozen enotes. Disclaimer: This PR was generously funded by @LocalMonero.
2023-06-08Speed up perf_timer init on x86SChernykh1-1/+1
All Monero binaries have 1 second startup delay because of this code. This is especially noticeable and affects UX in Monero GUI wallet with local node where it often starts another monerod instance to run commands and query node status.
2023-06-02cryptonote_basic: fix amount overflow detection on 32-bit systems [RELEASE]jeffro2561-1/+1
2023-06-02wallet_rpc_server: dedup transfer RPC responses [RELEASE]jeffro2561-157/+59
2023-05-25common: do not use DNS to determine if address is localtobtoht1-20/+15
Co-authored-by: j-berman <justinberman@protonmail.com>
2023-05-11blockchain: ensure base fee cannot reach 0Crypto City1-1/+1
reported by sech1
2023-05-08fix missing <cstdint> includestobtoht2-0/+2
2023-04-27Fixed RandomX initialization when mining from scratchSChernykh1-1/+8
2023-03-29cryptonote core/protocol: don't drop peers for soft offensesjeffro2564-3/+10
Also: txs with tx_extra which is too large will not get published to ZMQ Co-authored-by: SChernykh <sergey.v.chernykh@gmail.com>
2023-03-29Fixed deadlock and crash when syncing with full dataset on WindowsSChernykh2-5/+8
It's not allowed to use WaitForSingleObject with _beginthread, because the thread closes its own handle before exiting. So the wait function will either wait on an invalid handle, or on a different handle used by something else. Or, if it starts waiting before the thread exits, the behavior is undefined according to MS: "If this handle is closed while the wait is still pending, the function's behavior is undefined." In my test sync I observed threads getting stuck infinitely on WaitForSingleObject, and then rx_set_main_seedhash spamming new threads when RandomX seed changes again. Eventually the system ran out of resources, and monerod aborted with "Couldn't start RandomX seed thread" message. This PR fixes it by using `_beginthreadex` instead and explicitly closing the handle when it's safe.
2023-03-27build: prepare v0.18.2.2selsta4-2/+3
2023-03-25wallet2: fix infinite loop in fake out selectionCrypto City2-3/+4
The gamma picker and the caller code did not quite agree on the number of rct outputs available for use - by one block - which caused an infinite loop if the picker could never pick outputs from that block but already had picked all other outputs from previous blocks. Also change the range to select from using code from UkoeHB.
2023-03-19p2p: do not log to global when re-blocking a subnetmoneromooo-monero1-1/+5
2023-03-19p2p: avoid spam blocking ipv4 addresses in a blocked subnetmoneromooo-monero1-1/+17
2023-03-18build: prepare v0.18.2.1selsta4-2/+3
2023-03-18Add a size limit for tx_extra in tx pooltevador6-1/+22
2023-03-17verRctNonSemanticsSimpleCached: fix fragilityJeffrey Ryan9-111/+288
2023-03-17device: Add ledger Stax device id to device detectionFrancois Beutin1-0/+1
2023-03-13wallet2: fix rescanning tx via scan_txj-berman8-60/+406
- Detach & re-process txs >= lowest scan height - ensures that if a user calls scan_tx(tx1) after scanning tx2, the wallet correctly processes tx1 and tx2 - if a user provides a tx with a height higher than the wallet's last scanned height, the wallet will scan starting from that tx's height - scan_tx requires trusted daemon iff need to re-process existing txs: in addition to querying a daemon for txids, if a user provides a txid of a tx with height *lower* than any *already* scanned txs in the wallet, then the wallet will also query the daemon for all the *higher* txs as well. This is likely unexpected behavior to a caller, and so to protect a caller from revealing txid's to an untrusted daemon in an unexpected way, require the daemon be trusted.
2023-03-06Handle case where a command line flag is not allowed in the config filealmalh1-0/+13
2023-02-08build: prepare v0.18.2.0selsta4-2/+3
2023-01-29blockchain-stats: print any remaining data at end of loopHoward Chu1-74/+83
Fix #8711
2023-01-27p2p: add plowsof seed nodesselsta1-1/+11
2023-01-27p2p: remove offline seed nodesselsta1-8/+0
2023-01-17Demote large pages warning to `mdebug`SChernykh1-4/+7
2023-01-11RandomX: print VM allocation warnings only onceSChernykh1-2/+10
2022-12-20Cache successful `verRctNonSemanticsSimple` callsSChernykh4-1/+104
2022-12-18common: add missing includesselsta2-0/+3
2022-12-14Refactored rx-slow-hash.cSChernykh10-256/+401
- Straight-forward call interface: `void rx_slow_hash(const char *seedhash, const void *data, size_t length, char *result_hash)` - Consensus chain seed hash is now updated by calling `rx_set_main_seedhash` whenever a block is added/removed or a reorg happens - `rx_slow_hash` will compute correct hash no matter if `rx_set_main_seedhash` was called or not (the only difference is performance) - New environment variable `MONERO_RANDOMX_FULL_MEM` to force use the full dataset for PoW verification (faster block verification) - When dataset is used for PoW verification, dataset updates don't stall other threads (verification is done in light mode then) - When mining is running, PoW checks now also use dataset for faster verification
2022-11-21DNSResolver: fix not handling hostnames without dot characters [release]Jeffrey Ryan2-24/+0
Unrelated, but similar code-wise to #8643. There is a check in `DNSResolver` which automatically fails to resolve hostnames which do not contain the `.` character. This PR removes that check.
2022-11-17p2p: fix exclusive node DNS resolution for certain hosts [release]Jeffrey Ryan3-14/+20
Fixes #8633. The function `append_net_address` did not parse hostname + port addresses (e.g. `bar:29080`) correctly if the hostname did not contain a `'.'` character. @vtnerd comments 1 clear up 2nd conditional statement
2022-11-15p2p: fix back ping to discover healthy peers to connect toj-berman1-1/+1
2022-10-25Fix dandelion++ fluff/stem bug with local txesLee Clagett1-3/+4
2022-10-18wallet2: fix create view-only wallet from existing walletj-berman2-8/+4
2022-10-13wallet_api: take priority into account when estimating feeselsta1-1/+1
2022-09-26build: prepare v0.18.1.2selsta4-2/+3
2022-09-22Move update_checkpoints() to a later stageSChernykh2-4/+8
update_checkpoints() makes a few DNS requests and can take up to 20-30 seconds to complete (3-6 seconds on average). It is currently called from core::handle_incoming_block() which holds m_incoming_tx_lock, so it blocks all incoming transactions and blocks processing while update_checkpoints() is running. This PR moves it to until after a new block has been processed and relayed, to avoid full monerod locking.
2022-09-21wallet2: fail to establish daemon cxn == "Disconnected" cxn statusj-berman3-4/+5
2022-09-21add an option to force-update multisig key exchange under some circumstanceskoe13-90/+178
2022-09-20Second thread pool for IOSChernykh7-12/+16
2022-09-12wallet2: check wallet compatibility with daemon's hard fork versionj-berman12-26/+246
2022-09-07wallet2: ensure imported outputs subaddresses are createdmoneromooo-monero1-0/+4
reported by j-berman
2022-09-07wallet2: better test on whether to allow output importmoneromooo-monero2-6/+25
Being offline is not a good enough heuristic, so we keep track of whether the wallet ever refreshed from a daemon, which is a lot better, and probably the best we can do without manual user designation (which would break existing cold wallet setups till the user designates those wallets)
2022-09-07allow exporting outputs in chunksmoneromooo-monero9-56/+303
this will make it easier huge wallets to do so without hitting random limits (eg, max string size in node).
2022-09-06Fix segfault restoring encrypted multisig seedj-berman2-17/+17
2022-09-06Fix missing semi-colon in error messagej-berman1-1/+1
Co-authored-by: woodser <woodser@protonmail.com>
2022-09-06wallet2: fixes for export/import output flowj-berman2-2/+8
- only allow offline wallets to import outputs - don't import empty outputs - export subaddress indexes when exporting outputs
2022-09-06rpc: skip bootstrap nodes that are lower than last checkpointselsta4-0/+24
2022-09-06wallet2: do not assume imported outputs must be non emptymoneromooo-monero1-2/+2
2022-09-06wallet2: prevent importing outputs in a hot walletmoneromooo-monero1-0/+2
2022-09-06wallet2: fix missing subaddress indices in "light" exported outputsmoneromooo-monero2-2/+8
2022-09-06build: prepare v0.18.1.1selsta4-2/+3
2022-09-06Require user ack multisig is experimental to restorej-berman1-0/+13
2022-09-01multisig: fix #8537 seed restore (suggestions by @UkoeHB)j-berman5-10/+25
- spend secret key is no longer the sum of multisig key shares; no need to check that is the case upon restore. - restoring a multisig wallet from multisig info means that the wallet must have already completed all setup rounds. Upon restore, set the number of rounds completed accordingly.
2022-08-06ledger support for hf 15 (BP+, view tags)j-berman8-12/+94
2022-08-05feat(trezor): add HF15 support, BP+Dusan Klinec3-163/+135
- BP+ support added for Trezor - old Trezor firmware version support removed, code cleanup
2022-07-28build: prepare v0.18.1.0selsta4-2/+3
2022-07-26continue pool pruning even if a tx can't be foundj-berman2-5/+31
2022-07-26device: set ledger min app versionselsta1-1/+1
2022-07-22Fixed get_block_template_backlog performanceSChernykh2-17/+56
Before the fix, it processed all transactions in the mempool which could be very slow when mempool grows to several MBs in size. I observed `get_block_template_backlog` taking up to 15 seconds of CPU time under high mempool load. After the fix, only transactions that can potentially be mined in the next block will be processed (a bit more than the current block median weight).
2022-07-22Fix use of rtxn without a mdb_txn_safe wrapperHoward Chu2-47/+55
2022-07-21Publish submitted txs via zmqj-berman4-5/+67
2022-07-13build: prepare v0.18.0.0selsta4-3/+4
2022-07-13derive multisig tx secret keys from an entropy source plus the tx inputs' ↵koe5-13/+144
key images
2022-07-05wallet2: prevent crash when reading tx w/fewer outputs than expectedj-berman1-0/+2
2022-07-01hardforks: set mainnet and stagenet v15/16 fork heightselsta1-2/+4
2022-06-30multisig: fix critical vulnerabilities in signinganon13-263/+1743
2022-06-28wallet2: don't use DNS to obtain segregation heightstobtoht1-37/+0
2022-06-27Chunk /gettransactions to avoid hitting restricted RPC limittobtoht1-7/+11
2022-06-25wallet2: force using output distribution for ringct outstobtoht1-9/+14
Co-authored-by: j-berman <justinberman@protonmail.com>
2022-06-24wallet2: remove obsolete rpc version checktobtoht1-26/+1
2022-06-20cryptonote_basic: catch crypto api errorsmoneromooo-monero3-7/+12
2022-06-20simplewallet: print usage when given no argshinto.janaiyo1-0/+16
2022-06-13Revert "Merge pull request #7937"j-berman1-36/+14
This reverts commit 50410d1f7d04bf60053f2263410c39e81d3ddad1, reversing changes made to d054def63f9b8950fe20b2d8e841f5a9ae09418f.
2022-06-03Remove check is_directory check on lmdb pathHoward Chu1-8/+2
The check interferes with raw device/partition support.
2022-06-03Revert "db_lmdb: test for mmap support at init time"Howard Chu2-31/+0
This reverts commit bd96536637724413173271e8d5df1777f7879c29. The check interferes with raw device/partition support.
2022-06-01Remove erraneous commasLuke Parker1-3/+3
2022-06-01Improve consistency between on_money_received and on_money_received_unconfirmedLuke Parker5-10/+17
unconfirmed solely uses a - b, and received now accepts b so it can provide more detailed logs on what occurred (printing a - b, yet with a and b).
2022-05-26wallet_api: add scanTransactions functionselsta3-0/+44
2022-05-18Don't exclusively drop tor/i2p outgoing cxns in idle loopj-berman3-27/+63
2022-05-18common: update sha256sum to use OpenSSL 3.0 APIJeffrey Ryan2-13/+26
As of OpenSSL 3.0, `SHA256_Init`, `SHA256_Update`, and `SHA256_Final` are deprectaed in favor of the higher-level `EVP_*` class of functions. This causes compiler warnings, and sooner or later, will cause build errors as these functions are excluded from distro headers. Also add some documentation.
2022-05-17disable multisig by defaultmoneromooo-monero7-1/+104
There are vulnerabilities in multisig protocol if the parties do not trust each other, and while there is a patch for it, it has not been throroughly reviewed yet, so it is felt safer to disable multisig by default for now. If all parties in a multisig setup trust each other, then it is safe to enable multisig.
2022-05-17src, epee: fix a couple compiler warningsselsta2-4/+0
2022-05-15wallet2: fix spurious reorg detection with untrusted nodesmoneromooo-monero1-9/+5
When forced to deal with an untrusted node, a wallet will quantize its current height to disguise the real height to the adversary, to try and minimize the daemon's ability to distinguish returning wallets. Daemons will thus return more blocks than the wallet needs, starting from earlier in the chain. These extra blocks will be disregarded by the wallet, which had already scanned them. However, for the purposes of reorg size detection, the wallet assumes all blocks the daemon sends are different, which is only correct if the wallet hasn't been coy, which is only the case for trusted daemons (which you should use). This causes an issue when the size of this "fake reorg" is above the sanity check threshold at which the wallet refuses a reorg. To fix this, the reorg size check is moved later on, when the reorg is about to actually happen, after the wallet has checked which blocks are actually different from the ones it expects.
2022-05-13wallet2: speedup large tx construction: reserve vector memorymoneromooo-monero1-1/+7
2.8 seconds -> 2.6 seconds on a test case
2022-05-13wallet2: speedup large tx construction: batch ringdb lookupsCrypto City4-5/+58
3.3 seconds -> 2.8 seconds on a test case
2022-05-13wallet2: speedup large tx construction: no pointless clsag generationCrypto City1-1/+12
4.1 seconds -> 3.3 seconds on a test case
2022-05-13wallet2: speedup large tx construction: batch ringdb updatesCrypto City4-5/+30
5.2 seconds -> 4.1 seconds on a test case
2022-05-13wallet2: speedup large tx construction: cache public key validitymoneromooo-monero2-28/+36
5.9 second -> 5.2 seconds on a test case
2022-05-12fix backoff delay logic when re-relaying txsj-berman1-4/+4
2022-05-11Don't send peerlist larger than max allowedj-berman1-2/+6
2022-05-09Set hf v15 testnet fork heightsj-berman1-0/+2
2022-05-05Give better error messages when missing SSL filesJeffrey Ryan1-5/+16
While copying my data dir to another drive, I missed copying the rpc_ssl.key file b/c of the file permissions. This change will give a much more clear, descriptive error in that scenario.
2022-05-02wallet2: fix a couple unused variable warningsselsta1-6/+1
2022-05-02Remove src/serialization/list.hJeffrey2-65/+0
Unused ;) Also a comment from serialization.h
2022-04-29multisig: add post-kex verification round to check that all participants ↵koe6-148/+276
have completed the multisig address
2022-04-29Update copyright to 2022 for Hardfork filesAkrit8-8/+8
Update Makefile and LICENSE
2022-04-27Change "Github" to "GitHub"Abdullah1-1/+1
2022-04-26refactor(bp+): save one inversion, use sc_muladdDusan Klinec1-3/+3
2022-04-21Preserve commitment format inside transactionsLuke Parker4-28/+6
2022-04-21add a sanity check to RPC input data sizemoneromooo-monero2-0/+3
reported by m31007
2022-04-18Bump ring size to 16 for v15 & remove set default in wallet clij-berman5-74/+25
2022-04-18"Change C-cast to static_cast in net_peerlist.h"Jeffrey1-1/+1
Thanks @mj-xmr: https://github.com/monero-project/monero/pull/8211#discussion_r823870855
2022-04-18Factor out move_it_backward from misc_language.hJeffrey1-8/+15
Relevant commit from old PR: 330df2952cb2863a591158b984c0fb7f652887ac
2022-04-18Move copyable_atomic into connection_contextJeffrey1-4/+35
Relevant commit from old PR: bd0a5119957d3ef9130a0b82599e1696995ef235
2022-04-18Merge functionality of misc_os_dependent into time_helper.hJeffrey2-2/+2
Actions: 1. Remove unused functions from misc_os_dependent.h 2. Move three remaining functions, get_gmt_time, get_ns_count, and get_tick_count into time_helper.h 3. Remove unused functions from time_helper.h 4. Refactor get_ns_count and get_internet_time_str and get_time_interval_string 5. Remove/add includes as needed Relevant commits on the old PR: a9fbe52b02ffab451e90c977459fea4642731cd1 9a59b131c4ed1be8afe238fff3780fe203c65a46 7fa9e2817df9b9ef3f0290f7f86357939829e588
2022-04-18Add Include statementsJeffrey2-0/+2
2022-04-18Trimming FatJeffrey2-2/+0
Remove unused include statements or unused definitions.
2022-04-18Boring Old DeletesJeffrey4-56/+0
Here lies dozens of unused files. This commit is ONLY file deletions except for the removing of a couple of #includes and removing filenames from CmakeLists where appropriate.
2022-04-18Optimized keccak implementationSChernykh1-33/+62
All tests were conducted on the same PC (Ryzen 5 5600X running at fixed 4.65 GHz). Before: test_cn_fast_hash<32> (100000 calls) - OK: 1 us/call test_cn_fast_hash<16384> (1000 calls) - OK: 164 us/call After: test_cn_fast_hash<32> (100000 calls) - OK: 0 us/call test_cn_fast_hash<16384> (1000 calls) - OK: 31 us/call More than 5 times speedup for cn_fast_hash. Also noticed consistent 1-2% improvement in test_construct_tx results.
2022-04-18Add view tags to outputs to reduce wallet scanning timej-berman25-210/+562
Implements view tags as proposed by @UkoeHB in MRL issue https://github.com/monero-project/research-lab/issues/73 At tx construction, the sender adds a 1-byte view tag to each output. The view tag is derived from the sender-receiver shared secret. When scanning for outputs, the receiver can check the view tag for a match, in order to reduce scanning time. When the view tag does not match, the wallet avoids the more expensive EC operations when deriving the output public key using the shared secret.
2022-04-10wallet2: use BP+ for cold signingmoneromooo-monero1-1/+1
reported by ukoehb
2022-04-10Fee changes from ArticMinemoneromooo-monero12-44/+306
https://github.com/ArticMine/Monero-Documents/blob/master/MoneroScaling2021-02.pdf with a change to use 1.7 instead of 2.0 for the max long term increase rate
2022-04-09Remove /includeJeffrey1-1/+0
* `IWallet.h` hasn't been touched since 2014, and has been replaced by `src/wallet/api/wallet2_api.h` * `INode.h` is in a similar situation with `src/p2p/net_node.h`
2022-04-08simplewallet: fix integrated_address output stringselsta1-1/+1
2022-04-06CMake: Add missing headers via monero_find_all_headers macromj-xmr15-138/+15
2022-04-05Make RPC server functions that read db thread safej-berman1-14/+36
- grab an lmdb db_rtxn_guard to ensure consistent data from the db - fixed on_getblockhash error resp when requested height >= blockchain height - left functions that read shared memory untouched for now
2022-04-05bulletproofs+: some minor cleanup from vtnerd's reviewmoneromooo-monero1-11/+2
2022-04-05store outPk/8 in the tx for speedmoneromooo-monero4-7/+29
It avoids dividing by 8 when deserializing a tx, which is a slow operation, and multiplies by 8 when verifying and extracing the amount, which is much faster as well as less frequent
2022-04-05ringct: port some of vtnerd's review changes from BP+ to BPmoneromooo-monero1-13/+11
2022-04-05ringct: a few minor optimizations from reviewmoneromooo-monero1-18/+15
2022-04-05plug bulletproofs plus into consensusmoneromooo-monero15-135/+492
2022-04-04Updates from security auditSarang Noether1-2/+10
https://suyash67.github.io/homepage/assets/pdfs/bulletproofs_plus_audit_report_v1.1.pdf
2022-04-04Precompute initial transcript hashSarang Noether1-13/+11
2022-04-04Bulletproofs+Sarang Noether5-2/+1223
2022-03-31Added support for Ledger Nano S PlusMathias Herberts1-1/+2
2022-03-30Eliminate dependence on boost::interprocess #8223Jeffrey3-11/+9
In this repo, `boost::interprocess` was being used soley to make `uint32_t` operations atomic. So I replaced each instance of `boost::interprocess::ipcdetail::atomic(...)32` with `std::atomic` methods. I replaced member declarations as applicable. For example, when I needed to change a `volatile uint32_t` into a `std::atomic<uint32_t>`. Sometimes, a member was being used a boolean flag, so I replaced it with `std::atomic<bool>`. You may notice that I didn't touch `levin_client_async.h`. That is because this file is entirely unused and will be deleted in PR monero-project#8211. Additional changes from review: * Make some local variables const * Change postfix operators to prefix operators where value was not need
2022-03-29wallet2: decrease the amount of data exchanged for output exportmoneromooo-monero2-10/+167
2022-03-13wallet_rpc_server: support regex for get_accounts tagreemuru2-3/+13
This commit adds a 'regexp' boolean field to the get_accounts request. The flag is set to false by default and maintains backwards compatibility. When set to true the user can search tags by regular expression filters. An additional error message was added for failed regular expression searches. Bump minor version to 25.
2022-03-13replace erciccione's seednode with one on haveno's infrastructureerciccione1-1/+1
2022-03-11wallet_rpc_server: fix make_integrated_address with no payment idmoneromooo-monero1-6/+0
2022-03-10Remove footgun doc comment in miner TX validationLuke Parker1-3/+0
This comment suggests this check is unnecessary, when it is completely necessary as miner TXs can have multiple outputs *which is a statement directly, and incorrectly, contradicted by this comment*. While I don't ever see someone removing this code and getting their edits merged into Monero, someone inexperienced who thinks they're cleaning old code may break their own work, and then there's really just zero benefit to keeping this around.
2022-03-10Make the wallet name optional when locked.Norman Moeschter4-0/+38
2022-03-04Compil. time: cryptonote_core minus portable_storage headermj-xmr1-1/+0
2022-03-04Copyright: Update to 2022mj-xmr403-403/+458
2022-03-01wallet2: update stagenet rollback blocksselsta1-4/+4
2022-02-24simplewallet: add option for exporting tx keysreemuru1-13/+47
This commit adds an option to export transaction keys when performing export_transfers all. By passing option=with_keys a new column 'tx key' will be populated with respective keys.
2022-02-22multisig key exchange update and refactorkoe25-822/+1945
2022-02-19Fixes: Don't require --rpc-login with --rpc-access-control-origins #8168Jeffrey1-6/+0
This PR removes the requirement for --rpc-login to be specified if --rpc-access-control-origins is. This will allow public nodes to serve cross-origin requests. You can still use --rpc-login with --rpc-access-control-origins, but it is no longer mandatory. Original Issue: #8168
2022-02-19crypto: fix constant randomx exceptions in large page allocatormoneromooo-monero1-1/+4
If allocating large pages fails, we don't try again. This has the obvious drawback of not being able to use large pages if they fail once.
2022-02-07rpc: add explicit restricted flag to /get_infotobtoht2-1/+4
2022-01-31Balance includes unconfirmed transfers to selfwoodser1-0/+13
2022-01-25fix ge_p3_is_point_at_infinity(), which is evaluating field elements that ↵koe3-10/+46
haven't been reduced by the field order
2022-01-17support authentication in monero-wallet-rpc set_daemonwoodser2-2/+10
2022-01-04Update net_node.inlGingeropolous1-3/+3
2021-12-24wallet inits cache if file and blob missingwoodser1-4/+5
2021-11-30`make_uri` disallows standalone payment idswoodser1-6/+2
2021-11-20Add calcpow RPCHoward Chu5-5/+73
Calculate PoW hash for a block candidate
2021-11-16cryptonote_core: fix unused lambda warningselsta1-1/+1
2021-11-12device_ledger: fix incorrect macroselsta1-4/+4
The current code does work by accident, but it might break if someone uses ASSERT_SW in a different place, or if variables get renamed.
2021-11-10account info text alignmentim1-2/+2
2021-11-05Avoid unnecessary 'Invalid hashing blob' error messagerbrunner71-1/+6
2021-11-03device: fix ledger error strings, add human friendly messagesselsta1-7/+3
2021-11-01tx_pool: full tx revalidation on fork boundariesmoneromooo-monero2-45/+64
avoids mining txes after a fork that are invalid by this fork's rules, but were valid by the previous fork rules at the time they were verified and added to the txpool.
2021-10-30slow_hash: don't blow out Mac stack on ARM64Howard Chu1-16/+54
2021-10-29crypto: fix typo in ifdefselsta1-1/+1
2021-10-24rpc: fix DoS vector in get_output_distributionmoneromooo-monero1-0/+15
This will prevent people spending old pre-rct outputs using a stranger's node, which may be a good thing
2021-10-22socks: ignore any exceptions in shutdown/closeselsta1-2/+3
2021-10-22wallet_api: enable set_strict_default_file_permissionstobtoht2-1/+6
2021-10-22epee: add missing headerselsta1-0/+1
2021-10-21protocol: fix spurious rejection of downloaded blocksmoneromooo-monero1-0/+1
when kicking a peer for inactivity, clear the set of requested blocks, or next time we requests blocks from it, we'll probably reject the incoming blocks due to missing the previous requested blocks
2021-10-20wallet2: remove 2 unused variablesselsta1-2/+0
2021-10-19wallet2: fix key encryption when changing ask-password from 0/1 to 2moneromooo-monero2-23/+4
we reuse the wallet_keys_unlocker object, which does the right thing in conjunction with other users of decrypt/encrypt (ie, refresh).
2021-10-11blockchain: fix pedantic assertselsta1-0/+2
2021-10-10simplewallet: fix incoming_transfers index errorselsta1-8/+6
2021-10-10download: fix leakmoneromooo-monero1-1/+9
A shared_ptr as by value capture will keep the object alive
2021-10-10ARMv8: detect AES support dynamicallyHoward Chu1-35/+105
2021-10-07Ledger: member 'mode' was shadowing that of base classmj-xmr1-2/+0
2021-10-04Decrease the "recent spend window" in gamma re-select to 15 blocksj-berman1-1/+1
- combined with patching integer truncation (#7798), this gets the algorithm marginally closer to mirroring empirically observed output ages - 50 was originally chosen assuming integer truncation would remain in the client for that client release version. But patching integer truncation causes the client to select more outputs in the 10-100 block range, and therefore the benefit of choosing a larger recent spend window of 50 has less merit - 15 seems well-suited to cover the somewhat sizable observable gap in the early window of blocks
2021-10-01wallet2: keep around transaction prefix for confirmed transferstobtoht1-2/+5
2021-09-22LMDB: fix deadlock in resized detectionHoward Chu2-3/+13
2021-09-20rpc: Fix get_transactions failing when not foundNathan Dorfman1-2/+14
2021-09-20node_server: fix race conditionanon4-16/+53
2021-09-15rpc: don't set error code as status stringselsta1-2/+2
2021-09-12Fix precision of average_output_timej-berman1-7/+1
The fix as suggested by <jberman> on IRC. Before the fix, it would truncate 1.9 to 1 skewing the output selection.
2021-09-11RPC and ZeroMQ APIs to support p2poolSChernykh18-24/+393
Adds the following: - "get_miner_data" to RPC API - "json-miner-data" to ZeroMQ subscriber contexts Both provide the necessary data to create a custom block template. They are used by p2pool. Data provided: - major fork version - current height - previous block id - RandomX seed hash - network difficulty - median block weight - coins mined by the network so far - mineable mempool transactions
2021-09-08UB: virtual methods in destructor at Trezormj-xmr1-2/+2
2021-09-08LMDB: protection against UB, by not calling virtual methods from destructormj-xmr1-5/+5
2021-09-07UB: Not calling virtual method in destructor of WalletImplmj-xmr1-1/+1
2021-09-03external: remove unbound submoduleselsta1-1/+1
2021-08-28wallet: fix unused lambda capture warningselsta1-1/+1
2021-08-27wallet_rpc_server: fix help text remaining boldselsta1-1/+2
2021-08-26Wallet2: fix optimize-coinbase for p2pool payoutsSChernykh1-4/+5
RefreshOptimizeCoinbase was an optimization to speed up scanning of coinbase transactions before RingCT (tx version 2) where they split miner reward into multiple denominations, all to the same wallet. When RingCT was introduced, all coinbase transactions became 1 output only, so this optimization does nothing now. With p2pool, this optimization will skip scanning p2pool payouts because they use more than 1 output in coinbase transaction. Fix it by applying this optimization only to pre-RingCT transactions (version < 2).
2021-08-20daemon: allow proxy configurationanon12-11/+61
Co-authored-by: selsta <selsta@sent.at> Co-authored-by: tobtoht <thotbot@protonmail.com>
2021-08-20monero-wallet-rpc: Prevent --password-file from being used with --wallet-dirKermit Alexander II4-4/+19