aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-10-11tx_pool: do not divide by 0moneromooo-monero1-2/+2
In case of a 0 tx weight, we use a placeholder value to insert in the fee-per-byte set. This is used for pruning and mining, and those txes are pruned, so will not be too large, nor added to the block template if mining, so this is safe. CID 204465
2019-10-11cryptonote: don't leave block_weight uninitializedmoneromooo-monero1-0/+1
CID 204467
2019-10-11protocol: initialize block_weight in block_complete_entry ctormoneromooo-monero1-1/+1
CID 204479
2019-10-11cryptonote: add function to get weight from a pruned txmoneromooo-monero4-11/+104
The weight of the prunable data is deterministic from the unpruned data, so it can be determined from a pruned tx
2019-10-10Merge pull request #5978luigi11111-3/+6
77afe91 unit_tests: fix build with boost 1.69 (moneromooo-monero)
2019-10-11unit_tests: fix build with boost 1.69moneromooo-monero1-3/+6
2019-10-10blockchain: fill in cumulative block weight for alt blocksmoneromooo-monero3-0/+86
2019-10-10Merge pull request #5969luigi11111-0/+2
080ea73 easylogging++: fix build with glibc (moneromooo-monero)
2019-10-10simplewallet: do not print warning for locked coinbase txesmoneromooo-monero1-1/+1
since they're all locked for a fixed amount
2019-10-10cryptonote: fill in tx weight when syncing from pruned blocksmoneromooo-monero1-5/+1
2019-10-10Change 'Pootle' to 'Weblate' in Readmeerciccione1-1/+1
2019-10-08easylogging++: fix build with glibcmoneromooo-monero1-0/+2
2019-10-08Merge pull request #5915luigi111130-195/+731
8330e77 monerod can now sync from pruned blocks (moneromooo-monero)
2019-10-08Merge pull request #5960luigi11111-5/+11
ae34e1b unit_tests: fix ringdb unit tests (moneromooo-monero)
2019-10-08Merge pull request #5948luigi11112-19/+21
1c600a4 Fix randomx cache selection for RPCs (hyc) 2675cf4 Update to RandomX v1.1.3, simplify (hyc) f54301d Fix for miners on reorg (hyc)
2019-10-08Merge pull request #5936luigi11111-2/+2
24473d7 build: fix MinGW GUI dependencies build (xiphon)
2019-10-08Merge pull request #5932luigi11111-1/+8
f3b65c6 Request a thread stack size that is large enough for unbound (omartijn)
2019-10-08Merge pull request #5927luigi11112-3/+9
6d378d9 easylogging++: always omit ANSI codes when colour is not supported (moneromooo-monero)
2019-10-08Merge pull request #5926luigi11111-1/+1
74a23e9 protocol: only print sync complete message when out of precompiled hashes (moneromooo-monero)
2019-10-08Merge pulll request #5924luigi11111-1/+1
5bcbd97 Disable easylogging crash log on non-glibc libraries (omartijn)
2019-10-08Merge pull request #5921luigi11114-21/+99
2a7d915 Fixed i2p/tor tx flooding bug (white noise disabled) (vtnerd)
2019-10-08Merge pull request #5918luigi11113-5/+30
4371791 epee: implement handshake timeout for SSL connections (xiphon)
2019-10-08Merge pull request #5917luigi11111-1/+2
7d81850 epee: fix network timeouts in blocked_mode_client (xiphon)
2019-10-07Fix for miners on reorgHoward Chu1-1/+4
Make sure dataset gets re-init'd if a reorg changes the epoch
2019-10-07Print cdifficulty and don't serialize miner tx hash twiceDoyle2-1/+1
2019-10-06tx_pool: make spent return-by-reference as intendedstoffu2-2/+2
2019-10-05Update to RandomX v1.1.3, simplifyHoward Chu2-19/+2
We don't need to detect if the cache has changed, just always call to set it on the VM. The call will be a no-op if the cache hasn't changed.
2019-10-04unit_tests: fix ringdb unit testsmoneromooo-monero1-5/+11
2019-10-04wallet2: don't delete file that may not existselsta1-5/+5
2019-10-03Fix randomx cache selection for RPCsHoward Chu1-12/+28
Was using the wrong cache slot, and returning invalid PoW hashes to RPC clients
2019-10-03Fix debug featurecslashm1-0/+2
2019-10-03Revert PR #5835 (export view key)cslashm1-1/+1
2019-10-03Add display addresscslashm2-1/+24
2019-10-03Add hmac over encrypted value during transactioncslashm3-106/+190
2019-10-02p2p: reject invalid pruning seeds in peer listsmoneromooo-monero1-0/+2
2019-10-02epee: tcp server - set SO_LINGER instead of SO_REUSEADDR optionxiphon1-4/+2
2019-10-02p2p: reject invalid rpc_port in peer listsxiphon1-0/+2
2019-10-02wallet2: add ignore-outputs-{above/below} optionstoffu4-1/+88
https://github.com/aeonix/aeon/pull/131
2019-10-01simplewallet.cpp - clean up welcome messageSomaticFanatic1-3/+3
Fixed a typo ("and -are- not visible to the world by default"), removed a few redundant commas, and capitalized words inside the URL.
2019-09-30Merge pull request #5939luigi11111-0/+2
9baf2a7 build: link wallet_merged against blockchain_db and hardforks obj (xiphon)
2019-09-30Merge pull request #5913luigi11111-1/+1
dbc7c44 README: fix TOC link (selsta)
2019-09-30Merge pull request #5910luigi11111-0/+5
1b91beb abstract_tcp_server2: fix lingering connections (moneromooo-monero)
2019-09-30Merge pull request #5908luigi111140-54754/+59954
7336864 refresh language files (erciccione)
2019-09-30Merge pull request #5906luigi11111-1/+0
bd9c12e simplewallet: remove erroneously added line under subaddress-lookahead (stoffu)
2019-09-30Merge pull request #5902luigi11111-1/+3
b9da023 blockchain: keep block template timestamp not below recent median (moneromooo-monero)
2019-09-30Merge pull request #5900luigi11111-3/+10
6bbc646 Fix bug in mempool get_transaction_stats histogram calculation (tomsmeding)
2019-09-30Merge pull request #5896luigi11111-21/+26
6185d6d README: Add deps for translations and hardware wallet support (glv2)
2019-09-30Merge pull request #5895luigi11112-9/+9
fdc00d0 unit tests: replace global var with lambda returning static local var (stoffu)
2019-09-30Merge pull request #5894luigi11111-0/+4
c89f7ef wallet2_api: fix load unsigned tx from file error propagation (xiphon)
2019-09-30Merge pull request #5893luigi11116-4/+24
Coverity fixes [3a81639, 1bd962d, 2825f07, d099658, d46f701, cd57a10] (anonimal)
2019-09-30Merge pull request #5653luigi11111-28/+37
5f8524e Streamline build setup (hyc)
2019-09-28blockchain: tweak fee as a function of median valuesmoneromooo-monero1-1/+2
Use the lesser of the short and long terms medians, rather then the long term median alone From ArticMine: I found a bug in the new fee calculation formula with using only the long term median It actually needs to be the lesser of the long term median and the old (modified short term median) short term median with the last 10 blocks calculated as empty Yes the issue occurs if there is a large long term median and, the short term median then falls and tries to then rise again The fees are could be not high enough for example LTM and STM rise to say 2000000 bytes STM falls back to 300000 bytes Fees are now based on 2000000 bytes until LTM also falls So the STM is could prevented from rising back up STM short term median LTM long term median
2019-09-28RPC on_transfer_split error consistent with on_transfer if no tx sentbinaryFate1-0/+7
2019-09-28build: link wallet_merged against blockchain_db and hardforks objxiphon1-0/+2
2019-09-27abstract_tcp_server2: log pointer, not contents, where appropriatemoneromooo-monero1-1/+1
2019-09-27monerod can now sync from pruned blocksmoneromooo-monero30-195/+731
If the peer (whether pruned or not itself) supports sending pruned blocks to syncing nodes, the pruned version will be sent along with the hash of the pruned data and the block weight. The original tx hashes can be reconstructed from the pruned txes and theur prunable data hash. Those hashes and the block weights are hashes and checked against the set of precompiled hashes, ensuring the data we received is the original data. It is currently not possible to use this system when not using the set of precompiled hashes, since block weights can not otherwise be checked for validity. This is off by default for now, and is enabled by --sync-pruned-blocks
2019-09-26README: Add deps for translations and hardware wallet supportGuillaume Le Vaillant1-21/+26
2019-09-26build: fix MinGW GUI dependencies buildxiphon1-2/+2
2019-09-25Merge pull request #5549Riccardo Spagni24-49/+609
81c2ad6d RandomX integration (Howard Chu)
2019-09-25RandomX integrationHoward Chu24-49/+609
Support RandomX PoW algorithm
2019-09-25Merge pull request #5930Riccardo Spagni2-4/+8
fcfa6665 Don't set ARCH_ID if it's already set (Howard Chu)
2019-09-25Don't set ARCH_ID if it's already setHoward Chu2-4/+8
Usually it's unset, but depends toolchain files set it explicitly for cross-compiling. Don't override preset values. But make sure it's set for all x86 / x86_64 builds, not just Linux. Also make sure -std=c++11 is set for Darwin builds, not all submodules were getting it consistently before.
2019-09-25Merge pull request #5929Riccardo Spagni3-5/+14
31bf2e25 Revert "easylogging++: ensure it finds boost headers" (moneromooo-monero) 614d6b57 easylogging++: split strings manually (moneromooo-monero)
2019-09-25ban peers sending bad pow outrightmoneromooo-monero9-15/+25
PoW is expensive to verify, so be strict
2019-09-25Request a thread stack size that is large enough for unboundMartijn Otto1-1/+8
Unbound uses a 64 kb large character array on the stack, which leads to a stack overflow for some libc implementations. musl only gives 80 kb in total. This PR changes the stack size for these threads to 1mb, which solves the segmentation fault.
2019-09-24Revert "easylogging++: ensure it finds boost headers"moneromooo-monero2-3/+1
This reverts commit 9a95827ea72574c3e861aa3167c0b96b9bae64b3.
2019-09-24easylogging++: split strings manuallymoneromooo-monero1-2/+13
Avoids cmake skullduggery
2019-09-24Merge pull request #5928luigi11112-1/+3
9a95827 easylogging++: ensure it finds boost headers (moneromooo-monero)
2019-09-24easylogging++: ensure it finds boost headersmoneromooo-monero2-1/+3
2019-09-24Streamline build setupHoward Chu1-28/+37
Use shorter, prefix-unique directory names gitian-builder -> builder gitian-sigs -> sigs monero-binaries -> out Just use builder/inputs/monero, no need for 2nd repo clone
2019-09-24Merge pull request #5909luigi11112-11/+51
8933955 epee: misc_log_ex.h can now be used in C code (moneromooo-monero)
2019-09-24easylogging++: always omit ANSI codes when colour is not supportedmoneromooo-monero2-3/+9
2019-09-24epee: misc_log_ex.h can now be used in C codemoneromooo-monero2-11/+51
use mfatal/merror/mwarning/minfo/mdebug/mtrace
2019-09-24Merge pull request #5916luigi11115-15/+33
7b076d5 p2p: fix bans taking port into account (moneromooo-monero)
2019-09-24Merge pull request #5907luigi11111-0/+4
3699544 cmake: add protolib to zmq dependency libs (stoffu)
2019-09-24Merge pull request #5905luigi11111-5/+0
Revert a96c1a4 and adc16d2 (moneromooo-monero)
2019-09-24Merge pull request #5892luigi11115-8/+22
ab2819a depends: attempt to fix readline (iDunk5400)
2019-09-24Merge pull request #5891luigi11111-6/+6
e09dbc6 depends: fix monero binaries Boost linking errors (iDunk5400)
2019-09-24Merge pull request #5886luigi11111-1/+1
ae32862 README: fix master branch spelling, it is not Master (moneromooo-monero)
2019-09-24protocol: only print sync complete message when out of precompiled hashesmoneromooo-monero1-1/+1
This avoids most premature triggers
2019-09-24Merge pull request #5884luigi11111-0/+13
7de6671 Add the iwyu target to get information on unused headers (omartijn)
2019-09-24Merge pull request #5882luigi11115-6/+51
a444f06 blockchain: enforce 10 block age for spending outputs (moneromooo-monero)
2019-09-24Merge pull request #5881luigi11111-0/+4
11fa442 Makefile: add a top level debug target for ASAN (moneromooo-monero)
2019-09-24Merge pull request #5878luigi111120-3188/+35
f9b3f6e Removed Berkeley DB and db switching logic (JesusRami)
2019-09-24Merge pull request #5877luigi111113-38/+35
2cd4fd8 Changed the use of boost:value_initialized for C++ list initializer (JesusRami) 4ad191f Removed unused boost/value_init header (whyamiroot) 928f4be Make null hash constants constexpr (whyamiroot)
2019-09-24Merge pull request #5875luigi11111-0/+1
0c55837 contrib: add a suppressions file for leak sanitizer (moneromooo-monero)
2019-09-24Merge pull request #5864luigi11118-66/+217
32f725d Properly format multiline logs (moneromooo-monero)
2019-09-24Merge pull request #5848luigi111124-54/+1824
functional_tests (moneromooo-monero)
2019-09-24Merge pull request #5831luigi111110-144/+220
d066383 core: move hardforks into its own lib (moneromooo-monero)
2019-09-23Disable easylogging crash log on non-glibc librariesMartijn Otto1-1/+1
- easylogging assumes certain non-standard headers and functions - these function only exist in glibc - compiling under linux without glibc thus broke compilation
2019-09-19core: move hardforks into its own libmoneromooo-monero10-144/+220
So it can be used by others without encumbrance
2019-09-17epee: implement handshake timeout for SSL connectionsxiphon3-5/+30
2019-09-17blockchain: enforce 10 block age for spending outputsmoneromooo-monero5-6/+51
Some custom wallet code apparently ignores this, which causes users of that code to be fingerprinted
2019-09-17functional_tests: fix failure on windows removing filesmoneromooo-monero1-0/+2
2019-09-17fix wallet python test when run with ctestmoneromooo-monero2-1/+3
2019-09-17functional_tests: python3 compatibilitymoneromooo-monero7-15/+15
and add missing tests
2019-09-17functional_tests: pop exactly what we need to test before testingmoneromooo-monero10-10/+20
2019-09-17functional_tests: check for RPC methods which aren't exposedmoneromooo-monero4-0/+196
2019-09-17functional_tests: add get_transaction_pool_statsmoneromooo-monero3-3/+92
Also fix part of the RPC results being returned as binary. This makes the RPC backward incompatible.
2019-09-17functional_tests: add save_bcmoneromooo-monero2-0/+8
2019-09-17functional_tests: add is_key_image_spent testsmoneromooo-monero2-1/+51
2019-09-17functional_tests: add submitblock testmoneromooo-monero1-0/+28
2019-09-17functional_tests: check transaction fee is around what we expectmoneromooo-monero1-2/+9
2019-09-17functional_tests: add tx_notes testsmoneromooo-monero2-0/+41
2019-09-17functional_tests: add wallet attributes testmoneromooo-monero2-0/+46
2019-09-17functional_tests: add rescan_spent/rescan_blockchain testsmoneromooo-monero2-0/+60
2019-09-17functional_tests: add monero: URI testsmoneromooo-monero3-1/+261
2019-09-17wallet: add edit_address_book RPCmoneromooo-monero7-7/+241
2019-09-17functional_tests: add address book testsmoneromooo-monero3-1/+274
2019-09-17functional_tests: add wallet password change, store and tag testsmoneromooo-monero3-9/+249
2019-09-17functional_tests: add spend proof testsmoneromooo-monero2-0/+60
2019-09-17functional_tests: add test for mining via walletmoneromooo-monero2-7/+44
2019-09-17functional_tests: add multisig state testsmoneromooo-monero2-0/+80
2019-09-17functional_tests: add get_transfers testmoneromooo-monero2-0/+34
2019-09-17functional_tests: add missing sweep_dust parameters, and test itmoneromooo-monero2-1/+15
though not a very good test, but we don't have dust handy
2019-09-17functional_tests: move extraneous stuff out of the frameworkmoneromooo-monero2-17/+16
2019-09-16p2p: fix bans taking port into accountmoneromooo-monero5-15/+33
2019-09-16epee: fix network timeouts in blocked_mode_clientxiphon1-1/+2
2019-09-16Properly format multiline logsmoneromooo-monero8-66/+217
As a side effect, colouring on Windows should now work regardless of version
2019-09-16Removed Berkeley DB and db switching logicJesus Ramirez21-3190/+37
2019-09-14README: fix TOC linkselsta1-1/+1
2019-09-14Merge pull request #5861luigi11111-0/+16
f0356f7 wallet2: enable ignoring fractional outputs also when sweeping (stoffu)
2019-09-14Merge pull request #5818luigi111110-77/+550
f91a06c Dropping cppzmq dependency; adding some zmq utils (vtnerd)
2019-09-14Merge pull request #5899luigi11112-4/+4
7d3bba5 wallet2_api: add missing parameter (selsta)
2019-09-14Merge pull request #5898luigi11111-1/+1
73f22c4 depends: fix MacOS build with Clang 3.7.1 (vtnerd)
2019-09-14Merge pull request #5897luigi11111-0/+3
928a540 updating Readme.md TOC (HarryMacfinned)
2019-09-14Merge pull request #5874luigi11111-15/+13
f380f69 simplewallet: warn if invalid default ring size is set and actually ignore the setting (stoffu)
2019-09-14Merge pull request #5872luigi11111-1/+2
495a7e5 rpc: don't include an address in mining_status when not mining (moneromooo-monero)
2019-09-14Merge pull request #5871luigi11112-1/+12
3407743 wallet_rpc_server: add locked field to get_transfers/get_{bulk_,}_payments (moneromooo-monero)
2019-09-14Merge pull request #5870luigi11111-0/+1
83ca764 wallet_rpc_server: call deinit on exit (moneromooo-monero)
2019-09-14Merge pull request #5869luigi11111-0/+1
6e46b06 cmake: ensure PYTHON_EXECUTABLE is set (moneromooo-monero)
2019-09-14Merge pull request #5868luigi11111-1/+1
1f1fff2 daemon: print mining algorithm in mining_status even when not mining (moneromooo-monero)
2019-09-14Merge pull request #5866luigi11113-52/+49
21f6c80 rpc: move a leftover light wallet RPC out of daemon RPC (moneromooo-monero)
2019-09-14Merge pull request #5865luigi11112-7/+8
11f13da blockchain: fix logging bad number of blocks if first one fails (moneromooo-monero) 19bfe7e simplewallet: fix warnings about useless std::move (moneromooo-monero)
2019-09-14Merge pull request #5854luigi11111-4/+4
2cb22d4 core: make the 'update probably needed soon' message less scary (moneromooo-monero)
2019-09-14Merge pull request #5823luigi11116-13/+70
26072f1 blockchain: forbid v1 coinbase from v12 (moneromooo-monero) 555dc7c core: from v12, require consistent ring size for mixable txes (moneromooo-monero) d22dfb7 blockchain: reject rct signatures in coinbase txes from v12 (moneromooo-monero)
2019-09-12abstract_tcp_server2: fix lingering connectionsmoneromooo-monero1-0/+5
Resetting the timer after shutdown was initiated would keep a reference to the object inside ASIO, which would keep the connection alive until the timer timed out
2019-09-11blockchain: keep block template timestamp not below recent medianmoneromooo-monero1-1/+3
Such a template would yield an invalid block, though would require an attacker to have mined a long blockchain with drifting times (assuming the miner's clock is roughly correct) Fixed by crCr62U0
2019-09-11refresh language fileserciccione40-54754/+59954
2019-09-11cmake: add protolib to zmq dependency libsstoffu1-0/+4
Needed for Ubuntu 19.04: https://ubuntu.pkgs.org/19.04/ubuntu-universe-amd64/libnorm-dev_1.5.8+dfsg2-1_amd64.deb.html
2019-09-11simplewallet: remove erroneously added line under subaddress-lookaheadstoffu1-1/+0
2019-09-11Revert "cryptonote_protocol: drop peers we can't download from when syncing"moneromooo-monero1-5/+0
This reverts commit a96c1a46d4b3854252de75cbe09458ad5d1aecb0.
2019-09-11Revert "Fix check for disconnecting peers when syncing"moneromooo-monero1-1/+1
This reverts commit adc16d2504d3e76b0115791caf10446684d45433.
2019-09-10wallet2: enable ignoring fractional outputs also when sweepingstoffu1-0/+16
2019-09-09wallet2_api: add missing parameterselsta2-4/+4
2019-09-09updating Readme.md TOCHarry MacFinned1-0/+3
updating the TOC
2019-09-09depends: fix monero binaries Boost linking errorsiDunk54001-6/+6
It would try to link against host system Boost libs when building outside gitian. Tested with x86_64-linux-gnu target.
2019-09-09unit tests: replace global var with lambda returning static local varstoffu2-9/+9
Fixes assertion failure (curstate == 1) in random.c in debug mode
2019-09-08Merge pull request #5876luigi11111-6/+12
a5c7eeb unit_tests: fix build with CLANG 8 and boost 1.69 (moneromooo-monero)
2019-09-08Merge pull request #5858luigi11111-1/+1
5f4bd92 Fix Travis build on Windows + Mac (hyperreality)
2019-09-08Merge pull request #5857luigi11112-2/+4
e907305 ITS#9068 fix backslash escaping (hyc)
2019-09-08Merge pull request #5856luigi11111-1/+1
f56e160 unit_tests: Fix uninitialized values (liptakmatyas)
2019-09-08Merge pull request #5855luigi11117-63/+94
2ec455d wallet: fix mismatch between two concepts of 'balance' (moneromooo-monero)
2019-09-08Merge pull request #5851luigi11111-4/+3
cbdd76d readme: remove snap monero package and add debian (erciccione)
2019-09-08Merge pull request #5850luigi11111-3/+1
c4da1a2 wallet2: fix unset_ring tx retrieval checks (moneromooo-monero)
2019-09-08Merge pull request #5849luigi11113-7/+22
b51f4cd daemon: add pruned and publicrpc flags to print_pl (moneromooo-monero)
2019-09-08Merge pull request #5847luigi11111-1/+1
894cc81 wallet2: fix cold signing losing tx keys (moneromooo-monero)
2019-09-08Merge pull request #5843luigi11112-3/+176
9f68669 blockchain_blackball: add --historical-stat which prints historical stats of spent ratio (stoffu) 2425f27blockchain_blackball: use is_output_spent instead of ringdb.blackballed for spentness test (stoffu) 50813c1 ringdb: fix bug in blackballing (stoffu)
2019-09-08Merge pull request #5842luigi11111-1/+16
87d2f06 simplewallet: moan harder about untrusted nodes (moneromooo-monero)
2019-09-08Merge pull request #5841luigi11111-1/+10
cae488d p2p: reject incoming connections to self (moneromooo-monero)
2019-09-08Merge pull request #5840luigi11115-0/+64
063eebb daemon: implement 'set_bootstrap_daemon' command (xiphon)
2019-09-08Merge pull request #5839luigi11112-17/+26
e353e3d p2p: sanitize peer lists (moneromooo-monero)
2019-09-08Merge pull request #5838luigi11111-1/+1
2e26536 p2p: move log away from global (moneromooo-monero)
2019-09-08Merge pull request #5835luigi11111-1/+1
26f7a26 device: fix ledger requesting secret keys export twice (xiphon)
2019-09-08Merge pull request #5833luigi11111-0/+1
289d215 rpc: fix unitialized 'core_rpc_server::m_was_bootstrap_ever_used' (xiphon)
2019-09-08Merge pull request #5830luigi11111-1/+1
5a4c6cc daemon: fix merge error removing the 'never seen before' timestamp check (moneromooo-monero)
2019-09-08Merge pull request #5544luigi111115-43/+175
d046ca1 difficulty: fix check_hash on big endian (moneromooo-monero) bdda084 epee: fix local/loopback checks on big endian (moneromooo-monero) 32c3834 storages: fix writing varints on big endian (moneromooo-monero) 516f7b9 storages: fix 'portable' storage on big endian (moneromooo-monero) 0e2fda5 unit_tests: fix levin unit test on big endian (moneromooo-monero) 4672b5c db_lmdb: print percentages as percentages, not ratios (moneromooo-monero) 54fd97a slow-hash: fix CNv2+ on big endian (moneromooo-monero) c1fa4a7 boost: fix little/big endian compatibility (moneromooo-monero) bc1144e Fix IP address serialization on big endian (moneromooo-monero)
2019-09-09wallet2_api: fix load unsigned tx from file error propagationxiphon1-0/+4
2019-09-08depends: fix MacOS build with Clang 3.7.1Lee Clagett1-1/+1
2019-09-08epee: abstract_tcp_server2: resolve CID 203919 (DC.WEAK_CRYPTO)anonimal1-1/+13
The problem actually exists in two parts: 1. When sending chunks over a connection, if the queue size is greater than N, the seed is predictable across every monero node. >"If rand() is used before any calls to srand(), rand() behaves as if it was seeded with srand(1). Each time rand() is seeded with the same seed, it must produce the same sequence of values." 2. The CID speaks for itself: "'rand' should not be used for security-related applications, because linear congruential algorithms are too easy to break." *But* this is an area of contention. One could argue that a CSPRNG is warranted in order to fully mitigate any potential timing attacks based on crafting chunk responses. Others could argue that the existing LCG, or even an MTG, would suffice (if properly seeded). As a compromise, I've used an MTG with a full bit space. This should give a healthy balance of security and speed without relying on the existing crypto library (which I'm told might break on some systems since epee is not (shouldn't be) dependent upon the existing crypto library).
2019-09-07depends: attempt to fix readlineiDunk54005-8/+22
Make readline actually compile, and make ncurses use existing terminfo data (if available).
2019-09-07tests: rct_mlsag: resolve CID 203914 (UNINIT_CTOR)anonimal1-1/+1
2019-09-07bootstrap_daemon: resolve CID 203915 (UNCAUGHT_EXCEPT)anonimal2-2/+2
The issue is triggered by the captured `this` in RPC server, which passes reference to throwable `core_rpc_server`: `core_rpc_server.cpp:164: m_bootstrap_daemon.reset(new bootstrap_daemon([this]{ return get_random_public_node(); }));` The solution is to simply remove noexcept from the remaining `bootstrap_daemon` constructors because noexcept is false in this context. >"An exception of type "boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::asio::invalid_service_owner>>" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate()."
2019-09-06epee: connection_basic: resolve CID 203916 (UNINIT_CTOR)anonimal1-0/+1
2019-09-06wallet2: resolve CID 203918 null pointer deference (NULL_RETURNS)anonimal1-0/+6
2019-09-06epee: connection_basic: resolve CID 203920 (UNINIT_CTOR)anonimal1-0/+1
2019-09-06README: fix master branch spelling, it is not Mastermoneromooo-monero1-1/+1
2019-09-05Make null hash constants constexprLev Sizov2-3/+3
Simplify m_template initialization in miner
2019-09-05Add the iwyu target to get information on unused headersMartijn Otto1-0/+13
With this change, building the iwyu target will provide information on unused headers, which can be removed to reduce compilation times.
2019-09-05wallet: fix mismatch between two concepts of "balance"moneromooo-monero7-63/+94
One considers the blockchain, while the other considers the blockchain and some recent actions, such as a recently created transaction which spend some outputs, but isn't yet mined. Typically, the "balance" command wants the latter, to reflect the recent action, but things like proving ownership wants the former. This fixes a crash in get_reserve_proof, where a preliminary check and the main code used two concepts of "balance".
2019-09-05wallet_rpc_server: add locked field to get_transfers/get_{bulk_,}_paymentsmoneromooo-monero2-1/+12
Much easier to work with than the raw unlock_time field
2019-09-04Fix IP address serialization on big endianmoneromooo-monero2-1/+17
IP addresses are stored in network byte order even on little endian hosts
2019-09-04boost: fix little/big endian compatibilitymoneromooo-monero2-2/+4
When no little/big endian flag is given to the writer, it stores data in host endianness. When loading, if no flag is set, it also assumes host endianness. This works as long as the loading and writing are done on machines with the same endianness. We change this to default to little endian when saving. This will cause the loader to see the little endian flag, and swap endianness when loading on a big endian machine. Similarly, writing on a big endian machine will swap on save, and a little endian machine will load little endian data.
2019-09-04slow-hash: fix CNv2+ on big endianmoneromooo-monero1-3/+3
2019-09-04db_lmdb: print percentages as percentages, not ratiosmoneromooo-monero1-1/+1
2019-09-04unit_tests: fix levin unit test on big endianmoneromooo-monero1-23/+23
2019-09-04storages: fix "portable" storage on big endianmoneromooo-monero4-3/+99
2019-09-04storages: fix writing varints on big endianmoneromooo-monero1-1/+1
2019-09-04epee: fix local/loopback checks on big endianmoneromooo-monero1-0/+7
IPv4 addresses are kept in network byte order in memory
2019-09-04difficulty: fix check_hash on big endianmoneromooo-monero3-9/+20
2019-09-04Merge pull request #5824luigi11111-1/+1
2a41dc0 epee: fix connections not being properly closed in some instances (moneromooo-monero)
2019-09-04Merge pull request #5822luigi11111-0/+2
839fc62 reject setting lookahead major or minor to 0 (moneromoo-monero)
2019-09-04Merge pull request #5819luigi11111-1/+2
07cb087 blockchain: Fix alt chain generated coins overflow (iamamyth)
2019-09-04Merge pull request #5814luigi11111-91/+0
bdcdb0e Remove unused code under WINDWOS_PLATFORM guard (tomsmeding) a84aa04 syncobj.h no longer defines shared_guard, so remove those define's (tomsmeding)
2019-09-04Merge pull request #5806luigi11111-3/+3
69465e3 cryptonote_protocol: fix '--no-sync', ignore new blocks and txes (xiphon)
2019-09-04Merge pull request #5799luigi11115-35/+246
082730b daemon: automatic public nodes discovering and bootstrap daemon switching (xiphon)
2019-09-04Merge pull request #5796luigi11111-3/+3
e3cff3d Gitian build script fixes for MacOS (jonathancross)
2019-09-04Merge pull request #5764luigi11113-4/+4
f26e663 Gitian build (mac, linux): gzip => bzip2 (jonathancross)
2019-09-04Merge pull request #5536luigi111110-149/+577
1a367d6 simplewallet: lock console on inactivity (moneromooo-monero)
2019-09-04Makefile: add a top level debug target for ASANmoneromooo-monero1-0/+4