Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-12-29 | wallet: store cache to file without unnecessary memory buffer | moneromooo-monero | 1 | -6/+8 | |
2015-12-29 | Tweak 45800a25e9374e63caaabba05c89585c86acd668 | hyc | 1 | -5/+5 | |
trivial cleanup | |||||
2015-12-28 | wallet_rpc_server: exit async, so we reply to stop_wallet RPC | moneromooo-monero | 2 | -1/+11 | |
Reported by saddam | |||||
2015-12-28 | blockchain_db: inform user about new format if blockchain.bin is found | moneromooo-monero | 1 | -0/+22 | |
2015-12-28 | blockchain: always stop the ioservice before returning | moneromooo-monero | 1 | -0/+2 | |
Fixes a use after free | |||||
2015-12-28 | wallet: do not return error if incoming_transfers finds none | moneromooo-monero | 1 | -5/+0 | |
reported by saddam | |||||
2015-12-28 | db_lmdb: safety close db at exit | moneromooo-monero | 1 | -0/+3 | |
Noticed by hyc Also set m_open to false when closed | |||||
2015-12-28 | db_lmdb: fix a strdup/delete[] mistmatch | moneromooo-monero | 1 | -3/+6 | |
2015-12-27 | Remove assert from status command | hyc | 1 | -1/+1 | |
Crashes every time... | |||||
2015-12-26 | BlockchainDB: skip fixup check if read-only database | warptangent | 6 | -0/+32 | |
2015-12-26 | blockchain: remove obsolete containers | moneromooo-monero | 2 | -8/+1 | |
2015-12-26 | blockchain: Fix height in call to on_blockchain_dec | moneromooo-monero | 1 | -1/+1 | |
It was a noop anyway | |||||
2015-12-26 | hardfork: ensure current_fork_index can not become negative on rescan | moneromooo-monero | 1 | -1/+1 | |
2015-12-25 | blockchain: fix a few block addition bugs | moneromooo-monero | 2 | -34/+46 | |
If the block reward was too high, the verification failed flag was set, but the function continued. The code which was supposed to trap this flag and return failure failed to trap it, and, while the block was not added to the chain, the function would return success. The reason for avoiding returning when the block reward problem was detected was to be able to return any transactions to the pool if needed. This is now mooted by moving the transaction return code to a separate function, which is now called at all appropriate points, making the logic much simpler, and hopefully correct now. We also move the hard fork version check after the prev_id check, as block which does not go on the top of the chain might not have the expected version there, without being invalid just for this reason. Last, we trap the case where a block fails to be added due to using already spent key images, to set the verification failed flag. | |||||
2015-12-25 | blockchain: fix an off by one error in unlocked time check | moneromooo-monero | 1 | -1/+1 | |
2015-12-25 | blockchain: reinstate double spending checks in check_tx_inputs | moneromooo-monero | 1 | -3/+7 | |
This fixes some double spending tests. This may or may not be unneeded in normal (non test) circumstances, to be determined later. Keeping these for now may be slower, but safer. | |||||
2015-12-25 | blockchain: make some flag twiddling code closer to the original | moneromooo-monero | 1 | -2/+2 | |
Probably paranoid and unnecessary | |||||
2015-12-25 | blockchain: fix bitflipping test with quantized block rewards | moneromooo-monero | 3 | -2/+6 | |
Block reward may now be less than the full amount allowed. This was breaking the bitflipping test. We now keep track of whether a block which was accepted by the core has a lower than allowed block reward, and allow this in the test. | |||||
2015-12-25 | blockchain: add missing m_tx_pool.on_blockchain_dec | moneromooo-monero | 1 | -0/+1 | |
It was missing in the port to DB. This is actually a noop, so should not have functional changes. | |||||
2015-12-25 | blockchain: fix switch to alternative blockchain for more than one block | moneromooo-monero | 1 | -1/+1 | |
When rolling over more than one block, the db height will decrease, but the split height should be constant, as per the original code. | |||||
2015-12-25 | blockchain: add a missing validity check to rollback_blockchain_switching | moneromooo-monero | 1 | -0/+6 | |
It was present in the original code | |||||
2015-12-25 | core: catch exceptions from get_output_key | moneromooo-monero | 1 | -2/+18 | |
This can happen when trying to find an amount that does not exist, and fixes a core test. | |||||
2015-12-25 | db: throw when given a non txout_to_key output to add | moneromooo-monero | 3 | -0/+13 | |
The check was explicit in the original version, so it seems safer to make it explicit here, especially as it is now done implicitely in a different place, away from the original check. | |||||
2015-12-24 | BlockchainDB: Remove txs in reverse order | warptangent | 1 | -3/+5 | |
Data should be removed in the reverse order it was added. Not doing so breaks assumptions and can cause problems in other DB implementations. This matches the order of tx removal in blockchain_storage::purge_block_data_from_blockchain. | |||||
2015-12-24 | BlockchainLMDB: When removing, find amount output index fast by starting at end | warptangent | 1 | -4/+5 | |
This improves blockchain reorganization time by allowing one of the more expensive DB lookups when popping a block to not have to seek through a long dup list in the "output_amounts" subdb. This is most noticeable for HDDs. As before, the dup list is still walked if necessary (but in reverse), and the global output index still confirmed to be the one looked for. But under proper use, the result will be found at the end of the dup list, so we start there. Removing an amount output index is always done in the context of popping a block, so the global output index being looked for should be the last one in that amount key's dup list. Even if the txs themselves aren't removed in reverse order (supposed to be according to original implementation), the specified amount output index will still be near the end, because the txs are in the same block. TEST: Pop blocks with blockchain_import. Blocks should be successfully removed with no errors shown. bitmonerod should be able to start syncing from the reduced blockchain height. | |||||
2015-12-24 | BlockchainLMDB: Remove tx outputs in reverse order | warptangent | 1 | -5/+5 | |
Data should be removed in the reverse order it was added. This matches the order of removal in blockchain_storage::pop_transaction_from_global_index. | |||||
2015-12-24 | fixed missing parenthesis | Riccardo Spagni | 1 | -1/+1 | |
2015-12-24 | fix for 'failed to generate new wallet: failed to save file' error during ↵ | Lex Kalinkin | 1 | -3/+5 | |
wallet generation | |||||
2015-12-23 | changed height to uint64_t | Brendan Telzrow | 1 | -4/+4 | |
2015-12-23 | added RPC wallet command getheight | Brendan Telzrow | 3 | -1/+35 | |
2015-12-22 | net_node: fix a hang on exit | moneromooo-monero | 1 | -1/+1 | |
One loop was not paying attention to the stop signal, and could end up looping forever | |||||
2015-12-21 | Strip redundant includes | hyc | 8 | -24/+4 | |
In particular, <boost/program_options.hpp> blows up daemon.cpp.obj, making it too big to compile in debug mode on Win32. Even on a release build it drops daemon.cpp.o on Linux from 31MB to 20MB. This has no effect on the final linked binary size. | |||||
2015-12-20 | wallet: fix load/save versioning bug for recently added tx data | moneromooo-monero | 1 | -2/+5 | |
The version number passed to those data's serialize function was always 0, not the wallet's version as I had expected. A version number now exists for these structures so they're versioned correctly. | |||||
2015-12-19 | Allow the wallet to access hard fork information | moneromooo-monero | 8 | -8/+63 | |
And make it change behavior slightly when close/after first hard fork | |||||
2015-12-19 | Add missing semicolons after log statements | moneromooo-monero | 8 | -12/+12 | |
2015-12-18 | print top block hash in daemon diff command | moneromooo-monero | 3 | -1/+11 | |
and add top block hash in get_info RPC | |||||
2015-12-17 | replace std::auto_ptr with std::unique_ptr | moneromooo-monero | 2 | -3/+3 | |
The former is obsolete | |||||
2015-12-17 | move another non user useful log to L1 | moneromooo-monero | 1 | -1/+1 | |
2015-12-17 | p2p: minor log formatting fix | moneromooo-monero | 1 | -1/+1 | |
2015-12-17 | wallet: save to a temporary file, then rename | moneromooo-monero | 2 | -1/+20 | |
This should avoid most of wallet cache corruption cases | |||||
2015-12-15 | Replace tabs and remove trailing whitespace | warptangent | 1 | -24/+24 | |
2015-12-15 | Optionally restrict DNS queries to TCP | warptangent | 1 | -3/+24 | |
Sample use: DNS_PUBLIC=tcp torsocks bin/bitmonerod --p2p-bind-ip 127.0.0.1 Test: Run above with --log-level 4 with and without DNS_PUBLIC environment variable set. DNS debugging info should show successful DNS lookups only when DNS_PUBLIC is set to "tcp": DNS lookup for seeds.moneroseeds.se: 17 results DNS lookup for seeds.moneroseeds.ae.org: 17 results DNS lookup for seeds.moneroseeds.ch: 12 results DNS lookup for seeds.moneroseeds.li: 12 results | |||||
2015-12-15 | Fix typo | warptangent | 2 | -2/+2 | |
2015-12-15 | blockchain.cpp: Change indentation from 4 to 2 spaces | warptangent | 1 | -2255/+2253 | |
2015-12-15 | Replace tabs with two spaces for consistency with rest of codebase | warptangent | 25 | -1308/+1306 | |
Remove trailing whitespace in same files. | |||||
2015-12-14 | Revert connection limit to more customary 8 | Javier Smooth | 1 | -1/+1 | |
2015-12-14 | db_lmdb: always use a batch tx if possible | moneromooo-monero | 1 | -290/+127 | |
Also wrap that code in two prefix/suffix macros so they are easier to use and not forget. Also add consts to returned data casts where applicable. | |||||
2015-12-14 | Tone down L0 logs during daemon sync some more | moneromooo-monero | 2 | -3/+3 | |
2015-12-14 | hardfork: only accept major versions we know about | moneromooo-monero | 1 | -0/+1 | |
2015-12-14 | Tone down a bit L0 logs during daemon sync | moneromooo-monero | 2 | -3/+11 | |
2015-12-13 | daemon: fix crash exiting with ^C | moneromooo-monero | 1 | -1/+1 | |
We need to stop the p2p layer, which causes the rest to shutdown gracefully. Hitting ^C was still going through another path. | |||||
2015-12-13 | posix_daemonizer: only create the main daemon object in the last child | moneromooo-monero | 1 | -1/+1 | |
This prevents the intermediate thread from exiting properly, as fork creates a child process with only one thread, so any existing data_logger thread will not be in the child. Since this thread sets a flag the data_logger dtor blocks on, all children threads will hang on exit. | |||||
2015-12-13 | Add LMDB error string to database transaction exception message | warptangent | 1 | -68/+74 | |
When throwing an exception from being unable to begin an LMDB transaction, include the reason. It's often been due to a write transaction attempted within a write transaction (batch mode), but there can be other reasons such as write transaction attempted while database was opened read only, or environment's map needs to be resized. | |||||
2015-12-13 | add a --fakechain argument for tests | moneromooo-monero | 6 | -8/+23 | |
The core tests use the blockchain, and reset it to be able to add test data to it. This does not play nice with the databases, since those will save that data without an explicit save call. We add a fakechain flag that the tests will set, which tells the core and blockchain code to use a separate database, as well as skip a few things like checkpoints and fixup, which only make sense for real data. | |||||
2015-12-13 | blockchain: log block (not chain) height in "BLOCK SUCCESFULLY ADDED" | moneromooo-monero | 1 | -1/+1 | |
This makes it log the same height as the original code, which is less confusing when comparing behaviors. | |||||
2015-12-13 | blockchain: fix off by one in get_blocks | moneromooo-monero | 1 | -1/+1 | |
2015-12-13 | db_lmdb: implement BlockchainLMDB::reset | moneromooo-monero | 1 | -1/+27 | |
It is needed by the core tests | |||||
2015-12-13 | db_bdb: implement BlockchainBDB::reset | moneromooo-monero | 1 | -1/+40 | |
It is needed by the core tests | |||||
2015-12-13 | tx_pool: fix "minumim" typo in message | moneromooo-monero | 1 | -1/+1 | |
2015-12-13 | db_lmdb: create all needed directories, not just the leaf one | moneromooo-monero | 1 | -1/+1 | |
2015-12-13 | db_bdb: create all needed directories, not just the leaf one | moneromooo-monero | 1 | -1/+1 | |
2015-12-11 | Stop displaying internal commands for --help | luigi1111 | 1 | -1/+1 | |
Displaying in-program commands with --help doesn't match daemon behaviour (or make sense) | |||||
2015-12-11 | simplewallet help & error cleanup | luigi1111 | 1 | -120/+120 | |
Typos, grammar, consistency. I don't claim to have gotten everything. | |||||
2015-12-10 | Fix data refs in read-only txns | Howard Chu | 1 | -16/+42 | |
Data is only guaranteed to be valid within the lifetime of a txn. You cannot use data returned from LMDB after the txn ends. Also, fixed a missing txn.commit BlockchainLMDB::get_tx_unlock_time() | |||||
2015-12-08 | Register daemon command line arguments to core if they're used in core | moneromooo-monero | 7 | -69/+76 | |
This fixes coretests, which does not register daemon specific arguments, but uses core, which uses those arguments. Also gets rid of an unwanted dependency on daemon code from core. | |||||
2015-12-07 | net_node: add a --offline argument | moneromooo-monero | 2 | -0/+12 | |
It will not try to connect to the monero network, nor listen | |||||
2015-12-07 | daemon: add mining status to the status command | moneromooo-monero | 1 | -8/+22 | |
2015-12-07 | db_bdb: move log_set_config call before open | moneromooo-monero | 1 | -3/+3 | |
This is a precaution for older Berkeley DB versions. - smooth reports an issue running with 4.7: DB_ENV->log_set_config: DB_LOG_IN_MEMORY: method not permitted after handle's open method - this works just fine with 5.3 - we do not use DB_LOG_IN_MEMORY, but we use DB_LOG_AUTO_REMOVE - libdb docs say some flags must be set before open, and some may be set at any time, but never say some must be set after open - moving the call to log_set_config before open works with 5.3 Therefore, it seems best to move the call before open. | |||||
2015-12-07 | db_bdb: support for libdb without DB_FORCESYNC | moneromooo-monero | 1 | -0/+34 | |
2015-12-07 | p2p: failure to load p2pstate.bin is not fatal anymore | moneromooo-monero | 1 | -2/+11 | |
Clear any partially loaded data, and start with a default config | |||||
2015-12-06 | blockchain_db: fixup missing key images in early DB version | moneromooo-monero | 7 | -0/+605 | |
Early DB versions did not store key images for inputs if the transaction spending them had no outputs (ie, all fee). This is not correct, as this would allow these outputs to be double spent. This was fixed in 533acc30eda7792c802ea8b6417917fa99b8bc2b a few months ago, but databases having synced blocks 2021612 and 685498 with a faulty version will be missing those key images in the spent keys database. This code checks for this, and adds those key images if they are missing. | |||||
2015-12-05 | wallet: make the wallet refresh type a wallet setting | moneromooo-monero | 4 | -34/+93 | |
instead of a command line setting. It makes sense that is is a long lived setting. | |||||
2015-12-05 | wallet: default auto-refresh to true for old wallets | moneromooo-monero | 1 | -0/+1 | |
2015-12-05 | blockchain_db: make the indexing base a BlockchainDB virtual function | moneromooo-monero | 3 | -3/+6 | |
2015-12-05 | wallet: add a stop_wallet RPC call | moneromooo-monero | 3 | -0/+40 | |
2015-12-05 | blockchain_dump: fix output key dump for BDB 1-based indices | moneromooo-monero | 1 | -2/+5 | |
Berkeley DB uses 1 based indices for RECNO databases, and the implementation of BlockchainDB for Berkeley DB assumes 1 based indices are passed to the API, whereas the LMDB one assumes 0 based indices. This is all internally consisteny, but since the BDB code stores 1 based indices in the database, external users have to be aware of this, as the indices will be off by one depending on which DB is used. | |||||
2015-12-04 | db_bdb: read 32 bit heights from keys | moneromooo-monero | 1 | -1/+1 | |
Keys in Berkeley DB are 32 bits. We don't want to read random bits in the high part. | |||||
2015-11-30 | wallet2: default auto-refresh to true for preexisting wallets | moneromooo-monero | 1 | -1/+1 | |
2015-11-30 | Revert "Merge pull request #506" | Riccardo Spagni | 1 | -2/+2 | |
This reverts commit c6bf73131aaf804cb17f24c856f826be2761a566, reversing changes made to 8a52cf4055d247dd4b162985c931e99683992e3c. | |||||
2015-11-29 | wallet: cancellable refresh | moneromooo-monero | 5 | -14/+58 | |
^C while in manual refresh will cancel the refresh, since that's often an annoying thing to have to wait for. Also, a manual refresh command will interrupt any running background refresh and take over, rather than wait for the background refresh to be done, and look to be hanging. | |||||
2015-11-29 | simplewallet: add tr markers in a few missing user visible strings | moneromooo-monero | 1 | -8/+8 | |
2015-11-29 | simplewallet: swap colors in show_transfers | moneromooo-monero | 1 | -1/+1 | |
Green is now used for incoming transfers, and magenta for outgoing transfers. This is consistent to the scheme used by other logging. | |||||
2015-11-29 | wallet2: remove confirmed transactions from detached blocks | moneromooo-monero | 1 | -0/+8 | |
2015-11-28 | wallet2: speed up wallet refresh for large miners | moneromooo-monero | 1 | -14/+47 | |
2015-11-28 | wallet: optional automatic refresh from the daemon | moneromooo-monero | 4 | -11/+122 | |
The daemon will be polled every 90 seconds for new blocks. It is enabled by default, and can be turned on/off with set auto-refresh 1 and set auto-refresh 0 in the wallet. | |||||
2015-11-27 | core: serialize block major/minor versions as bytes, not varints | moneromooo-monero | 1 | -2/+2 | |
This allows them to be saved as a fixed (one byte) chunk whatever the value. Using a varint will use two bytes as the high bit gets set. This is backward compatible with current usage (0-2 values). | |||||
2015-11-27 | core_rpc_server: add a --restricted-rpc option | moneromooo-monero | 2 | -12/+22 | |
It does not expose the RPC for commands like start_mining, etc (ie, commands a public node operator might want to be restricted) | |||||
2015-11-27 | wallet2: parallelize pulling blocks and processing them on refresh | moneromooo-monero | 2 | -13/+49 | |
This needed locking the use of m_http_client, to avoid collisions in I/O. | |||||
2015-11-27 | wallet2: maintain the short chain manually when refreshing | moneromooo-monero | 2 | -4/+17 | |
2015-11-27 | wallet2: split pull blocks between pulling and processing | moneromooo-monero | 2 | -10/+20 | |
2015-11-26 | rpc: pass current block target in rpc | moneromooo-monero | 3 | -2/+4 | |
This fixes the hash rate being wrong on testnet after the switch to 2 minute blocks | |||||
2015-11-26 | add RPC calls and commands to get/set bans | moneromooo-monero | 11 | -4/+302 | |
2015-11-25 | net_node: allow bans for custom amounts of time | moneromooo-monero | 2 | -4/+4 | |
m_blocked_ips now stores the unblocking time, rather than the blocking time. Also change > to >=, since banning for 0 seconds should not ban | |||||
2015-11-25 | util: use putenv instead of setenv for mingw | moneromooo-monero | 1 | -0/+5 | |
2015-11-24 | hardfork: fix more major/minor issues | moneromooo-monero | 3 | -24/+26 | |
Also add some more tests, and rename some instances of "version" and "add" for clarity. NOTE: the starting height values are sometimes wrong. I suspect this is due to the hard fork reorg code being buggy, since they're good when syncing after the fact. However, they're not actually used by the consensus code, so I'm ignoring this for now, but this needs debugging. | |||||
2015-11-23 | hardfork: fix rescan on load | moneromooo-monero | 1 | -1/+1 | |
2015-11-23 | Add IP blocking for misbehaving nodes (adapted from Boolberry) | Javier Smooth | 6 | -2/+107 | |
With minor cleanup and fixes (spelling, indent) by moneromooo | |||||
2015-11-23 | quiet down p2p logging a bit | Javier Smooth | 1 | -1/+1 | |
2015-11-23 | blockchain: log versions as numbers, not characters | moneromooo-monero | 1 | -1/+1 | |
2015-11-23 | hardfork: fix actual/voting confusion | moneromooo-monero | 1 | -3/+8 | |
2015-11-23 | daemon: fix blockchain height display not updating after sync | moneromooo-monero | 1 | -1/+1 | |
2015-11-22 | cn_deserialize: a new tool to decode blocks and transactions | moneromooo-monero | 2 | -0/+196 | |
2015-11-22 | add recent static checkpoint | Javier Smooth | 1 | -0/+1 | |
2015-11-22 | wallet: make the refresh optimizations selectable via command line | moneromooo-monero | 4 | -6/+62 | |
Take the opportunity to add a no-coinbase case too, for even faster sync when an address is known to never have mined to. | |||||
2015-11-22 | wallet: speedup refresh from daemon | moneromooo-monero | 2 | -38/+59 | |
Assume the whole of a coinbase goes to the same address (so that if the first output isn't for us, none of it is), and only look for payment id when we received something in the transaction. | |||||
2015-11-22 | wallet2: minor cleanup | moneromooo-monero | 1 | -7/+4 | |
- use std::vector::std::deque to not leak when exceptions happen - use std::unique_ptr instead of the deprecated std::auto_ptr | |||||
2015-11-22 | wallet2: speedup refresh a bit | moneromooo-monero | 2 | -3/+151 | |
Use the NoodleDoodle threading technique to speedup a couple code blocks on the main path when refreshing blocks without any transactions for us. | |||||
2015-11-22 | fixed testnet fork point, added comment data back in | Riccardo Spagni | 1 | -3/+3 | |
2015-11-22 | wallet: storing outgoing tx info now defaults to enabled | moneromooo-monero | 1 | -2/+2 | |
The info is stored encrypted, and is pretty useful, often after the fact. | |||||
2015-11-22 | wallet: rename store-tx-keys to store-tx-info | moneromooo-monero | 4 | -18/+19 | |
With backward compatibility | |||||
2015-11-22 | wallet: improve show_transfers | moneromooo-monero | 3 | -14/+89 | |
More information is now saved and displayed | |||||
2015-11-21 | wallet: use incoming blocks to keep track of payments too | moneromooo-monero | 3 | -5/+27 | |
2015-11-21 | disable time-stats by default, tweak fast-block-sync description | Riccardo Spagni | 1 | -2/+2 | |
2015-11-21 | update v2 testnet fork height | Riccardo Spagni | 1 | -3/+6 | |
2015-11-21 | checkpoints update | Riccardo Spagni | 1 | -0/+0 | |
2015-11-21 | simplewallet: lessen display flicker confusion | moneromooo-monero | 1 | -2/+2 | |
Height seemed to be flying all over the place on a rescan here. Logging to a file shows the heights are actually correct, and this is some kind of screen refresh artifact. Flush after \r and update less often to reduce this effect a lot. | |||||
2015-11-21 | Fix startup crash when using a locale boost does not like | moneromooo-monero | 7 | -1/+33 | |
There are various locale related bugs in various versions of boost, where exceptions are thrown in boost::filesystem APIs when the current locale is not to boost's liking. It's not clear what "not to boost's liking" means in detail, though "en" and "en_US.UTF-8" are not to its liking. Fix it by running a test function that's known to throw in such a case, and resetting LANG and LC_ALL to C if an exception is thrown. In simplewallet, the locale is queried before that so the correct translations will still be used. | |||||
2015-11-21 | i18n: allow language to be passed as a parameter | moneromooo-monero | 2 | -5/+7 | |
If empty, it will still be fetched from the environment | |||||
2015-11-21 | Relay transactions when they linger too long in the pool | moneromooo-monero | 9 | -31/+128 | |
The last relayed time of a transaction is maintained, and transactions will be relayed again if they are still in the pool after a certain amount of time, which increases with the transaction's age. All such transactions are resent, whether or not they originated on the local node. | |||||
2015-11-15 | wallet: track outgoing payments and add a show_transfers command | moneromooo-monero | 4 | -11/+166 | |
It's a user friendly display of incoming and outgoing transfers, listed by height, within an optional height range. | |||||
2015-11-13 | Revert "db_bdb: record numbers for recno databases start at 1" | moneromooo-monero | 1 | -3/+3 | |
It looks like some of the indices passed to the DB access functions are already bumped by 1. Moreover, the existing code was not throwing DB errors with 0 keys, and this is unlikely if it really was using 0 keys. Last, this patch broke sync from scratch in at least one case. So I'm calling it bad and reverting it. This reverts commit bfc97401ae81bb30278a318de7f048c653bf6582. | |||||
2015-11-13 | More changes for 2-min blocks | Javier Smooth | 6 | -13/+14 | |
Use the correct block time for realtime fuzz on locktime Use the correct block time to calculate next_difficulty on alt chains (will not work as-is with voting) Lock unit tests to original block time for now | |||||
2015-11-13 | Adjust difficulty target (2 min) and full reward zone (60 kbytes) for block ↵ | Javier Smooth | 6 | -17/+29 | |
version 2 | |||||
2015-11-10 | hardfork: add a get_ideal_version(uint64_t) function | moneromooo-monero | 2 | -0/+18 | |
It returns the ideal version for a given height, which is based on the minimum height for a fork, disregarding votes | |||||
2015-11-08 | hardfork: allow per-fork voting thresholds | moneromooo-monero | 3 | -21/+42 | |
And setup the first fork to not vote | |||||
2015-10-30 | blockchain_dump: fix build without berkeley db | moneromooo-monero | 1 | -0/+4 | |
2015-10-30 | simplewallet: add a set default-mixin command | moneromooo-monero | 4 | -5/+87 | |
The default default mixin is 4. It can now be changed per wallet. | |||||
2015-10-30 | wallet2: fix CLANG compile error | moneromooo-monero | 1 | -1/+1 | |
2015-10-28 | rpc: fix start_mining and status RPC crashes | moneromooo-monero | 5 | -6/+11 | |
They check whether they're running on testnet by accessing the m_rpc_server object, which does not exist when in RPC mode. Also, fix hard_fork_info being called with the wrong API. | |||||
2015-10-27 | blockchain_utilities: properly exit on error | moneromooo-monero | 2 | -7/+7 | |
Replace boolean values and exceptions where appropriate | |||||
2015-10-27 | Remove some old/obsolete/unused code | moneromooo-monero | 7 | -220/+0 | |
git history's here if needed to get any of this back | |||||
2015-10-27 | common: const and init list pedantry | moneromooo-monero | 2 | -2/+3 | |
2015-10-27 | Fix a possibly-unused warning, and rationalize types | moneromooo-monero | 3 | -12/+12 | |
2015-10-26 | Build fixes for the old blockchain_storage version | moneromooo-monero | 3 | -8/+13 | |
2015-10-26 | db_bdb: add versioning, to detect incompatible format changes | moneromooo-monero | 2 | -0/+83 | |
2015-10-26 | db_lmdb: add versioning, to detect incompatible format changes | moneromooo-monero | 2 | -8/+85 | |
2015-10-26 | renamed folder | Riccardo Spagni | 174 | -4830/+0 | |
2015-10-26 | rpc: fix hard_fork_info RPC | moneromooo-monero | 3 | -4/+8 | |
I had never tested it, obviously | |||||
2015-10-26 | rpc: fix a few commands not working as command line | moneromooo-monero | 1 | -3/+3 | |
The method name to the "json_rpc" commands are names, not part of URLs. | |||||
2015-10-25 | daemon: add a status command | moneromooo-monero | 5 | -0/+71 | |
Displays current block height and target, net hash, hard fork basic info, and connections. Useful as a basic user friendly "what's going on here" command. | |||||
2015-10-25 | Fix leak on real output when using a very recent output | moneromooo-monero | 5 | -3/+14 | |
The wallet and the daemon applied different height considerations when selecting outputs to use. This can leak information on which input in a ring signature is the real one. Found and originally fixed by smooth on Aeon. | |||||
2015-10-25 | blockchain_utilities: new blockchain_dump diagnostic tool | moneromooo-monero | 2 | -0/+458 | |
It dumps data from the blockchain to a JSON format, and is intended to help detect differences between data held in different database formats. | |||||
2015-10-25 | Add functions to iterate through blocks, txes, outputs, key images | moneromooo-monero | 9 | -0/+362 | |
2015-10-25 | db_bdb: record numbers for recno databases start at 1 | moneromooo-monero | 1 | -3/+3 | |
2015-10-25 | db_bdb: DB_KEYEMPTY is also not found for non-top recon fields | moneromooo-monero | 1 | -2/+2 | |
2015-10-25 | blockchain_db: use the DNE exceptions where appropriate | moneromooo-monero | 2 | -17/+19 | |
2015-10-21 | hardfork: switch voting to block minor version | moneromooo-monero | 3 | -9/+20 | |
Using major version would cause older daemons to reject those blocks as they fail to deserialize blocks with a major version which is not 1. There is no such restriction on the minor version, so switching allows older daemons to coexist with newer ones till the actual fork date, when most will hopefully have updated already. Also, for the same reason, we consider a vote for 0 to be a vote for 1, since older daemons set minor version to 0. | |||||
2015-10-17 | blockchain_export can now export to a blocks.dat format | moneromooo-monero | 11 | -38/+368 | |
Also make the number of blocks endian independant, and add support for testnet | |||||
2015-10-17 | bootstrap_file: do not try to create a directory with an empty name | moneromooo-monero | 1 | -10/+13 | |
This will happen if the chosen output file does not have a path specified | |||||
2015-10-17 | hardfork: use DB transactions when reorganizing | moneromooo-monero | 1 | -3/+3 | |
It speeds up a lot, which can be significant when reorganizing from the genesis block to create the hard fork data. | |||||
2015-10-17 | hardfork: simplify work done on reload | moneromooo-monero | 2 | -1/+40 | |
There is no need to fully recalculate and rewrite state, just refill state from the DB. | |||||
2015-10-15 | renamed folder | Riccardo Spagni | 174 | -4830/+0 | |
2015-10-14 | simplewallet: add a check_tx_key command | moneromooo-monero | 2 | -0/+106 | |
It allows one to check the amount of monero sent to a particular address in a particular transaction, given that transaction's tx key | |||||
2015-10-14 | wallet2: really include non canonical outputs in dust sweep | moneromooo-monero | 1 | -1/+1 | |
2015-10-13 | core_rpc_server: add optional json decoded tx to COMMAND_RPC_GET_TRANSACTIONS | moneromooo-monero | 2 | -0/+6 | |
2015-10-13 | core_rpc_server: add a getblock RPC command, and fix print_block | moneromooo-monero | 4 | -8/+104 | |
2015-10-12 | simplewallet: hide start_mining behind --trusted-daemon | moneromooo-monero | 1 | -0/+6 | |
because it leaks your standard address | |||||
2015-10-11 | simplewallet: add a --trusted-daemon flag | moneromooo-monero | 2 | -0/+10 | |
It allows enabling the rescan_spent command only for trusted daemon | |||||
2015-10-11 | simplewallet: bump default mixin from 3 to 4 | moneromooo-monero | 1 | -1/+1 | |
As recommended in MRL-0004 | |||||
2015-10-11 | from hard fork 2, all outputs must be decomposed | moneromooo-monero | 6 | -48/+67 | |
The wallet decomposes fully as of now too. | |||||
2015-10-10 | from hard fork 2, claim a quantized reward in coinbase | moneromooo-monero | 4 | -4/+22 | |
The small leftover is carried forward | |||||
2015-10-10 | cryptonote_format_utils: add a function to tell if an amount is canonical | moneromooo-monero | 2 | -0/+31 | |
2015-10-05 | Update to compile with latest miniupnpc | warptangent | 1 | -0/+6 | |
upnpDiscover() takes a new argument for TTL. Use the suggested default of 2. | |||||
2015-10-04 | build: default to Berkeley DB for 32 bit and ARM | moneromooo-monero | 1 | -1/+1 | |
2015-10-04 | db_bdb: fix hard fork keys | moneromooo-monero | 1 | -4/+4 | |
Berkeley DB requires RECNO keys to be 32 bits, and forbids a key value of 0. | |||||
2015-10-04 | hardfork: move an assert so it actually works | moneromooo-monero | 1 | -1/+1 | |
An unsigned quantity is always >= 0 | |||||
2015-09-27 | blockchain: on hardfork 2, require mixin 2 at least if possible | moneromooo-monero | 1 | -0/+37 | |
2015-09-27 | hardfork: make the voting window a week | moneromooo-monero | 1 | -1/+1 | |
2015-09-27 | hardfork: rescan speedup | moneromooo-monero | 3 | -15/+41 | |
Add a block height before which version 1 is assumed Use DB transactions | |||||
2015-09-27 | hardfork: remove use of GNU extension for initializing object | moneromooo-monero | 2 | -4/+5 | |
2015-09-27 | blockchain: on hardfork 2, allow miners to claim less money than allowed | moneromooo-monero | 1 | -3/+7 | |
So they can avoid dust if they so wish | |||||
2015-09-27 | hardfork: change window semantics to not count the newly added block | moneromooo-monero | 1 | -5/+20 | |
This allows knowing the hard fork a block must obey in order to be added to the blockchain. The previous semantics would use that new block's version vote to determine this hard fork, which made it impossible to use the rules to validate transactions entering the tx pool (and made it impossible to validate a block before adding it to the blockchain). | |||||
2015-09-27 | blockchain: use different hard fork settings for testnet and mainnet | moneromooo-monero | 1 | -3/+19 | |
2015-09-27 | dns_utils: fix wrong asserts | moneromooo-monero | 1 | -2/+2 | |
Braino. | |||||
2015-09-20 | hardfork: most state now saved to the DB | moneromooo-monero | 9 | -100/+321 | |
There will be a delay on first load of an existing blockchain as it gets reparsed for this state data. | |||||
2015-09-20 | hardfork: remove the "parts are copyright cryptonote" notices | moneromooo-monero | 2 | -4/+0 | |
I coded the whole thing from scratch. | |||||
2015-09-19 | Add an RPC call and daemon command to get info on hard fork voting | moneromooo-monero | 13 | -5/+169 | |
2015-09-19 | blockchain: force a hardfork recalculation at load time | moneromooo-monero | 1 | -0/+3 | |
Since the state isn't actually saved anywhere, as the archive code isn't called in the new DB version. | |||||
2015-09-19 | core: add consts where appropriate | moneromooo-monero | 6 | -79/+82 | |
2015-09-13 | core: moan when we think an update is needed to get latest hard fork info | moneromooo-monero | 4 | -0/+35 | |
2015-09-12 | blockchain: use the new hardfork class | moneromooo-monero | 3 | -8/+29 | |
2015-09-12 | New hardfork class | moneromooo-monero | 3 | -2/+475 | |
This keeps track of voting via block version, in order to decide when to enable a particular fork's code. | |||||
2015-09-12 | blockchain: add a couple missing includes | moneromooo-monero | 1 | -0/+2 | |
2015-08-30 | dns_utils: remove unnecessary string conversion | moneromooo-monero | 1 | -5/+2 | |
2015-08-30 | dns_utils: factor the fetching code for different DNS record types | moneromooo-monero | 2 | -59/+34 | |
2015-08-30 | dns_utils: simplify string handling and fix leak | moneromooo-monero | 1 | -5/+1 | |
2015-08-27 | dns_utils: add a const where possible | moneromooo-monero | 2 | -2/+2 | |
2015-08-27 | dns_utils: lock access to the singleton | moneromooo-monero | 1 | -0/+4 | |
This avoids races which could result in two objects being created | |||||
2015-08-27 | dns: make ctor private | moneromooo-monero | 2 | -1/+15 | |
This ensures one can't instanciate a DNSResolver object by mistake, but uses the singleton. A separate create static function is added for cases where a new object is explicitely needed. | |||||
2015-08-26 | Re-enable optimized slow-hash if someone is trying to compile w/MSVC ↵ | Javier Smooth | 1 | -1/+1 | |
(disabling it was unintentional) | |||||
2015-08-26 | wallet: use mutex protected random generation api | moneromooo-monero | 2 | -2/+2 | |
2015-08-24 | blockchain: remove obsolete call to libc srand | moneromooo-monero | 1 | -1/+0 | |
crypto::rand is now used for output selection | |||||
2015-08-24 | simplewallet: add a store-tx-keys option to set | moneromooo-monero | 2 | -1/+46 | |
To enable storing tx keys in the (now encrypted) wallet cache. | |||||
2015-08-24 | wallet: only return tx keys via RPC if requested | moneromooo-monero | 6 | -11/+36 | |
To get the tx keys returned via RPC, set the "get_tx_key" or "get_tx_keys" request field to true (defaults to false). | |||||
2015-08-23 | Added ref10 shen_ed25519_ref code, which includes code that can replace ↵ | ShenNoether | 174 | -0/+23117 | |
crypto-ops with a version straight from Bernstein's ref 10 | |||||
2015-08-23 | revert to 776b4fc91a821be152f0f23e6873aabb78a72029 | ShenNoether | 1 | -0/+0 | |
2015-08-23 | Added shen_ed25519_ref to crypto ops subfolder, the point is to directly ↵ | ShenNoether | 1 | -0/+0 | |
have bitmonero's crypto code come from bernstein et al's ref 10 code | |||||
2015-08-23 | use correct unsigned type | roman | 1 | -1/+2 | |
2015-08-23 | removed some gcc warnings. mainly unused variables. | roman | 4 | -7/+1 | |
2015-08-22 | wallet: encrypt the cache file | moneromooo-monero | 2 | -2/+76 | |
It contains private data, such as a record of transactions. The key is derived from the view and spend secret keys. The encryption currently is one shot, so may require a lot of memory for large wallet caches. |