aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-08-27Merge pull request #2349Riccardo Spagni1-2/+20
1914c999 txpool: update db tx metadata when it changes (moneromooo) 4dbf29bd txpool: add tx size median to the pool stats (moneromooo)
2017-08-27Merge pull request #2347Riccardo Spagni1-2/+7
5807529e blockchain: cap memory size of retrieved blocks (moneromooo-monero) c1b10381 rpc: decrease memory usage a bit in getblocks.bin (moneromooo-monero)
2017-08-26Merge pull request #2314Riccardo Spagni4-2/+42
c22d22e2 Cleanup test impact of adding safesyncmode() method (Howard Chu) 9a859844 Toggle SAFE syncmode on and off automatically (Howard Chu)
2017-08-26Merge pull request #2313Riccardo Spagni1-23/+7
3dd34a49 Cleanup test impact of moving blockchain_db_types() (Howard Chu) 80344740 More DB support cleanup (Howard Chu) 4c7f8ac0 DB cleanup (Howard Chu)
2017-08-26blockchain: cap memory size of retrieved blocksmoneromooo-monero1-2/+7
It helps keep memory usage down when a wallet refreshes through a string of large blocks
2017-08-26rpc: add a new RPC to get current txpool backlog (sizes and fees)moneromooo-monero4-0/+31
2017-08-25txpool: update db tx metadata when it changesmoneromooo1-1/+15
2017-08-25txpool: add tx size median to the pool statsmoneromooo1-1/+5
2017-08-25Merge pull request #2330Riccardo Spagni1-1/+1
ea15e72d tx_pool: fix crash in stats (Howard Chu)
2017-08-23tx_pool: fix crash in statsHoward Chu1-1/+1
if tx receive_time == now. supersedes #2322
2017-08-22Cleanup test impact of adding safesyncmode() methodHoward Chu2-0/+12
2017-08-20Toggle SAFE syncmode on and off automaticallyHoward Chu3-2/+30
If monerod is started with default sync mode, set it to SAFE after synchronization completes. Set it back to FAST if synchronization restarts (e.g. because another peer has a longer blockchain). If monerod is started with an explicit sync mode, none of this automation takes effect.
2017-08-19DB cleanupHoward Chu1-23/+7
Hide LMDB-specific stuff behind blockchain_db.h. Nobody besides blockchain_db.cpp should ever be including DB-specific headers any more.
2017-08-18core: add mainnet v6 fork height at 1400000moneromooo-monero1-0/+3
2017-08-17Merge pull request #2303Riccardo Spagni2-3/+11
5a283078 cryptonote_protocol: large block sync size before v4 (moneromooo-monero) 7b747607 cryptonote_protocol: kick idle synchronizing peers (moneromooo-monero)
2017-08-17Merge pull request #2287Riccardo Spagni4-0/+23
827afcb7 protocol: pass blockchain cumulative difficulty when syncing (moneromooo-monero)
2017-08-17cryptonote_protocol: large block sync size before v4moneromooo-monero2-3/+11
2017-08-15protocol: pass blockchain cumulative difficulty when syncingmoneromooo-monero4-0/+23
Not used yet.
2017-08-15Merge pull request #2288Riccardo Spagni1-0/+7
c6e200a8 core: add --db-salvage command line flag (moneromooo-monero)
2017-08-15Merge pull request #2276Riccardo Spagni2-0/+24
a1891ebe tests: fix tests build (moneromooo-monero)
2017-08-15Merge pull request #2250Riccardo Spagni1-1/+3
f4f7eeba blockchain: log more info when we reject an orphan (moneromooo-monero)
2017-08-15Merge pull request #2246Riccardo Spagni2-14/+4
d732c73e blockchain: remove a few unused variables (moneromooo-monero)
2017-08-15Merge pull request #2237Riccardo Spagni1-8/+8
5d4ef719 core: speed up output index unique set calculation (moneromooo-monero) 19d7f568 perf_timer: allow profiling more granular than millisecond (moneromooo-monero) bda8c598 epee: add nanosecond timer and pause/restart profiling macros (moneromooo-monero)
2017-08-12core: add --db-salvage command line flagmoneromooo-monero1-0/+7
Use to load the database when the primary meta page is corrupted
2017-08-10tests: fix tests buildmoneromooo-monero2-0/+24
Add get_fork_version and add_ideal_fork_version to core so cryptonote_protocol does not have to need the Blockchain class directly, as it's not in its dependencies, and add those to the fake core classes in tests too.
2017-08-09protocol: add checks for top block hard fork versionmoneromooo-monero1-0/+9
We won't even talk to a peer which claims a wrong version for its top block. This will avoid syncing to known bad peers in the first place. Also add IP fails when failing to verify a block.
2017-08-07Merge pull request #2231Riccardo Spagni2-7/+7
61770ec2 change mixin to ring size in user visible places (moneromooo-monero)
2017-08-07change mixin to ring size in user visible placesmoneromooo-monero2-7/+7
2017-08-07Merge pull request #2262Riccardo Spagni1-1/+1
7f7d42f8 core: fix invalid memory access creating tx (moneromooo-monero)
2017-08-07Merge pull request #2225Riccardo Spagni3-1/+17
5d91b26c blockchain: skip checking tx semantics in embedded block hash range (moneromooo-monero)
2017-08-07core: fix invalid memory access creating txmoneromooo-monero1-1/+1
2017-08-07core: new API to disable DNS checkpoint lookupsmoneromooo-monero2-1/+10
2017-08-07Merge pull request #2149Riccardo Spagni2-25/+104
158c3ecf core: thread most of handle_incoming_tx (moneromooo-monero) f57ee382 cryptonote_protocol: retry stale spans early (moneromooo-monero) 90df52e1 cryptonote_protocol: light cleanup (moneromooo-monero) 84e23156 cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages (moneromooo-monero) 5be43fcd cryptonote_protocol_handler: sync speedup (moneromooo-monero)
2017-08-07Merge pull request #2243Riccardo Spagni1-0/+2
4d873046 blockchain: add testnet v6 fork height at 971400 (moneromooo-monero)
2017-08-07Merge pull request #2234Riccardo Spagni1-0/+1
214fd81e some include cleanup (moneromooo-monero)
2017-08-07Merge pull request #2230Riccardo Spagni1-0/+2
5dd722be core: add a message when loading checkpoints at init time (moneromooo-monero)
2017-08-07Merge pull request #2226Riccardo Spagni1-1/+0
14ec6ed8 tx_pool: remove obsolete unused m_config_folder field (moneromooo-monero)
2017-08-07Merge pull request #2222Riccardo Spagni1-1/+2
878205f1 core: fix lock ordering bug at init time (moneromooo-monero)
2017-08-07Merge pull request #2216Riccardo Spagni2-7/+7
d8becf2e blockchain: fix cryptonight buffer leak on exit (moneromooo-monero) 91aa90fc blockchain: ensure all blocks get their longhash precalculated (moneromooo-monero) ff4bcaed blockchain: pass correct height to get_block_longhash (moneromooo-monero)
2017-08-07Merge pull request #2206Riccardo Spagni1-1/+1
340feede core: randomly shuffle outputs (moneromooo-monero)
2017-08-07Merge pull request #2198Riccardo Spagni1-0/+14
53af9768 blockchain: one off warning when seeing a block with unknown version (moneromooo-monero)
2017-08-07blockchain: add testnet v6 fork height at 971400moneromooo-monero1-0/+2
2017-08-07core: thread most of handle_incoming_txmoneromooo-monero2-25/+104
2017-08-04blockchain: log more info when we reject an orphanmoneromooo-monero1-1/+3
We want to know what happened when a block is wrongly rejected
2017-08-03blockchain: remove a few unused variablesmoneromooo-monero2-14/+4
2017-08-01core: speed up output index unique set calculationmoneromooo-monero1-8/+8
A sort+uniq step was done for every tx in a 200 block chunk, causing a lot of repeated scanning as the size of the offset map got larger with every added tx. We now do the step only once at the end of the loop. Doing it this way potentially uses more memory, but testing shows that it's currently only about 2% more.
2017-07-31some include cleanupmoneromooo-monero1-0/+1
2017-07-31core: add a message when loading checkpoints at init timemoneromooo-monero1-0/+2
This uses DNS, which can take a while, so it's useful to know this is the culprit when loading pauses
2017-07-30tx_pool: remove obsolete unused m_config_folder fieldmoneromooo-monero1-1/+0
2017-07-30blockchain: skip checking tx semantics in embedded block hash rangemoneromooo-monero3-1/+17
If the txes are bad, this'll be picked up by the block hash mismatch since the tx merkle root is part of the block hash.
2017-07-29core: fix lock ordering bug at init timemoneromooo-monero1-1/+2
2017-07-28blockchain: fix cryptonight buffer leak on exitmoneromooo-monero1-1/+1
2017-07-27blockchain: ensure all blocks get their longhash precalculatedmoneromooo-monero2-2/+4
If the number of blocks to check was not a multiple of the number of preparation threads, the last few blocks would not be included in the threaded long hash calculation. Those would still get calculated when the block gets added to the chain, however, so this was only a tiny performance hit, rather than a security bug.
2017-07-27blockchain: pass correct height to get_block_longhashmoneromooo-monero1-4/+2
2017-07-25core: randomly shuffle outputsmoneromooo-monero1-1/+1
They used to be sorted by amount, which was fine before rct, but is now suboptimal, since amounts are not known anymore. In particular, it would give a recipient knowledge of whether change was higher or lower than the amount received.
2017-07-24blockchain: one off warning when seeing a block with unknown versionmoneromooo-monero1-0/+14
2017-07-22core: forbid duplicate ring members from v6moneromooo-monero2-0/+31
This avoids someone adding what amounts to mixin 0 rings in practice, as there is no other good reason to allow this.
2017-07-19Merge pull request #2142Riccardo Spagni2-0/+3
02d66db4 tx_pool: initialize padding in txpool meta structure (moneromooo-monero) 0722aea3 cryptonote_core: initialize checkpoint flag (moneromooo-monero)
2017-07-02tx_pool: initialize padding in txpool meta structuremoneromooo-monero1-0/+2
2017-07-02cryptonote_core: initialize checkpoint flagmoneromooo-monero1-0/+1
2017-06-23Fix mismatch of parameter name between header file and implementation for ↵Julien Klepatch1-3/+2
set_user_options()
2017-06-18Merge pull request #2082Riccardo Spagni3-2/+7
235df7f4 blockchain_db: add a txpool tx getter which returns existence (moneromooo-monero)
2017-06-11blockchain_db: add a txpool tx getter which returns existencemoneromooo-monero3-2/+7
Avoids exception spam for the "nope, not found" case
2017-06-04Add histogram to poolstatsHoward Chu1-1/+47
2017-06-01Merge pull request #2063Riccardo Spagni3-7/+12
d17c0fc2 Don't copy blockchain for coinbase_tx_sum (Howard Chu)
2017-06-01Merge pull request #2062Riccardo Spagni1-0/+5
31417d57 tx_pool: add missing blockchain lock in add_tx (moneromooo-monero)
2017-06-01Speedup print_pool_statsHoward Chu4-0/+45
Since we're just counting txs, there's no reason to deserialize all the blobs.
2017-06-01Don't copy blockchain for coinbase_tx_sumHoward Chu3-7/+12
Changed Blockchain::for_all_blocks() to for_blocks_range() Operate on blockchain in-place instead of building a copy first.
2017-05-31tx_pool: add missing blockchain lock in add_txmoneromooo-monero1-0/+5
2017-05-30Merge pull request #2039Riccardo Spagni1-1/+1
4b932ff3 changed crypto to cncrypto so it generated libcncrypto (Gentian)
2017-05-30Merge pull request #2026Riccardo Spagni1-1/+1
a5739201 Update sync time copy (xmr-eric)
2017-05-30Merge pull request #1982Riccardo Spagni6-278/+484
b52abd13 Move txpool to the database (moneromooo-monero)
2017-05-25Move txpool to the databasemoneromooo-monero6-278/+484
Integration could go further (ie, return_tx_to_pool calls should not be needed anymore, possibly other things). poolstate.bin is now obsolete.
2017-05-23changed crypto to cncrypto so it generated libcncryptoGentian1-1/+1
fix a cmakelist
2017-05-10Update sync time copyxmr-eric1-1/+1
2017-04-24Merge pull request #1968Riccardo Spagni1-1/+3
5e5b8512 Fix obsolete OpenSSL API usage (hyc) 6c72d6a0 Fix Android recognition (hyc) e65d66fe Fix ARM64 identification (hyc) a4673218 Clean up ARMv8-a aes_expand_key() (hyc) a3d77901 Fix block_longhash_worker thread (hyc)
2017-04-19Add expected total reward to RPC "getblocktemplate".assylias6-8/+11
Only works from V5 fork onward - returns 0 before that block.
2017-04-12Fix block_longhash_worker threadhyc1-1/+3
Wasn't getting its stack size initialized; crashes on Android with a default stack size of 1MB.
2017-04-04tx_pool: add blob size and fee/byte when logging a new txmoneromooo-monero1-1/+1
2017-03-25Merge pull request #1924Riccardo Spagni1-3/+3
6d315459 core: avoid possible reordering bugs wth tx/bloch hash cache (moneromooo-monero)
2017-03-25core: avoid possible reordering bugs wth tx/bloch hash cachemoneromooo-monero1-3/+3
2017-03-24Fixed typo in v5 hard fork finalized dateDerek Zhang1-1/+1
2017-03-24blockchain: offset v5 addition date on testnetmoneromooo-monero1-1/+1
to silence the update warning, since v5 was done very early on testnet
2017-03-23Merge pull request #1911Riccardo Spagni5-4/+46
91d41090 tx_pool: ensure txes loaded from poolstate.bin have their txid cached (moneromooo-monero) aaeb164c tx_pool: remove transactions if they're in the blockchain (moneromooo-monero) 558cfc31 core, wallet: faster tx pool scanning (moneromooo-monero) f065234b core: cache tx and block hashes in the respective classes (moneromooo-monero)
2017-03-23tx_pool: ensure txes loaded from poolstate.bin have their txid cachedmoneromooo-monero1-5/+6
The txid is not saved, and we want to make sure the transactions have their txid cached while in the pool, since get_transactions copies the transaction object, so any txid calculation on those copies would not benefit any later caller, since the original tx would be left without a cached txid.
2017-03-23tx_pool: remove transactions if they're in the blockchainmoneromooo-monero1-1/+9
When starting up, if the pool state was not saved, the pool might contain transactions which made it into the blockchain, so these need removing
2017-03-23core, wallet: faster tx pool scanningmoneromooo-monero4-1/+28
Includes a new RPC to get tx pool hashes fast.
2017-03-23core: cache tx and block hashes in the respective classesmoneromooo-monero1-0/+6
An idea from smooth
2017-03-21tx_pool: silence use of uninitialized warningmoneromooo-monero1-1/+1
The result is not actually used when uninitialized
2017-03-20blockchain: lower the relay fee by 2%moneromooo-monero1-1/+1
This ensures we accept txes with a fee that's slightly too small, to accomodate blockchain median jitter
2017-03-20tx_pool: use new filling algorithm from v5 onlymoneromooo-monero1-20/+30
2017-03-19Merge pull request #1896Riccardo Spagni1-0/+17
a6f1d8fc core: call {prepare|cleanup}_handle_incoming_blocks when adding a mined block (moneromooo-monero)
2017-03-19core: call {prepare|cleanup}_handle_incoming_blocks when adding a mined blockmoneromooo-monero1-0/+17
This ensures that a batch can't also be started/stopped out of sync by another thread and us getting in the middle
2017-03-18Removed boost/asio.hpp include from epee/string_tools.hLee Clagett1-0/+1
2017-03-15Merge pull request #1869Riccardo Spagni3-29/+28
3396a9f2 Add intervening v5 fork for increased min block size (moneromooo-monero)
2017-03-15Add intervening v5 fork for increased min block sizemoneromooo-monero3-29/+28
Minimum mixin 4 and enforced ringct is moved from v5 to v6. v5 is now used for an increased minimum block size (from 60000 to 300000) to cater for larger typical/minimum transaction size. The fee algorithm is also changed to decrease the base per kB fee, and add a cheap tier for those transactions which we do not care if they get delayed (or even included in a block).
2017-03-12core: don't try to re-relay an empty set of pool transactionsmoneromooo-monero1-1/+1
2017-03-10fix dependency: put HardFork back to cryptonote_basic, made some ↵kenshi844-685/+1
BlockchainDB functions virtual again to avoid missing symbols error
2017-03-06Merge pull request #1841Riccardo Spagni2-18/+56
b553c282 rpc: fix BUILD_TAG mispelling (BUILDTAG) (moneromooo-monero) 02097c87 core: print the "new update found" message in cyan, for visibility (moneromooo-monero) 749ebace download: check available disk space before downloading (moneromooo-monero) f36c5f1e download: give download threads distinct names (moneromooo-monero) f6211322 core: make update download cancellable (moneromooo-monero) 63f0e074 download: async API (moneromooo-monero) 9bf017ed http_client: allow cancelling a download (moneromooo-monero) 0d90123c http_client: allow derived class to get headers at start (moneromooo-monero)
2017-03-05blockchain: don't try to load an empty block hash setmoneromooo-monero1-1/+1
If the blocks aren't being linked against a binary (such as one of the blockchain utilities), the symbol will not be NULL, but the size will be 0. This avoids a apurious warning about the data hash.
2017-03-05core: print the "new update found" message in cyan, for visibilitymoneromooo-monero1-2/+2
2017-03-05core: make update download cancellablemoneromooo-monero2-17/+55
2017-03-04Merge pull request #1837Riccardo Spagni1-1/+19
31533493 core: quantize per kB fee to 8 decimals (moneromooo-monero)
2017-03-03core: quantize per kB fee to 8 decimalsmoneromooo-monero1-1/+19
2017-03-03tx_pool: log separately "not ready" and "double spend" casesmoneromooo-monero1-2/+8
2017-03-03Fix #1824 don't end batch that we didn't startHoward Chu1-2/+3
2017-02-25core: move hardfork back to cryptonote_coremoneromooo-monero4-1/+684
should fix a cross dependency betewen cryptonote_basic and blockchain_db
2017-02-24Merge pull request #1785Riccardo Spagni1-1/+28
583a7b5c core: protect precomputed block hashes with SHA256 (moneromooo-monero)
2017-02-23core: protect precomputed block hashes with SHA256moneromooo-monero1-1/+28
2017-02-23core: bound the amount of entries in bad tx semantics cachemoneromooo-monero2-6/+16
This is to prevent unbounded memory use. Since I don't think there is a container that has quick insert, quick lookup, and automatic FIFO, I use two and swap every N, clearing the oldest one.
2017-02-23core: remove a couple unused/obsolete bitsmoneromooo-monero1-3/+0
2017-02-22updates: remove testnet casemoneromooo-monero1-1/+1
It need not be any different
2017-02-22updates: we now have a user URL, and an automatic onemoneromooo-monero1-1/+2
So the user can use https, while the automatic does not have to
2017-02-22updates: s/monerod/monero/ for the main downloadmoneromooo-monero1-2/+2
Also print download success message as global log
2017-02-22Merge pull request #1766Riccardo Spagni10-10/+10
72deb484 updated fallback nodes (Riccardo Spagni) 33329f5b update version to 0.10.2 (Riccardo Spagni) 04a50a7e update checkpoints.dat (Riccardo Spagni) c3599fa7 update copyright year, fix occasional lack of newline at line end (Riccardo Spagni)
2017-02-21core: do not download an update we already downloadedmoneromooo-monero1-14/+23
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni10-10/+10
2017-02-21Fix core_tests breaking on startupmoneromooo-monero1-0/+2
You're wondering how this fixes core tests, aren't you... It prevents the miner (initialized by cryptonote::core) from breaking trying to access arguments that were not added. Since the tests don't use the miner directly, it makes more sense to have cryptonote_core add those, since it also uses the miner.
2017-02-21core: add p2p bind port options from net_nodemoneromooo-monero1-0/+4
They're now used by core to determine the data directory to use for the txpool directory. This fixes an assert in the core tests, which don't use the RPC server, which normally initializes the P2P code.
2017-02-21Merge pull request #1727Riccardo Spagni4-41/+119
0288310e blockchain_db: add "raw" blobdata getters for block and transaction (moneromooo-monero)
2017-02-21Merge pull request #1724Riccardo Spagni1-1/+1
cca95c1c blockchain_db: do not throw on expected partial results getting keys (moneromooo-monero)
2017-02-21Merge pull request #1731Riccardo Spagni1-1/+1
a427235e core: add a missing newline on a string to be logged (moneromooo-monero) b6a2230e unit_tests: fix minor blockchain_db regression (moneromooo-monero) c488eca5 hardfork: tone down some logs (moneromooo-monero)
2017-02-20core: updates can now be downloaded (and SHA256 hash checked)moneromooo-monero1-0/+30
2017-02-20core: test key images against validity domainmoneromooo-monero2-0/+28
2017-02-20Optionally query moneropulse DNS records to check for updatesmoneromooo-monero2-0/+64
It just checks and prints a message if there is a new version for now.
2017-02-20core: display any fork warning at startup toomoneromooo-monero1-1/+1
This is a good time for the operator to be around and see it
2017-02-21Merge pull request #1748Riccardo Spagni3-58/+4
bed2d9f2 Get rid of directory lock (Howard Chu) 2e913676 Handle map resizes from other processes (Howard Chu) bf1348b7 Can't cache num_txs or num_outputs either (Howard Chu) dc53e9ee Add a few read txns to streamline (Howard Chu)
2017-02-20tx_pool: revert template filling changesmoneromooo-monero1-0/+16
They are not ready yet
2017-02-18Get rid of directory lockHoward Chu2-58/+0
We don't need it any more. Fixes issue #1633
2017-02-18Add a few read txns to streamlineHoward Chu1-0/+4
Slight perf gain, but mainly to reduce spam at loglevel 3
2017-02-14core: add a missing newline on a string to be loggedmoneromooo-monero1-1/+1
2017-02-13blockchain_db: add "raw" blobdata getters for block and transactionmoneromooo-monero4-41/+119
This speeds up operations such as serving blocks to syncing peers
2017-02-13blockchain_db: do not throw on expected partial results getting keysmoneromooo-monero1-1/+1
When scanning for outputs used in a set of incoming blocks, we expect that some of the inputs in their transactions will not be found in the blockchain, as they could be in previous blocks in that set. Those outputs will be scanned there at a later point. In this case, we add a flag to control wehther an output not being found is expected or not.
2017-02-12tx_pool: add a debug message when adding a tx to the poolmoneromooo-monero1-0/+1
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi8430-5388/+616
2017-02-05 bugfix: infinite recursion in get_account_address_from_str_or_urlkenshi841-1/+1
2017-02-04Merge pull request #1664Riccardo Spagni1-0/+2
b5cb8861 core: fix integrated addresses breaking with auto zero change (moneromooo-monero)
2017-02-02core: fix integrated addresses breaking with auto zero changemoneromooo-monero1-0/+2
Zero change is sent to a random address, which confuses the code which determines which key to use to encrypt the payment id. Ignore zero amounts for this purpose, so the payment id gets encrypted with the real destination's key.
2017-02-02Merge pull request #1641Riccardo Spagni1-1/+11
ca94d0a4 Separate data per P2P port (Miguel Herranz)
2017-02-02Merge pull request #1642Riccardo Spagni1-0/+1
3ae79a59 core: set missing verifivation_failed flag when rejecting a tx (moneromooo-monero) ea6549e9 core_tests: decrease trace level from trace to debug (moneromooo-monero)
2017-02-02Merge pull request #1631Riccardo Spagni1-4/+8
58e82506 Blockfill - Sort tx pool correctly (Alexis Enston) 5f7a8741 Blockfill - Take TX fees into account properly (Alexis Enston) 4ecab0d8 Consider empty block when filling with TXs (Alexis Enston)
2017-02-02Merge pull request #1627Riccardo Spagni2-1/+43
55a8e982 moved get_account_address_from_str_or_url from libcommon to libcryptonote_core (kenshi84)
2017-02-02Merge pull request #1617Riccardo Spagni7-32/+28
0644eed7 Remove boost/foreach.cpp includes (Miguel Herranz) 36dd3e23 Replace BOOST_REVERSE_FOREACH with ranged for (Miguel Herranz) 629e3101 Replace BOOST_FOREACH with C++11 ranged for (Miguel Herranz)
2017-01-28Separate data per P2P portMiguel Herranz1-1/+11
poolstate.bin and p2pstate.bin are stored in .bitmonero/ if the default P2P port is being used. If another port is used both files are stored in .bitmonero/PORTNUMBER/.
2017-01-28core: set missing verifivation_failed flag when rejecting a txmoneromooo-monero1-0/+1
This fixes two core rct tests
2017-01-25Blockfill - Sort tx pool correctlyAlexis Enston1-2/+2
2017-01-25Blockfill - Take TX fees into account properlyAlexis Enston1-1/+1
2017-01-25Consider empty block when filling with TXsAlexis Enston1-1/+5
2017-01-24moved get_account_address_from_str_or_url from libcommon to libcryptonote_corekenshi842-1/+43
2017-01-23Update log messages to reflect fact we no longer need to type `exit` to save ↵NanoAkron1-5/+4
database before quitting
2017-01-22Remove boost/foreach.cpp includesMiguel Herranz5-5/+0
2017-01-22Replace BOOST_REVERSE_FOREACH with ranged forMiguel Herranz1-1/+2
2017-01-22Replace BOOST_FOREACH with C++11 ranged forMiguel Herranz4-26/+26
2017-01-22Merge pull request #1615Riccardo Spagni2-0/+10
f0989893 core: cache tx hashes of failing semantics txes (moneromooo-monero)
2017-01-22Merge pull request #1610Riccardo Spagni4-5/+10
b70ab128 rpc: fix orphan_status when getting blocks (moneromooo-monero)
2017-01-22core: cache tx hashes of failing semantics txesmoneromooo-monero2-0/+10
2017-01-22rpc: fix orphan_status when getting blocksmoneromooo-monero4-5/+10
It was always set to false, even for orphan blocks
2017-01-21core: early out in handle_incoming_tx if already in pool or blockchainmoneromooo-monero1-0/+12
2017-01-16core: don't try to deserialize an empty extra to remove a fieldmoneromooo-monero1-0/+2
2017-01-16Change logging to easylogging++moneromooo-monero11-178/+210
This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
2017-01-15Merge pull request #1577Riccardo Spagni3-0/+36
feb499aa core: check block version for alt chains too (moneromooo-monero)
2017-01-15Merge pull request #1576Riccardo Spagni2-6/+47
ba3968f6 rct: split rct checks between semantics and other (moneromooo-monero)
2017-01-15Merge pull request #1571Riccardo Spagni5-27/+40
81c384e4 fix do_not_relay not preventing relaying on a timer (moneromooo-monero)
2017-01-15Merge pull request #1565Riccardo Spagni1-0/+2
50b230d1 core: ensure block size limit is set from the start (moneromooo-monero)
2017-01-15Merge pull request #1563Riccardo Spagni2-21/+26
36ba311c Prioritize older transactions in the mempool (Miguel Herranz)
2017-01-15Merge pull request #1506Riccardo Spagni2-6/+19
3ff54bdd Check for correct thread before ending batch transaction (Howard Chu) eaf8470b Must wait for previous batch to finish before starting new one (Howard Chu) c903c554 Don't cache block height, always get from DB (Howard Chu) eb1fb601 Tweak default db-sync-mode to fast:async:1 (Howard Chu) 0693cff9 Use batch transactions when syncing (Howard Chu)
2017-01-14Must wait for previous batch to finish before starting new oneHoward Chu1-1/+6
2017-01-14Tweak default db-sync-mode to fast:async:1Howard Chu1-4/+7
fsync the DB asynchronously, to allow block download/verification to proceed while syncing. Sync after every batch. Note that "fastest" still defaults to fastest:async:1000.
2017-01-14Use batch transactions when syncingHoward Chu1-2/+7
Faster throughput while avoiding corruption. I.e., makes running with --db-sync-mode safe more tolerable.
2017-01-14core: check block version for alt chains toomoneromooo-monero3-0/+36
This is incompatible with block version voting
2017-01-14rct: split rct checks between semantics and othermoneromooo-monero2-6/+47
Semantics can be checked early
2017-01-14fix do_not_relay not preventing relaying on a timermoneromooo-monero5-27/+40
Also print its value when printing pool
2017-01-13account: fix build error involving std::max and different typesmoneromooo-monero1-2/+6
2017-01-13core: ensure block size limit is set from the startmoneromooo-monero1-0/+2
It can now be queried by RPC, so it needs to be set before it is otherwise needed for consensus, even if no blocks had to be added (ie, exit and restart quickly).
2017-01-13Merge pull request #1558Riccardo Spagni1-4/+4
7961878e initialize timestamp to 0 and check for mktime() error (Chris Vickio)
2017-01-13Merge pull request #1555Riccardo Spagni1-3/+6
758c0eb7 fix time stats mixin (luigi1111)
2017-01-13Merge pull request #1543Riccardo Spagni2-0/+15
19be7225 Add start_time to get_info methods and show uptime (Miguel Herranz)
2017-01-13Merge pull request #1538Riccardo Spagni1-15/+0
aff28178 Remove db-auto-remove-logs (Miguel Herranz) 1229c685 Remove berkeley from db_type initialization (Miguel Herranz) e3090558 Show available types for db-type command (Miguel Herranz) 046ab33d Remove berkeley from blockchain_db_types (Miguel Herranz)
2017-01-13Prioritize older transactions in the mempoolMiguel Herranz2-21/+26
The transactions are first prioritized by fee and in case the fees are equal by receive_time.
2017-01-12initialize timestamp to 0 and check for mktime() errorChris Vickio1-4/+4
2017-01-12Add start_time to get_info methods and show uptimeMiguel Herranz2-0/+15
2017-01-10fix time stats mixinluigi11111-3/+6
also add blobsize
2017-01-10Remove db-auto-remove-logsMiguel Herranz1-3/+0
2017-01-10Remove berkeley from db_type initializationMiguel Herranz1-12/+0
2017-01-09wallet cli: print originating block heights of mixin keys when making transferkenshi841-1/+1
2017-01-08Merge pull request #1534Riccardo Spagni3-17/+33
1607cb7e tx_pool: better block template filling algorithm (moneromooo-monero) 9731b4e5 rpc: add block size to GET_BLOCK_HEADER RPC (moneromooo-monero) 9188b346 rpc: add current block size to the getinfo call (moneromooo-monero)
2017-01-08Merge pull request #1515Riccardo Spagni1-11/+22
ada7c7da portable serializer: tests added (kenshi84) f390a0e2 portable serializer: make signerd/unsigned tx portable, ignore archive version checking (kenshi84)
2017-01-08Merge pull request #1502Riccardo Spagni1-0/+1
591d8368 core: invalidate difficulty cache when resetting blockchain (moneromooo-monero)
2017-01-08Merge pull request #1499Riccardo Spagni1-0/+2
37ed96e6 tx_pool: fix uninitialized "last failed" fields (moneromooo-monero) 94b6feef rpc: fix mixup in tx_info serialization (moneromooo-monero)
2017-01-08Merge pull request #1493Riccardo Spagni1-5/+5
0478ac68 blockchain: allow marking "tx not found" without an exception (moneromooo-monero)
2017-01-07blockchain: allow marking "tx not found" without an exceptionmoneromooo-monero1-5/+5
This is a normal occurence in many cases, and there is no need to spam the log with those when it is.
2017-01-07tx_pool: better block template filling algorithmmoneromooo-monero3-17/+33
Continue filling until we reach the block size limit, or the resulting coinbase decreases. Also remove old sanity check on block size, which is now not wanted anymore.
2017-01-02portable serializer: make signerd/unsigned tx portable, ignore archive ↵kenshi841-11/+22
version checking
2016-12-25core: invalidate difficulty cache when resetting blockchainmoneromooo-monero1-0/+1
2016-12-24tx_pool: fix uninitialized "last failed" fieldsmoneromooo-monero1-0/+2
2016-12-21add tx hash to time statsluigi11111-2/+5
Also miner tx hash to log level 1 (have you ever tried to find a testnet miner tx hash?)
2016-12-21core: fix recalculation of emission/feesmoneromooo-monero1-7/+4
It was counting things many, many times
2016-12-20Merge pull request #1467Riccardo Spagni2-0/+39
55fa0479 rpc: new function and RPC to get alternative chain info (moneromooo-monero)
2016-12-20also use portable serializer for boost_serialization_helper.h and ↵kenshi843-5/+0
net_node.inl, completely adandon boost/archive/binary_oarchive.hpp
2016-12-17rpc: new function and RPC to get alternative chain infomoneromooo-monero2-0/+39