aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
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
2021-10-29crypto: fix typo in ifdefselsta1-1/+1
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-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-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
2021-08-19Protect client from divide by 0 caused by integer truncationj-berman1-0/+6
2021-08-19Apply gamma distr from chain tip when selecting decoysj-berman1-0/+31
- matches the paper by Miller et al to apply the gamma from chain tip, rather than after unlock time - if the gamma produces an output more recent than the unlock time, the algo packs that output into one of the first 50 spendable blocks, respecting the block density factor
2021-08-19ringct: silence unused variable warningselsta1-1/+1
2021-08-19Device: remove unused and incorrect non-default constructormj-xmr1-1/+0
2021-08-19wallet_api: add make_uritobtoht3-0/+7
2021-08-11Make sure node returns to wallet that real output is unlockedj-berman1-1/+2
2021-08-05p2p: remove blocked addresses/hosts from peerlistmoneromooo-monero3-15/+44
2021-08-03trezor: try empty passphrase firstDusan Klinec6-11/+103
- Try empty passphrase first when opening a wallet, as all Trezors will have passphrase enabled by default by Trezor Suite by default. This feature enables easier access to all users using disabled passphrase (or empty passhprase) - If wallet address differs from device address with empty passphrase, another opening attempt is made, without passphrase suppression, so user can enter his passhprase if using some. In this scenario, nothing changes to user, wallet opening just consumes one more call to Trezor (get wallet address with empty passphrase) - also change how m_passphrase is used. Previous version did not work well with recent passphrase entry mechanism change (made in Trezor), thus this commit fixes the behaviour).
2021-08-02Fix describe_transfer for multiple txes in a txsetAlex Opie2-10/+54
This ensures each list of recipients is only the recipients for one transaction. It also adds a new field "summary" that describes the txset as a whole. Fixes #7344
2021-07-29Quicker resource cleanup on p2p socks timeoutLee *!* Clagett2-0/+12
2021-07-28blocks: fix cmake syntaxselsta1-1/+1
2021-07-27Daemon: Update average block size tablerbrunner71-2/+6
2021-07-19wallet_api: expose offline mode statusrating89us3-0/+7
2021-07-18Fixed json serialization of rct::RCTTypeNullSChernykh1-6/+12
rct::RCTTypeNull doesn't have these fields (ecdhInfo, outPk, txnFee).
2021-07-15wallet2: chunk get_outs.bin calls to avoid sanity limitsmoneromooo-monero1-8/+20
2021-07-15rpc: source file extensions must be explicit (cmake warning)selsta1-1/+1
2021-07-14wallet2: Don't auto lock device on process parsed blockstobtoht1-2/+1
2021-07-14wallet: rephrase error message on invalid device addressDusan Klinec1-1/+1
2021-07-14fix #7784 - deinit wallet in wallet dtorDusan Klinec1-3/+6
2021-07-13cmake: fix undefined symbols and multiple definitionsanon5-16/+62
2021-07-10device_trezor_base: fix typoanon1-1/+1
2021-07-06Doc: Update blockchain stats with review commentsmj-xmr1-2/+4
2021-07-05wallet_api: getPasswordtobtoht3-0/+7
2021-06-27trezor: add #if for ByteSizeLongselsta1-0/+4
Turns out Ubuntu 18.04 ships with an old protobuf version.
2021-06-24wallet_api: get bytes sent/receivedtobtoht3-0/+19
2021-06-24simplewallet: don't truncate integ. address in export_transfersselsta1-2/+2
2021-06-23wallet_api: fix typo in exportKeyImagesselsta1-1/+1
2021-06-21protocol: fix delayed "you are now synchronized..." messagemoneromooo-monero1-3/+4
2021-06-20doc: update IRC references to Liberafdov1-1/+1
2021-06-18add singapore.node.xmr.pm to seed nodeslza_menace1-0/+4
2021-06-15provide key images of spent outputs in wallet rpcwoodser3-9/+39
2021-06-11CMake: strip targets (optional) with -D STRIP_TARGETS=ONmj-xmr1-0/+1
2021-06-11trezor: fix potential use of uninitialized memorymoneromooo-monero1-2/+7
CID 1446575
2021-06-08wallet/api: remove Bitmonero namespace aliasselsta16-38/+0
2021-06-08wallet_api: address_book: don't lose pid on setDescriptiontobtoht1-1/+1
2021-06-04wallet2: refresh: check error and throw before potentially breaking out of looptobtoht1-8/+9
2021-06-04wallet_api: signMessage: add sign with subaddresstobtoht3-4/+19
2021-06-04ledger: don't lock for software devicetobtoht1-3/+2
2021-06-04wallet_api: reconnectDevicetobtoht3-0/+21
2021-06-04ledger: use software device if we have view keytobtoht2-6/+13
2021-06-04wallet: Reset RPC Pay ID on node switchtobtoht1-0/+3
RPC pay client ID is sent with each RPC request, set a new secret every time we switch nodes to mitigate trivial correlation
2021-06-04wallet_api: move adjust_mixin call within try blocktobtoht1-8/+3
2021-05-18support freeze, thaw, and frozen in wallet rpcwoodser3-1/+154
2021-05-14CMake: glob missing headers for wallet2mj-xmr1-12/+1
2021-05-13trezor: deprecated ByteSize -> ByteSizeLongselsta1-1/+1
2021-05-08Warnings: unused variable in core/blockchain.cppmj-xmr1-1/+1
2021-05-02Warnings: unused var at cryptonote_tx_utils.cppmj-xmr1-1/+3
2021-04-28cmake: fix non portable codeselsta1-9/+21
2021-04-28cmake: set xcode file typeselsta1-0/+1
2021-04-27cmake: wallet_api doesn't need wallet_mergedselsta1-41/+0
2021-04-27cmake: set 3.5 as minimum versionselsta2-2/+2
2021-04-27clang: fix -Wrange-loop-analysis warningsselsta1-1/+1
2021-04-26blockchain: speed up repeated pops (mostly in tests)moneromooo-monero1-1/+4
The heavy rolling median reset only has to be performed after all blocks are popped
2021-04-25Wallet2: Update 'approximate_testnet_rolled_back_blocks'rbrunner71-1/+1
2021-04-24epee linkage dynamic; move monero_add_library to main CMakeLists.txtmj-xmr1-24/+0
2021-04-23wallet2: Fix rescan_bc keep_ki optionNathan Dorfman3-23/+28
2021-04-22wallet_api: import / export output functiontobtoht3-0/+77
2021-04-19add documentation for monero-blockchain-statsdonkeydonkey1-0/+54
2021-04-17protocol: remove unreachable codemoneromooo-monero1-1/+1
2021-04-16Split epee/string_tools.h and encapsulate boost::lexical_castmj-xmr10-2/+11
2021-04-16Revert "Merge pull request #7136"luigi11118-34/+53
This reverts commit 63c7ca07fba2f063c760f786a986fb3e02fb040e, reversing changes made to 2218e23e84a89e9a1e4c0be5d50f891ab836754f.
2021-04-16net_node: add seed nodeselsta1-0/+3
2021-04-15rpc: send confirmations in get_transactions resultmoneromooo-monero3-5/+19
if the wallet does it, it would get a wrong result (possibly even negative) if its local chain is not synced up to the daemon's yet
2021-04-07monero-wallet-cli: improve error message when tx amount is zeroElliot Wirrick6-8/+30
2021-04-05expose set_offline to wallet apibenevanoff3-0/+12
2021-03-30p2p: allow CIDR notation in DNS blocklistmoneromooo-monero1-5/+12
2021-03-28Reduce compilation time of epee/portable_storage_template_helper.hmj-xmr18-2/+24
2021-03-25wallet2: fix unlocked mixup in light wallet modemoneromooo-monero1-2/+2
2021-03-25db_lmdb: catch exceptions testing for mmap supportmoneromooo-monero1-1/+2
Turns out at least one arch (armel based) does not have unique_path implemented and throws
2021-03-24blockchain_db: harden code against invalid input typesmoneromooo-monero1-9/+2
If an invalid input type were to get to this, the code could remove key images that might be present already in the chain, which could allow a double spend, even if this is impossible with the current code. Reported by KeyboardWarrior.
2021-03-22cryptonote_protocol_handler: fix race conditionanon2-27/+43
2021-03-19blockchain_import: fix wrong reported block/tx hashes on errormoneromooo-monero1-5/+11
2021-03-18core: speed up print_coinbase_tx_summoneromooo-monero4-12/+14
It only needs to parse the tx headers, not the full tx data
2021-03-12wallet_api: add isDeterministic()tobtoht3-0/+12
2021-03-12wallet_api: add seed_offset param to seed()tobtoht3-4/+4
2021-03-06wallet_rpc_server: set seed language in generate_from_keysmoneromooo-monero4-18/+26
Also sanity check language name
2021-03-05fix serialization being different on macmoneromooo-monero8-26/+63
On Mac, size_t is a distinct type from uint64_t, and some types (in wallet cache as well as cold/hot wallet transfer data) use pairs/containers with size_t as fields. Mac would save those as full size, while other platforms would save them as varints. Might apply to other platforms where the types are distinct. There's a nasty hack for backward compatibility, which can go after a couple forks.
2021-03-04return output key for incoming transfersbenevanoff2-1/+4
2021-03-03trezor: simplify recognition of integrated addressesDusan Klinec1-14/+1
now it is possible to simplify integrated addresses recognition using transaction destination info directly fixes https://github.com/monero-project/monero-gui/issues/3346
2021-03-01wallet_rpc: add scan_txtobtoht3-1/+58
2021-02-20wallet_rpc_payments: implement multithreadinggdmojo4-40/+76
2021-02-17monero-wallet-cli: Added command scan_txHoria Mihai David4-1/+89
To implement this feature, the wallet2::scan_tx API was implemented.
2021-02-15p2p: add --max-connections-per-ip daemon optionmoneromooo-monero3-3/+10
Helps daemons behind a proxy get more than one connection. Defaults to 1 (no change)
2021-02-15rpc: fix some error return codes/statusmoneromooo-monero2-23/+33
Some RPC return an error string in status, and the code must return true on error (with a status string).
2021-02-13Store RPC SSL key/cert for consistent authentication between runsLee Clagett1-2/+23
2021-02-11Honor LARGE_PAGES flag in randomx umaskHoward Chu1-10/+18
2021-02-09New add_aux_pow RPC to support merge miningmoneromooo-monero12-1/+494
2021-02-09Remove unused variables in monero codebaseKevin Barbour23-67/+12
There are quite a few variables in the code that are no longer (or perhaps never were) in use. These were discovered by enabling compiler warnings for unused variables and cleaning them up. In most cases where the unused variables were the result of a function call the call was left but the variable assignment removed, unless it was obvious that it was a simple getter with no side effects.
2021-02-06Reduce compilation time of epee/portable_storage.hmj-xmr2-0/+3
2021-01-28Remove copies from foreach loops (thanks to Clang)Lee Clagett6-7/+7
2021-01-28Removing unused namespace aliasLee Clagett1-2/+0
2021-01-28Fix monerod --rpc-ssl disabledLee Clagett1-1/+1
2021-01-25Attempt to carve the fee from a partial payment earlyAlex Opie1-20/+34
Do this for both the estimate and actual fee. #7337
2021-01-25Stop adding more outputs than bulletproof allowsAlex Opie1-7/+35
If more outputs are requested, they are split across multiple transactions. #7322
2021-01-23Improve cryptonote (block and tx) binary read performanceLee Clagett22-200/+143
2021-01-21Simplewallet.cpp: Add export_outputs helpSomaticFanatic1-1/+1
See #6547
2021-01-21bootstrap_daemon: proxy configuration supportxiphon9-28/+126
2021-01-20device_trezor: add redundant checkanon1-1/+1
2021-01-20device_trezor: wipe string fields properlyanon1-20/+9
2021-01-19Remove payload copy in all outgoing p2p messagesLee Clagett8-53/+34
2021-01-16Remove payload copy in all outgoing p2p messagesLee Clagett8-53/+34
2021-01-13simplewallet: allow setting --restore-height 0selsta1-1/+1
2021-01-12Revert "fix accessing an network address in a deleted context"selsta2-15/+9
This reverts commit 4e74385a1ae9eae4ae9e8d155dfd96978eb10e7a.
2021-01-08remove obsolete pruning debug codemoneromooo-monero4-45/+0
2021-01-07wallet_rpc_server: don't abort on initial refresh failurexiphon1-1/+8
2021-01-04p2p: make REQUEST_SUPPORT_FLAGS optional, pass flags in node datamoneromooo-monero2-8/+15
removes a back and forth on connect, and the RPC can be removed once all peers have updated
2021-01-03add a max levin packet size by command typemoneromooo-monero4-0/+44
2021-01-03fix accessing an network address in a deleted contextmoneromooo-monero2-9/+15
Both drop_connection and add_host_fail can drop the connection, which invalidates the context, and thus the address it contains. Thanks to wfaressuissia[m] for lots of help and prodding when debugging this
2021-01-03Only INFO log for short seed words with ALLOW_SHORT_WORDS activerbrunner71-1/+1
2021-01-02blockchain: lock access to m_blocks_hash_of_hashesmoneromooo-monero1-0/+2
it is accessed both when adding and when prevalidating a set of new hashes from a peer
2021-01-02protocol: handle receiving a block hash we've not added yetmoneromooo-monero1-4/+9
2021-01-02wallet_api: store fee for incoming txs in historyBen Evanoff1-0/+1
2021-01-01p2p: only log to global when a blocked IP is not already blockedmoneromooo-monero1-1/+8
2021-01-01p2p: fix cubic selection in filtered peer listmoneromooo1-2/+2
Integer quantization biased the picks a lot (leading some indices to never be selected)
2021-01-01p2p: ignore empty IP from DNS block listmoneromooo-monero1-0/+2
ie, if the list ends in ;
2020-12-31Header row for peer list in sync_infoDenis Goddard1-0/+1
2020-12-31protocol: more sanity checks in new chain block hashesmoneromooo-monero5-18/+80
2020-12-31simplewallet: Add input file parameter to sign_transferSteff Richards1-5/+20
2020-12-31p2p: fix set_peer_just_seen ignoring last_seenmoneromooo1-4/+5
2020-12-31p2p: fix deadlock banning while updating peer listsmoneromooo1-0/+1
2020-12-30protocol: fix wrong command in logsmoneromooo-monero1-9/+1
this is not a levin packet, this is just its payload
2020-12-30protocol: don't reset last request time on an idle timermoneromooo-monero1-1/+1
this prevents losing time of "idle time" for a peer, which could otherwise be reset by another timed sync command from the peer
2020-12-29rpc: limit the number of txes for get_blocks.binmoneromooo-monero11-22/+32
2020-12-27protocol: fix false positives dropping peersmoneromooo-monero1-23/+21
it'd trigger on reorgs
2020-12-27Revert "Reject existing claimed blocks in sync mode"luigi11111-18/+19
2020-12-26cryptonote_basic: guess what got lost porting patches to branches againmoneromooo-monero1-1/+1
2020-12-26simplewallet: add "address mnew" commandcodesoap1-2/+28
2020-12-25protocol: drop nodes if they claim new data but only give stale datamoneromooo-monero3-5/+18
Some joker is spending time actually doing this
2020-12-25wallet api: allow wallet to fetch all key images via apibenevanoff3-4/+5
2020-12-22restrict public node checks a littlemoneromooo-monero7-11/+68
do not include blocked hosts in peer lists or public node lists by default, warn about no https on clearnet and about untrusted peers likely being spies
2020-12-22Command max_bytes moved from dynamic map to static switchLee Clagett7-45/+75
2020-12-22ban lists may now include subnetsmoneromooo-monero2-6/+18
2020-12-20Optional DNS based blocklistmoneromooo-monero5-5/+67
If enabled, pulls IPs to block on blocklist.moneropulse.*, and blocks then for 8 days (so IPs dropping from the list will eventually get unblocked, and DNS failures don't result in instant clearing of the blocklist). Enable with --enable-dns-blocklist
2020-12-17rpc: add a busy_syncing field to get_infomoneromooo-monero4-1/+13
true if and pretty much only if new blocks are being added
2020-12-17protocol: reject claimed block hashes that already are in the chainmoneromooo-monero1-0/+13
2020-12-17Add aggressive restrictions to pre-handshake p2p buffer limitLee Clagett4-1/+7
2020-12-16protocol: drop peers we can't download anything from in sync modemoneromooo-monero1-19/+5
instead of the (incorrect) check for whether we think we might have a user for it at some point in the near future. We can reconnect.
2020-12-15protocol: remove unused (and cunningly uninitialized) fieldmoneromooo-monero1-2/+0
2020-12-15p2p: ifx getting seed nodes for uncommon casesmoneromooo-monero1-1/+3
The code is technically correct, but liable to easily become incorrect with changes
2020-12-14daemon: the ban command can now load IPs from a file (ban @filename)moneromooo-monero2-4/+42
2020-12-13p2p: remove peers from grey and anchors lists when blockedmoneromooo-monero1-0/+2
2020-12-13p2p: ignore incoming peer list entries when we have them blockedmoneromooo-monero1-1/+3
2020-12-12protocol: include first new block in chain entry responsemoneromooo-monero2-0/+12
2020-12-11protocol: stricter checks on received chain hash listmoneromooo2-0/+36
2020-12-11protocol: revert incoming chain height check against local chainmoneromooo-monero1-1/+1
We can actually request a chain that's further away from what we have as we buffer more and more
2020-12-10protocol: one more sanity check on usable data from a peermoneromooo-monero1-1/+1
2020-12-10protocol: drop origin IP if a block fails to verify in sync modemoneromooo-monero5-24/+53
It would otherwise be possible for a peer to send bad blocks, then disconnect and reconnect again, escaping bans
2020-12-10protocol: add calls to reserve where appropriatemoneromooo-monero1-0/+7
2020-12-10protocol: add a sanity check to the number of block hashes sentmoneromooo-monero2-1/+2
2020-12-10protocol: fix asking for pruned blocks for v10moneromooo-monero1-1/+1
Old format is still alloewd there, this is a two fork update
2020-12-10simplewallet: don't complain about connecting to the daemon when offlinemoneromooo-monero2-4/+10
2020-12-10protocol: more restrictive checks on chain entry responsemoneromooo-monero1-1/+8
2020-12-10rpc: report target height as 0 when syncedmoneromooo-monero1-2/+2
since it only makes sense when syncing, and it confuses people
2020-12-10protocol: fix switchting to adding blocks if noone's adding the next spanmoneromooo-monero1-2/+1
2020-12-08Fixed issues found by static analysisSChernykh2-5/+5
- rolling_median: tried to free uninitialized pointer in a constructor - net_node.inl: erase-remove idiom was used incorrectly. remove_if doesn't actually remove elements, see http://cpp.sh/6fcjv - bulletproofs.cc: call to sizeof() instead of vector.size(), luckily it only impacts performance and not code logic there
2020-12-06protocol: drop peers that don't reply to queriesmoneromooo3-11/+37
2020-12-06p2p: fix race condition accessing a deleted contextmoneromooo-monero3-10/+12
2020-12-06db_lmdb: move spammy "not found in db" message to TRACEmoneromooo-monero1-2/+2
These are functions that check whether a tx is in the db, so whether it is there or not is really not interesting, and it seems to scare people from time to time
2020-12-05p2p: drop peers that spam peer listsmoneromooo-monero2-0/+6
There's always some people who just want to abuse things
2020-12-04keep only the last seen node on a given host in the white listmoneromooo2-0/+15
2020-12-04protocol: drop peers that decrease claimed heightmoneromooo1-1/+16
2020-12-04protocol: add scoring system to drop peers that don't behavemoneromooo3-11/+52
2020-12-04crypto: fix non zero scalar being 0 after reducingmoneromooo-monero1-4/+8
2020-12-03p2p: add a tor seed nodemoneromooo-monero1-1/+2
2020-12-03wallet2: set propagation timeout to current max timeoutselsta1-1/+2
2020-12-03p2p: fix endianness when checking IPv6 addresses mapping to IPv4moneromooo-monero1-5/+3
2020-12-03p2p: make this work with boost <= 1.65 (pffff)moneromooo-monero1-0/+4
2020-12-03p2p: rewrite boost's make_address_v4 to cater for < 1.66moneromooo1-9/+14
2020-11-29p2p: give all hosts the same chance of being picked for connectingmoneromooo1-1/+26
even if some run more than one node
2020-11-29net_node: add tor / i2p seed nodesselsta1-2/+14
Co-authored-by: Lee Clagett <code@leeclagett.com>
2020-11-28Allow tx note edits via TransactionHistory object in wallet/apidsc3-0/+13
2020-11-25cryptonote_core: dandelion - use local height or median height if syncingxiphon7-15/+75