Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-10-19 | core: do not forbid txes without destination | moneromooo-monero | 1 | -6/+0 | |
This was spuriously forbidden in the recent subaddress patch, which isn't inherently incompatible with these. | |||||
2017-10-19 | core: don't add empty additional pub keys field to extra | moneromooo-monero | 1 | -1/+1 | |
Saves a couple bytes per tx | |||||
2017-10-15 | remove reference to cryptonote::null_hash | Jaquee | 1 | -3/+3 | |
2017-10-12 | blockchain: avoid exceptions in output verification | moneromooo-monero | 1 | -2/+12 | |
This can happen if we get a bad tx, so let's not spam the log. | |||||
2017-10-11 | core: guard against a mined block not finding all txes in the pool | moneromooo-monero | 1 | -1/+9 | |
This can happen for several reasons, but mainly if another block was received, which took that tx off the pool. | |||||
2017-10-07 | Subaddresses | kenshi84 | 2 | -8/+115 | |
2017-10-03 | construct_tx_and_get_tx_key: return sorted sources for print_ring_memebrs to ↵ | stoffu | 2 | -4/+4 | |
work properly | |||||
2017-09-29 | core: fix failure to sync when a tx is already in the pool | moneromooo-monero | 3 | -9/+28 | |
2017-09-27 | core: remove out sorting from v7 rules | moneromooo-monero | 2 | -37/+4 | |
and restore random shuffle of outputs This turned out to have a flaw (sort order depends on output index), and this doesn't really bring much anyway | |||||
2017-09-27 | core: fix logging the one time public key on error | moneromooo-monero | 1 | -1/+1 | |
2017-09-27 | blockchain: fix off by one getting blocks | moneromooo-monero | 1 | -2/+2 | |
2017-09-26 | core: undo output sorting | moneromooo-monero | 1 | -0/+2 | |
It looks like it may be buggy | |||||
2017-09-25 | core: fix creation of v1 txes | moneromooo-monero | 1 | -1/+2 | |
2017-09-25 | checkpoints: add a token checkpoint on testnet (the genesis block) | moneromooo-monero | 1 | -1/+1 | |
2017-09-25 | fix typo in basic and core CMakeLists.txt | moneromooo-monero | 1 | -1/+1 | |
2017-09-25 | move checkpoints in a separate library | moneromooo-monero | 3 | -3/+2 | |
2017-09-25 | tx_pool: pre-init tvc.m_verifivation_failed before processing | moneromooo-monero | 1 | -3/+3 | |
CID 175316 | |||||
2017-09-25 | tx_pool: guard against failure getting tx hash | moneromooo-monero | 1 | -1/+2 | |
Should be impossible in practice, but easy change CID 175282 | |||||
2017-09-25 | core: check return value from parse_hexstr_to_binbuff | moneromooo-monero | 1 | -2/+3 | |
2017-09-25 | get_blockchain_top now returns void | moneromooo-monero | 2 | -5/+2 | |
It was always returning true, and could not be foreseen to usefully return errors in the future. This silences CID 162652 as well as saves some checking code in a few places. | |||||
2017-09-22 | Source updates are in a source subdirectory | moneromooo-monero | 1 | -1/+2 | |
rather than in the same directory as the prebuilt versions | |||||
2017-09-21 | build: auto update version info without manually deleting version.h | stoffu | 1 | -0/+1 | |
2017-09-20 | tx_pool: drop invalid txes from the pool on startup | moneromooo-monero | 1 | -3/+23 | |
instead of just failing This is a workaround for bad tx blobs being inserted in the pool for unknown reasons | |||||
2017-09-20 | blockchain: fix crash checking pre-validated txids | moneromooo-monero | 1 | -2/+2 | |
2017-09-18 | precomputed block hashes are now in blocks of N (currently 256) | moneromooo-monero | 4 | -9/+133 | |
This shaves a lot of space off binaries | |||||
2017-09-18 | blockchain: reject unsorted ins and outs from v7 | moneromooo-monero | 1 | -0/+39 | |
This ensures no information is leaked by the ordering | |||||
2017-09-17 | Use actual batch size for resize estimates | Howard Chu | 1 | -1/+10 | |
And optimize import startup: Remember start_height position during initial count_blocks pass to avoid having to reread entire file again to arrive at start_height | |||||
2017-09-17 | protocol: remove hop count on block propagation | moneromooo-monero | 1 | -1/+0 | |
It is unused, as it was apparently a future optimization, and it leaks some information (though since pools publish thei blocks they find, that amount seems small). | |||||
2017-09-16 | tx_pool: set the "invalid input" bit when check_tx_inputs fails | moneromooo-monero | 1 | -0/+1 | |
2017-09-14 | Use a threadpool | Howard Chu | 3 | -97/+56 | |
Instead of constantly creating and destroying threads | |||||
2017-09-14 | Remove 1.25x multiplier from tx_pool | Nano Akron | 1 | -1/+1 | |
2017-09-13 | core: sort ins and outs key key image and public key, respectively | moneromooo-monero | 2 | -6/+32 | |
This avoids leaking some small amount of information | |||||
2017-09-12 | core: guard against exceptions in tx verification worker threads | moneromooo-monero | 1 | -2/+18 | |
2017-09-06 | update checkpoint hashes | Riccardo Spagni | 1 | -1/+1 | |
2017-09-05 | json serialization for rpc-relevant monero types | Thomas Winget | 5 | -1/+112 | |
Structured {de-,}serialization methods for (many new) types which are used for requests or responses in the RPC. New types include RPC requests and responses, and structs which compose types within those. # Conflicts: # src/cryptonote_core/blockchain.cpp | |||||
2017-09-05 | Refactor some things into more composable (smaller) functions | Thomas Winget | 2 | -73/+179 | |
This commit refactors some of the rpc-related functions in the Blockchain class to be more composable. This change was made in order to make implementing the new zmq rpc easier without trampling on the old rpc. New functions: Blockchain::get_num_mature_outputs Blockchain::get_random_outputs Blockchain::get_output_key Blockchain::get_output_key_mask_unlocked Blockchain::find_blockchain_supplement (overload) functions which previously had this functionality inline now call these functions as necessary. | |||||
2017-09-04 | tx_pool: catch exceptions in LockedTXN dtor | moneromooo-monero | 1 | -1/+1 | |
This might prevent some calls to terminate when the LockedTXN dtor is called as part of stack unwinding caused by another exception in the first place. | |||||
2017-09-03 | Add a --fluffy-blocks option to relay blocks as fluffy blocks | moneromooo-monero | 2 | -0/+11 | |
Defaults to off, but fluffy blocks are forced enabled on testnet | |||||
2017-08-31 | DRY refactoring | Thomas Winget | 2 | -1/+13 | |
2017-08-29 | tx_pool: wrap tx meta updates in a LockedTXN | moneromooo-monero | 1 | -0/+3 | |
2017-08-29 | Fix blockchain_import wedge on exception in cleanup_handle_incoming_blocks | moneromooo-monero | 2 | -5/+17 | |
2017-08-29 | core: guard against exceptions in handle_incoming_{block,tx} | moneromooo-monero | 1 | -0/+8 | |
When one happens, cleanup must be called or the incoming tx lock will stay locked | |||||
2017-08-29 | move db specific options to BlockchainDB | moneromooo-monero | 1 | -6/+4 | |
Avoids common depending on blockchain_db, which can cause link errors. | |||||
2017-08-26 | blockchain: cap memory size of retrieved blocks | moneromooo-monero | 1 | -2/+7 | |
It helps keep memory usage down when a wallet refreshes through a string of large blocks | |||||
2017-08-26 | rpc: add a new RPC to get current txpool backlog (sizes and fees) | moneromooo-monero | 4 | -0/+31 | |
2017-08-25 | txpool: update db tx metadata when it changes | moneromooo | 1 | -1/+15 | |
2017-08-25 | txpool: add tx size median to the pool stats | moneromooo | 1 | -1/+5 | |
2017-08-23 | tx_pool: fix crash in stats | Howard Chu | 1 | -1/+1 | |
if tx receive_time == now. supersedes #2322 | |||||
2017-08-22 | Cleanup test impact of adding safesyncmode() method | Howard Chu | 2 | -0/+12 | |
2017-08-20 | Toggle SAFE syncmode on and off automatically | Howard Chu | 3 | -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-19 | DB cleanup | Howard Chu | 1 | -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-18 | core: add mainnet v6 fork height at 1400000 | moneromooo-monero | 1 | -0/+3 | |
2017-08-17 | cryptonote_protocol: large block sync size before v4 | moneromooo-monero | 2 | -3/+11 | |
2017-08-15 | protocol: pass blockchain cumulative difficulty when syncing | moneromooo-monero | 4 | -0/+23 | |
Not used yet. | |||||
2017-08-12 | core: add --db-salvage command line flag | moneromooo-monero | 1 | -0/+7 | |
Use to load the database when the primary meta page is corrupted | |||||
2017-08-10 | tests: fix tests build | moneromooo-monero | 2 | -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-09 | protocol: add checks for top block hard fork version | moneromooo-monero | 1 | -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-07 | change mixin to ring size in user visible places | moneromooo-monero | 2 | -7/+7 | |
2017-08-07 | core: fix invalid memory access creating tx | moneromooo-monero | 1 | -1/+1 | |
2017-08-07 | core: new API to disable DNS checkpoint lookups | moneromooo-monero | 2 | -1/+10 | |
2017-08-07 | blockchain: add testnet v6 fork height at 971400 | moneromooo-monero | 1 | -0/+2 | |
2017-08-07 | core: thread most of handle_incoming_tx | moneromooo-monero | 2 | -25/+104 | |
2017-08-04 | blockchain: log more info when we reject an orphan | moneromooo-monero | 1 | -1/+3 | |
We want to know what happened when a block is wrongly rejected | |||||
2017-08-03 | blockchain: remove a few unused variables | moneromooo-monero | 2 | -14/+4 | |
2017-08-01 | core: speed up output index unique set calculation | moneromooo-monero | 1 | -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-31 | some include cleanup | moneromooo-monero | 1 | -0/+1 | |
2017-07-31 | core: add a message when loading checkpoints at init time | moneromooo-monero | 1 | -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-30 | tx_pool: remove obsolete unused m_config_folder field | moneromooo-monero | 1 | -1/+0 | |
2017-07-30 | blockchain: skip checking tx semantics in embedded block hash range | moneromooo-monero | 3 | -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-29 | core: fix lock ordering bug at init time | moneromooo-monero | 1 | -1/+2 | |
2017-07-28 | blockchain: fix cryptonight buffer leak on exit | moneromooo-monero | 1 | -1/+1 | |
2017-07-27 | blockchain: ensure all blocks get their longhash precalculated | moneromooo-monero | 2 | -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-27 | blockchain: pass correct height to get_block_longhash | moneromooo-monero | 1 | -4/+2 | |
2017-07-25 | core: randomly shuffle outputs | moneromooo-monero | 1 | -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-24 | blockchain: one off warning when seeing a block with unknown version | moneromooo-monero | 1 | -0/+14 | |
2017-07-22 | core: forbid duplicate ring members from v6 | moneromooo-monero | 2 | -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-02 | tx_pool: initialize padding in txpool meta structure | moneromooo-monero | 1 | -0/+2 | |
2017-07-02 | cryptonote_core: initialize checkpoint flag | moneromooo-monero | 1 | -0/+1 | |
2017-06-23 | Fix mismatch of parameter name between header file and implementation for ↵ | Julien Klepatch | 1 | -3/+2 | |
set_user_options() | |||||
2017-06-11 | blockchain_db: add a txpool tx getter which returns existence | moneromooo-monero | 3 | -2/+7 | |
Avoids exception spam for the "nope, not found" case | |||||
2017-06-04 | Add histogram to poolstats | Howard Chu | 1 | -1/+47 | |
2017-06-01 | Speedup print_pool_stats | Howard Chu | 4 | -0/+45 | |
Since we're just counting txs, there's no reason to deserialize all the blobs. | |||||
2017-06-01 | Don't copy blockchain for coinbase_tx_sum | Howard Chu | 3 | -7/+12 | |
Changed Blockchain::for_all_blocks() to for_blocks_range() Operate on blockchain in-place instead of building a copy first. | |||||
2017-05-31 | tx_pool: add missing blockchain lock in add_tx | moneromooo-monero | 1 | -0/+5 | |
2017-05-25 | Move txpool to the database | moneromooo-monero | 6 | -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-23 | changed crypto to cncrypto so it generated libcncrypto | Gentian | 1 | -1/+1 | |
fix a cmakelist | |||||
2017-05-10 | Update sync time copy | xmr-eric | 1 | -1/+1 | |
2017-04-19 | Add expected total reward to RPC "getblocktemplate". | assylias | 6 | -8/+11 | |
Only works from V5 fork onward - returns 0 before that block. | |||||
2017-04-12 | Fix block_longhash_worker thread | hyc | 1 | -1/+3 | |
Wasn't getting its stack size initialized; crashes on Android with a default stack size of 1MB. | |||||
2017-04-04 | tx_pool: add blob size and fee/byte when logging a new tx | moneromooo-monero | 1 | -1/+1 | |
2017-03-25 | core: avoid possible reordering bugs wth tx/bloch hash cache | moneromooo-monero | 1 | -3/+3 | |
2017-03-24 | Fixed typo in v5 hard fork finalized date | Derek Zhang | 1 | -1/+1 | |
2017-03-24 | blockchain: offset v5 addition date on testnet | moneromooo-monero | 1 | -1/+1 | |
to silence the update warning, since v5 was done very early on testnet | |||||
2017-03-23 | tx_pool: ensure txes loaded from poolstate.bin have their txid cached | moneromooo-monero | 1 | -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-23 | tx_pool: remove transactions if they're in the blockchain | moneromooo-monero | 1 | -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-23 | core, wallet: faster tx pool scanning | moneromooo-monero | 4 | -1/+28 | |
Includes a new RPC to get tx pool hashes fast. | |||||
2017-03-23 | core: cache tx and block hashes in the respective classes | moneromooo-monero | 1 | -0/+6 | |
An idea from smooth | |||||
2017-03-21 | tx_pool: silence use of uninitialized warning | moneromooo-monero | 1 | -1/+1 | |
The result is not actually used when uninitialized | |||||
2017-03-20 | blockchain: lower the relay fee by 2% | moneromooo-monero | 1 | -1/+1 | |
This ensures we accept txes with a fee that's slightly too small, to accomodate blockchain median jitter | |||||
2017-03-20 | tx_pool: use new filling algorithm from v5 only | moneromooo-monero | 1 | -20/+30 | |
2017-03-19 | core: call {prepare|cleanup}_handle_incoming_blocks when adding a mined block | moneromooo-monero | 1 | -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-18 | Removed boost/asio.hpp include from epee/string_tools.h | Lee Clagett | 1 | -0/+1 | |
2017-03-15 | Add intervening v5 fork for increased min block size | moneromooo-monero | 3 | -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-12 | core: don't try to re-relay an empty set of pool transactions | moneromooo-monero | 1 | -1/+1 | |
2017-03-10 | fix dependency: put HardFork back to cryptonote_basic, made some ↵ | kenshi84 | 4 | -685/+1 | |
BlockchainDB functions virtual again to avoid missing symbols error | |||||
2017-03-05 | blockchain: don't try to load an empty block hash set | moneromooo-monero | 1 | -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-05 | core: print the "new update found" message in cyan, for visibility | moneromooo-monero | 1 | -2/+2 | |
2017-03-05 | core: make update download cancellable | moneromooo-monero | 2 | -17/+55 | |
2017-03-03 | core: quantize per kB fee to 8 decimals | moneromooo-monero | 1 | -1/+19 | |
2017-03-03 | tx_pool: log separately "not ready" and "double spend" cases | moneromooo-monero | 1 | -2/+8 | |
2017-03-03 | Fix #1824 don't end batch that we didn't start | Howard Chu | 1 | -2/+3 | |
2017-02-25 | core: move hardfork back to cryptonote_core | moneromooo-monero | 4 | -1/+684 | |
should fix a cross dependency betewen cryptonote_basic and blockchain_db | |||||
2017-02-23 | core: protect precomputed block hashes with SHA256 | moneromooo-monero | 1 | -1/+28 | |
2017-02-23 | core: bound the amount of entries in bad tx semantics cache | moneromooo-monero | 2 | -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-23 | core: remove a couple unused/obsolete bits | moneromooo-monero | 1 | -3/+0 | |
2017-02-22 | updates: remove testnet case | moneromooo-monero | 1 | -1/+1 | |
It need not be any different | |||||
2017-02-22 | updates: we now have a user URL, and an automatic one | moneromooo-monero | 1 | -1/+2 | |
So the user can use https, while the automatic does not have to | |||||
2017-02-22 | updates: s/monerod/monero/ for the main download | moneromooo-monero | 1 | -2/+2 | |
Also print download success message as global log | |||||
2017-02-21 | core: do not download an update we already downloaded | moneromooo-monero | 1 | -14/+23 | |
2017-02-21 | update copyright year, fix occasional lack of newline at line end | Riccardo Spagni | 10 | -10/+10 | |
2017-02-21 | Fix core_tests breaking on startup | moneromooo-monero | 1 | -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-21 | core: add p2p bind port options from net_node | moneromooo-monero | 1 | -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-20 | core: updates can now be downloaded (and SHA256 hash checked) | moneromooo-monero | 1 | -0/+30 | |
2017-02-20 | core: test key images against validity domain | moneromooo-monero | 2 | -0/+28 | |
2017-02-20 | Optionally query moneropulse DNS records to check for updates | moneromooo-monero | 2 | -0/+64 | |
It just checks and prints a message if there is a new version for now. | |||||
2017-02-20 | core: display any fork warning at startup too | moneromooo-monero | 1 | -1/+1 | |
This is a good time for the operator to be around and see it | |||||
2017-02-20 | tx_pool: revert template filling changes | moneromooo-monero | 1 | -0/+16 | |
They are not ready yet | |||||
2017-02-18 | Get rid of directory lock | Howard Chu | 2 | -58/+0 | |
We don't need it any more. Fixes issue #1633 | |||||
2017-02-18 | Add a few read txns to streamline | Howard Chu | 1 | -0/+4 | |
Slight perf gain, but mainly to reduce spam at loglevel 3 | |||||
2017-02-14 | core: add a missing newline on a string to be logged | moneromooo-monero | 1 | -1/+1 | |
2017-02-13 | blockchain_db: add "raw" blobdata getters for block and transaction | moneromooo-monero | 4 | -41/+119 | |
This speeds up operations such as serving blocks to syncing peers | |||||
2017-02-13 | blockchain_db: do not throw on expected partial results getting keys | moneromooo-monero | 1 | -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-12 | tx_pool: add a debug message when adding a tx to the pool | moneromooo-monero | 1 | -0/+1 | |
2017-02-08 | extract some basic code from libcryptonote_core into libcryptonote_basic | kenshi84 | 30 | -5388/+616 | |
2017-02-05 | bugfix: infinite recursion in get_account_address_from_str_or_url | kenshi84 | 1 | -1/+1 | |
2017-02-02 | core: fix integrated addresses breaking with auto zero change | moneromooo-monero | 1 | -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-01-28 | Separate data per P2P port | Miguel Herranz | 1 | -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-28 | core: set missing verifivation_failed flag when rejecting a tx | moneromooo-monero | 1 | -0/+1 | |
This fixes two core rct tests | |||||
2017-01-25 | Blockfill - Sort tx pool correctly | Alexis Enston | 1 | -2/+2 | |
2017-01-25 | Blockfill - Take TX fees into account properly | Alexis Enston | 1 | -1/+1 | |
2017-01-25 | Consider empty block when filling with TXs | Alexis Enston | 1 | -1/+5 | |
2017-01-24 | moved get_account_address_from_str_or_url from libcommon to libcryptonote_core | kenshi84 | 2 | -1/+43 | |
2017-01-23 | Update log messages to reflect fact we no longer need to type `exit` to save ↵ | NanoAkron | 1 | -5/+4 | |
database before quitting | |||||
2017-01-22 | Remove boost/foreach.cpp includes | Miguel Herranz | 5 | -5/+0 | |
2017-01-22 | Replace BOOST_REVERSE_FOREACH with ranged for | Miguel Herranz | 1 | -1/+2 | |
2017-01-22 | Replace BOOST_FOREACH with C++11 ranged for | Miguel Herranz | 4 | -26/+26 | |
2017-01-22 | core: cache tx hashes of failing semantics txes | moneromooo-monero | 2 | -0/+10 | |
2017-01-22 | rpc: fix orphan_status when getting blocks | moneromooo-monero | 4 | -5/+10 | |
It was always set to false, even for orphan blocks | |||||
2017-01-21 | core: early out in handle_incoming_tx if already in pool or blockchain | moneromooo-monero | 1 | -0/+12 | |
2017-01-16 | core: don't try to deserialize an empty extra to remove a field | moneromooo-monero | 1 | -0/+2 | |
2017-01-16 | Change logging to easylogging++ | moneromooo-monero | 11 | -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-14 | Must wait for previous batch to finish before starting new one | Howard Chu | 1 | -1/+6 | |
2017-01-14 | Tweak default db-sync-mode to fast:async:1 | Howard Chu | 1 | -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-14 | Use batch transactions when syncing | Howard Chu | 1 | -2/+7 | |
Faster throughput while avoiding corruption. I.e., makes running with --db-sync-mode safe more tolerable. | |||||
2017-01-14 | core: check block version for alt chains too | moneromooo-monero | 3 | -0/+36 | |
This is incompatible with block version voting | |||||
2017-01-14 | rct: split rct checks between semantics and other | moneromooo-monero | 2 | -6/+47 | |
Semantics can be checked early | |||||
2017-01-14 | fix do_not_relay not preventing relaying on a timer | moneromooo-monero | 5 | -27/+40 | |
Also print its value when printing pool | |||||
2017-01-13 | account: fix build error involving std::max and different types | moneromooo-monero | 1 | -2/+6 | |
2017-01-13 | core: ensure block size limit is set from the start | moneromooo-monero | 1 | -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-13 | Prioritize older transactions in the mempool | Miguel Herranz | 2 | -21/+26 | |
The transactions are first prioritized by fee and in case the fees are equal by receive_time. | |||||
2017-01-12 | initialize timestamp to 0 and check for mktime() error | Chris Vickio | 1 | -4/+4 | |
2017-01-12 | Add start_time to get_info methods and show uptime | Miguel Herranz | 2 | -0/+15 | |
2017-01-10 | fix time stats mixin | luigi1111 | 1 | -3/+6 | |
also add blobsize | |||||
2017-01-10 | Remove db-auto-remove-logs | Miguel Herranz | 1 | -3/+0 | |
2017-01-10 | Remove berkeley from db_type initialization | Miguel Herranz | 1 | -12/+0 | |
2017-01-09 | wallet cli: print originating block heights of mixin keys when making transfer | kenshi84 | 1 | -1/+1 | |
2017-01-07 | blockchain: allow marking "tx not found" without an exception | moneromooo-monero | 1 | -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-07 | tx_pool: better block template filling algorithm | moneromooo-monero | 3 | -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-02 | portable serializer: make signerd/unsigned tx portable, ignore archive ↵ | kenshi84 | 1 | -11/+22 | |
version checking | |||||
2016-12-25 | core: invalidate difficulty cache when resetting blockchain | moneromooo-monero | 1 | -0/+1 | |
2016-12-24 | tx_pool: fix uninitialized "last failed" fields | moneromooo-monero | 1 | -0/+2 | |
2016-12-21 | add tx hash to time stats | luigi1111 | 1 | -2/+5 | |
Also miner tx hash to log level 1 (have you ever tried to find a testnet miner tx hash?) | |||||
2016-12-21 | core: fix recalculation of emission/fees | moneromooo-monero | 1 | -7/+4 | |
It was counting things many, many times | |||||
2016-12-20 | also use portable serializer for boost_serialization_helper.h and ↵ | kenshi84 | 3 | -5/+0 | |
net_node.inl, completely adandon boost/archive/binary_oarchive.hpp | |||||
2016-12-17 | rpc: new function and RPC to get alternative chain info | moneromooo-monero | 2 | -0/+39 | |
2016-12-16 | added experimental boost::archive::portable_binary_{i|o}archive | kenshi84 | 1 | -2/+6 | |
2016-12-13 | blockchain: fix reorganizations past a hard fork boundary | moneromooo-monero | 1 | -0/+3 | |
After popping blocks from the old chain, the hard fork object's notion of the current version was not in line with the new height, causing the first blocks from the new chain to be rejected due to a false expection of a newer version. | |||||
2016-12-13 | update checkpoints | Riccardo Spagni | 1 | -0/+3 | |
2016-12-09 | Fix sending outputs from a tx with more than one pubkey | moneromooo-monero | 2 | -10/+14 | |
A bug in cold signing caused a spurious pubkey to be included in transactions, so we need to ensure we use the correct one when sending outputs from one of those. | |||||
2016-12-08 | blockchain: fix setting non trovial alternate chain as invalid | moneromooo-monero | 1 | -4/+4 | |
The wrong iterator was being used. Also preincrement iterators to avoid possibly invalidating them, I'm not sure this is necessary, but let's be safe. | |||||
2016-12-06 | blockchain: bring the v4 fork height one block forward | luigi1111 | 1 | -3/+3 | |
This will ensure the early 0.10 daemons will barf at the fork height, and not a bit later, which could be confusing. | |||||
2016-12-04 | ringct: switch to Borromean signatures | Shen Noether | 1 | -4/+4 | |
2016-12-04 | Fix a few minor typos | Pierre Boyer | 4 | -7/+7 | |
2016-12-04 | Fix delayed exit when syncing | moneromooo-monero | 3 | -2/+26 | |
2016-12-01 | blockchain: use high bound block reward on error where appropriate | moneromooo-monero | 1 | -1/+7 | |
If the block reward to use for the fee calculation can't be calculated (should not happen in practice), use a high bound, so we use a fee overestimate that will be accepted by the network. | |||||
2016-11-28 | blockchain: reject invalid pubkeys from v4 | moneromooo-monero | 1 | -0/+13 | |
2016-11-27 | change 'invalid address format' loglevel | Jaquee | 1 | -1/+1 | |
2016-11-22 | Add a get_outs (fully text based) version of get_outs.bin | moneromooo-monero | 4 | -4/+4 | |
2016-11-16 | wallet2: try all tx keys when scanning a new transaction | moneromooo-monero | 1 | -2/+2 | |
The vast majority of transactions will have just one tx pubkey, but a bug with cold wallet signing caused two such keys to be there, with the second one being the real one. | |||||
2016-11-15 | core: remove any tx pubkey from extra before adding one | moneromooo-monero | 1 | -0/+1 | |
This will happen when signing a transaction from a cold wallet, and we don't want the placeholder the hot wallet put in it. | |||||
2016-11-09 | add lightweight block propagation ("fluffy blocks") | Dion Ahmetaj | 2 | -0/+19 | |
Added a new command to the P2P protocol definitions to allow querying for support flags. Implemented handling of new support flags command in net_node. Changed for_each callback template to include support flags. Updated print_connections command to show peer support flags. Added p2p constant for signaling fluffy block support. Added get_pool_transaction function to cryptnote_core. Added new commands to cryptonote protocol for relaying fluffy blocks. Implemented handling of fluffy block command in cryptonote protocol. Enabled fluffy block support in node initial configuration. Implemented get_testnet function in cryptonote_core. Made it so that fluffy blocks only run on testnet. | |||||
2016-11-01 | refresh speedup | luigi1111 | 2 | -0/+8 | |
Compute derivation only once per tx, instead of once per output. Approx 33% faster while using 75% as much CPU on my machine. Note old functions in cryptonote_core (lookup_acc_outs and is_out_to_acc) are still used by tests. | |||||
2016-10-31 | rpc: add a dynamic fee estimation RPC call | moneromooo-monero | 2 | -0/+44 | |
2016-10-31 | core: dynamic fee algorithm from ArticMine | moneromooo-monero | 3 | -5/+80 | |
The fee will vary based on the base reward and the current block size limit: fee = (R/R0) * (M0/M) * F0 R: base reward R0: reference base reward (10 monero) M: block size limit M0: minimum block size limit (60000) F0: 0.002 monero Starts applying at v4 | |||||
2016-10-30 | core: fix removal of extra nonce using wrong type | moneromooo-monero | 1 | -1/+1 | |
2016-10-23 | daemon: report transaction relay status in print_pool* commands | moneromooo-monero | 1 | -0/+2 | |
2016-10-23 | core: notify the txpool when transactions are relayed | moneromooo-monero | 2 | -0/+19 | |
2016-10-22 | tx_pool: set relayed flag on relay | moneromooo-monero | 1 | -0/+3 | |
2016-10-15 | wallet: select part of the fake outs from recent outputs | moneromooo-monero | 2 | -3/+4 | |
25% of the outputs are selected from the last 5 days (if possible), in order to avoid the common case of sending recently received outputs again. 25% and 5 days are subject to review later, since it's just a wallet level change. | |||||
2016-10-14 | patched parameter type bug that was causing failure on 32 bit | Dion Ahmetaj | 2 | -2/+2 | |