Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2016-04-02 | bumped version number | Riccardo Spagni | 1 | -1/+1 | |
2016-04-01 | core: remove the block reward accumulation loop | moneromooo-monero | 1 | -5/+1 | |
This can generate non decomposed outputs for very large block rewards (or not so large ones if a miner decides to not quantize the block rewards). Out of an abundance of caution, we refuse to generate those. They are still accepted by the consensus code, however. | |||||
2016-03-30 | Detect map resize failures | Howard Chu | 1 | -1/+3 | |
2016-03-30 | minor corrections/clarifications | Thomas Winget | 2 | -4/+6 | |
2016-03-30 | add blockhashing blob to getblocktemplate | Howard Chu | 2 | -0/+4 | |
2016-03-29 | simplewallet: always gracefully exit on EOF | moneromooo-monero | 1 | -0/+34 | |
2016-03-28 | wallet: fix --generate-from-keys saving as watch only | moneromooo-monero | 1 | -1/+1 | |
2016-03-27 | wallet: make load_keys check types when loading JSON | moneromooo-monero | 2 | -23/+38 | |
2016-03-27 | wallet: make the JSON reading type safe | moneromooo-monero | 1 | -41/+31 | |
2016-03-27 | common: new json_util.h | moneromooo-monero | 1 | -0/+53 | |
With code to help factor out reading typed fields from JSON | |||||
2016-03-27 | Convey tx verification failure reasons to the RPC client | moneromooo-monero | 10 | -26/+101 | |
This allows appropriate action to be taken, like displaying the reason to the user. Do just that in simplewallet, which should help a lot in determining why users fail to send. Also make it so a tx which is accepted but not relayed is seen as a success rather than a failure. | |||||
2016-03-27 | simplewallet: default to trusted daemon for loopback address | moneromooo-monero | 1 | -0/+42 | |
2016-03-26 | wallet: pass std::function by const ref, not value | moneromooo-monero | 2 | -2/+2 | |
Because we can. | |||||
2016-03-26 | wallet: do not leak owned amounts to the daemon unless --trusted-daemon | moneromooo-monero | 5 | -8/+11 | |
This will be slower, though more private. New trusted_daemon parameter to the matching RPC call, false by default. | |||||
2016-03-26 | wallet: change sweep_dust to sweep_unmixable | moneromooo-monero | 6 | -30/+129 | |
With the change in mixin rules for v2, the "annoying" outputs are slightly changed. There is high correlation between dust and unmixable, but no equivalence. | |||||
2016-03-26 | New RPC and daemon command to get output histogram | moneromooo-monero | 15 | -0/+243 | |
This is a list of existing output amounts along with the number of outputs of that amount in the blockchain. The daemon command takes: - no parameters: all outputs with at least 3 instances - one parameter: all outputs with at least that many instances - two parameters: all outputs within that many instances The default starts at 3 to avoid massive spamming of all dust outputs in the blockchain, and is the current minimum mixin requirement. An optional vector of amounts may be passed, to request histogram only for those outputs. | |||||
2016-03-26 | wallet: handle rare case where fee adjustment can bump to the next kB | moneromooo-monero | 1 | -2/+3 | |
It resulted in a tx being sent with too low a fee, and thus rejected. | |||||
2016-03-26 | wallet: factor fee calculation | moneromooo-monero | 1 | -22/+11 | |
2016-03-25 | blockchain: for v3, require miner tx to have well behaved outs | moneromooo-monero | 2 | -3/+13 | |
This was meant to go in v2, but the miner tx slipped through the cracks as it doesn't go through the main tx verification since it doesn't get added to the pool. | |||||
2016-03-25 | core: fix miner tx block reward with fees | moneromooo-monero | 1 | -8/+7 | |
2016-03-25 | remove connectivity tool, comment it out from munin plugins too | Riccardo Spagni | 3 | -424/+0 | |
2016-03-25 | Merge pull request #749 | Riccardo Spagni | 14 | -587/+2902 | |
bfd4a28 Update BlockchainDB documentation (Thomas Winget) 797357e Change Doxyfile, Blockchain not blockchain_storage (Thomas Winget) c835215 remove defunct code from cryptonote::core (Thomas Winget) 50dba6d cryptonote::core doxygen documentation (Thomas Winget) 8ac329d doxygen documentation for difficulty functions (Thomas Winget) 540a76c Move checkpoint functions into checkpoints class (Thomas Winget) 1b0c98e doxygen documentation for checkpoints.{h,cpp} (Thomas Winget) 89c24ac Remove unnecessary or defunct code (Thomas Winget) ab0ed14 doxygen include private and static members (Thomas Winget) 3a48449 Updated documentation for blockchain.* (Thomas Winget) | |||||
2016-03-25 | Revert "Merge pull request #749" | Riccardo Spagni | 14 | -2902/+587 | |
This reverts commit 7fa63a82a1c3a0243f6757c1689855ed3ca61695, reversing changes made to cb6be986c36b78eddb4b7f16e9ad440af8567dc4. | |||||
2016-03-25 | wallet: add a --generate-from-json flag | moneromooo-monero | 4 | -10/+192 | |
It takes a filename containing JSON data to generate a wallet. The following fields are valid: version: integer, should be 1 filename: string, path/filename for the newly created wallet scan_from_height: 64 bit unsigned integer, optional password: string, optional viewkey: string, hex representation spendkey: string, hex representation seed: string, optional, list of words separated by spaces Either seed or private keys should be given. If using private keys, the spend key may be omitted (the wallet will not be able to spend, but will see incoming transactions). If scan_from_height is given, blocks below this height will not be checked for transactions as an optimization. | |||||
2016-03-24 | Transaction pool documentation (and some cleanup) | Thomas Winget | 2 | -74/+372 | |
tx_pool.h doxygen documentation completed. Many notes made on areas for improvement, be that functionality or code clarity. Commented code and unused code removed. | |||||
2016-03-24 | Update BlockchainDB documentation | Thomas Winget | 1 | -155/+937 | |
BlockchainDB is now Doxygen-compliant and its documentation is up-to-date with recent changes. | |||||
2016-03-24 | remove defunct code from cryptonote::core | Thomas Winget | 2 | -22/+0 | |
2016-03-24 | cryptonote::core doxygen documentation | Thomas Winget | 2 | -26/+617 | |
2016-03-24 | doxygen documentation for difficulty functions | Thomas Winget | 2 | -2/+16 | |
2016-03-24 | Move checkpoint functions into checkpoints class | Thomas Winget | 9 | -359/+327 | |
The functions in src/cryptonote_core/checkpoints_create.{h,cpp} should be member functions of the checkpoints class, if nothing else for the sake of keeping their documentation together. This commit covers moving those functions to be member functions of the checkpoints class as well as documenting those functions. | |||||
2016-03-22 | doxygen documentation for checkpoints.{h,cpp} | Thomas Winget | 2 | -6/+99 | |
All functions in src/cryptonote_core/checkpoints.h are now documented in doxygen style. checkpoints.cpp has been reviewed, one function has been marked for discussion on correctness. | |||||
2016-03-22 | Remove unnecessary or defunct code | Thomas Winget | 2 | -22/+0 | |
2016-03-22 | Updated documentation for blockchain.* | Thomas Winget | 2 | -14/+925 | |
All functions are now documented in doxygen format. Comments have been updated to reflect the current state of the code. Many areas for improvement in clarity and design have been noted, as well as cruft to be removed. These changes are not reflected in this commit both to allow time for comment and to keep commits organized by purpose. | |||||
2016-03-22 | blockchain: fix partial block reward detection | moneromooo-monero | 1 | -1/+1 | |
2016-03-21 | update version number | Riccardo Spagni | 1 | -1/+1 | |
2016-03-21 | also maybe do the block height this time, you know, just so that it actually ↵ | Riccardo Spagni | 1 | -1/+1 | |
works. | |||||
2016-03-21 | also update the timestamp for the hard fork | Riccardo Spagni | 1 | -1/+1 | |
2016-03-21 | set fork date for September, add hyc's GPG key, remove aabramov's | Riccardo Spagni | 1 | -0/+3 | |
2016-03-21 | Revert "Print stack trace upon exceptions" | moneromooo-monero | 28 | -201/+46 | |
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d. | |||||
2016-03-20 | db_lmdb: include the error codes from lmdb api in error logs | moneromooo-monero | 1 | -40/+47 | |
2016-03-20 | cryptonote_protocol: clarify height wording | moneromooo-monero | 1 | -1/+1 | |
It's logging the blockchain height, not the top block height | |||||
2016-03-19 | rpc: fix print_tx in command line mode | moneromooo-monero | 1 | -1/+1 | |
It was only filling the input in non rpc mode | |||||
2016-03-19 | simplewallet: make --password-file work in RPC mode | moneromooo-monero | 1 | -42/+54 | |
2016-03-19 | Print stack trace upon exceptions | moneromooo-monero | 28 | -46/+201 | |
Useful for debugging users' logs | |||||
2016-03-19 | Reduce log noise | Howard Chu | 1 | -2/+3 | |
2016-03-19 | Fix issue #706 | Howard Chu | 1 | -0/+1 | |
2016-03-16 | bump the version | Riccardo Spagni | 1 | -1/+1 | |
2016-03-16 | baked-in block headers now go all the way up to 1 million. 1 MILLION | Riccardo Spagni | 1 | -0/+0 | |
2016-03-16 | Add destructor for readtxns | Howard Chu | 2 | -10/+21 | |
Only if we created the readtxn. Was missing cleanups from exceptions before. | |||||
2016-03-16 | Wallet::store_to(path, password) implemented; | Ilya Kitaev | 5 | -17/+113 | |
2016-03-16 | Wallet::address implemented | Ilya Kitaev | 2 | -0/+7 | |
2016-03-16 | WalletManager::recoveryWallet implemented | Ilya Kitaev | 2 | -5/+42 | |
2016-03-16 | Wallet::setPassword() method for wallet2_api | Ilya Kitaev | 4 | -9/+58 | |
2016-03-16 | changes in wallet2_api + implemented WalletManager::openWallet | Ilya Kitaev | 2 | -28/+130 | |
2016-03-16 | get_seed() included to interface | Ilya Kitaev | 2 | -14/+31 | |
2016-03-16 | tests for wallet2_api | Ilya Kitaev | 3 | -6/+40 | |
2016-03-16 | wallet2 public api. initial commit | Ilya Kitaev | 3 | -2/+227 | |
2016-03-15 | Small cleanups | Howard Chu | 1 | -24/+28 | |
Only one return and TXN_POSTFIX_RDONLY() per function Only log rtxn_start if the rtxn wasn't already active | |||||
2016-03-15 | More for 92dd4ec6d6251b15954002e72a7c7faa5059a3ab | Howard Chu | 1 | -22/+22 | |
Make sure we stop the right txn too | |||||
2016-03-14 | fix formatting error on bitmonero print_block return | Mike C | 1 | -1/+1 | |
Example of current return for `print_block 912345`: timestamp: 1452793716 previous hash: b61c58b2e0be53fad5ef9d9731a55e8a81d972b8d90ed07c04fd37ca6403ff78 nonce: 1646 is orphan: 0 height: 912345 depth: 85434 hash: e22cf75f39ae720e8b71b3d120a5ac03f0db50bba6379e2850975b4859190bc6difficul ty: 815625611 reward: 7388968946286 { "major_version": 1, "minor_version": 2, … Without `std::endl`, the difficulty gets smashed on the end of the hash. | |||||
2016-03-14 | Fix typo on bitmonerod rpc method error. | Mike C | 1 | -3/+3 | |
2016-03-14 | Hack for read/write txn mixup | Howard Chu | 2 | -42/+31 | |
save the thread ID of the writer thread so we don't try to use the writetxn from reader threads | |||||
2016-03-14 | avoid some val copies | Howard Chu | 2 | -21/+21 | |
2016-03-12 | switch default utilities DB to lmdb, update checkpoints.dat | Riccardo Spagni | 2 | -3/+6 | |
2016-03-12 | simplewallet: fix hang when setting auto-refresh to 0 | moneromooo-monero | 1 | -0/+1 | |
It would try to join the auto refresh thread, which would only happen after it was done, which would take a long time when doing so on a newly created wallet. | |||||
2016-03-12 | simplewallet: special ^C handling for windows | moneromooo-monero | 1 | -0/+4 | |
Because obviously it doesn't work as other POSIX platforms. Reported and tested by luigi1111. | |||||
2016-03-12 | rpc: do not return bans if they're effectively spent | moneromooo-monero | 1 | -4/+7 | |
The blocked ip list will still hold them till next time a connection attempt is made with that IP, so the effective length of the ban may be negative. | |||||
2016-03-12 | p2p: lock access to the blocked ips map | moneromooo-monero | 2 | -3/+3 | |
2016-03-11 | wallet: use minimum mixin when RPC asks for too low mixin | moneromooo-monero | 1 | -3/+13 | |
After the fork, normal transfer functions called via RPC use the minimum mixin 2 if 0 or 1 is requested. While the incoming transaction may be valid (eg, it has an unmixable and at most a mixable input), it is a simple way to make sure RPC users can't get a seemingly random accept/reject behavior if they don't update their requested mixin. | |||||
2016-03-11 | wallet_rpc_server: make use_fork_rules public | moneromooo-monero | 1 | -1/+2 | |
We will need it in the wallet RPC server | |||||
2016-03-11 | minor tweaks, add readme for crypto_ops_builder | Riccardo Spagni | 3 | -4/+25 | |
2016-03-11 | minor tweaks, add readme for crypto_ops_builder | Riccardo Spagni | 3 | -4/+25 | |
2016-03-11 | Need to link boost::chrono in more places now | Howard Chu | 3 | -0/+3 | |
2016-03-11 | Use boost::thread instead of std::thread | Howard Chu | 20 | -70/+72 | |
and all other associated IPC | |||||
2016-03-09 | More for bdec7cb | Howard Chu | 1 | -14/+14 | |
More uses of db error helper | |||||
2016-03-05 | blockchain_utilities: Update documentation | warptangent | 1 | -4/+54 | |
2016-03-05 | get_payments short ID | luigi1111 | 1 | -8/+17 | |
Add support for short/integrated/encrypted IDs to get_payments RPC | |||||
2016-03-05 | blockchain_export: Support BerkeleyDB | warptangent | 1 | -4/+65 | |
TEST: blockchain_export -h This should show "berkeley" as an available option to --database. With an existing BerkeleyDB database, run: blockchain_export --database berkeley | |||||
2016-03-05 | blockchain_export: Move DB implementation includes | warptangent | 2 | -2/+2 | |
2016-03-03 | BlockchainLMDB: Use DB error helper consistently | warptangent | 1 | -28/+27 | |
2016-03-03 | BlockchainLMDB: Add DB error to exception | warptangent | 1 | -5/+7 | |
2016-03-03 | Blockchain: Omit verbose time stats messages by default | warptangent | 1 | -1/+1 | |
This is already the default for the daemon, but by checking a command line argument and calling a Blockchain member function setter. Initialize the variable to false so it's not dependent on an external command-line argument check. This allows utilities like blockchain_import to have a reasonable default without code changes. | |||||
2016-03-03 | Get rid of lmdb_cur | Howard Chu | 1 | -57/+14 | |
We don't need it now with per-txn cursors. | |||||
2016-03-03 | Fix language | Howard Chu | 1 | -1/+1 | |
2016-03-03 | More for df239428c0f43e2664f2be273996a734ca12c686 | Howard Chu | 1 | -0/+6 | |
Let ARMv7 work again | |||||
2016-03-01 | Make partial revert consistent | warptangent | 1 | -1/+1 | |
If user-defined comparator is used, subdb shouldn't be opened with MDB_INTEGERKEY. TODO: Again, this will be added back with future schema updates. | |||||
2016-02-29 | Revert part of 7db89ed2eee2ce31f039783323d665fe7c24d441 | warptangent | 1 | -2/+14 | |
For now, so existing databases work. TODO: add these back with future schema updates. | |||||
2016-02-29 | BlockchainLMDB: Add height and db error to exception | warptangent | 1 | -1/+1 | |
2016-02-27 | simplewallet: prompt for private keys when generating wallets | moneromooo-monero | 1 | -32/+33 | |
instead of supplying them on the command line. It's more unwieldy, but better protects against information leaks. | |||||
2016-02-25 | ARMv7: fix unaligned accesses | Howard Chu | 1 | -20/+15 | |
And cleanup some key comparators | |||||
2016-02-23 | Wrap some more actions in a larger read txn | Howard Chu | 1 | -11/+25 | |
2016-02-23 | read txn/cursor stuff | Howard Chu | 8 | -166/+339 | |
Could wrap more later. | |||||
2016-02-23 | core: check whether an update is needed straight away | moneromooo-monero | 1 | -1/+1 | |
2016-02-23 | core: print "update needed" hard fork notifications in red | moneromooo-monero | 1 | -2/+2 | |
2016-02-23 | dns_utils: const compatibility with older libunbound | moneromooo-monero | 1 | -22/+16 | |
https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=515 | |||||
2016-02-22 | simplewallet: add a new --restore-from-keys option | moneromooo-monero | 6 | -6/+157 | |
It is similar in use to --restore-from-view-key, but also expects a spend private key. Requested by luigi1112, and useful to restore MyMonero wallets. | |||||
2016-02-22 | move g_test_dbg_lock_sleep from a global to a function level static | moneromooo-monero | 10 | -18/+1 | |
This avoids the need to define that variable in every program which uses epee. | |||||
2016-02-20 | db_bdb: add missing include for std::condition_variable | moneromooo-monero | 1 | -0/+1 | |
2016-02-20 | simplewallet: wording change for single tx confirmation | moneromooo-monero | 1 | -3/+12 | |
2016-02-18 | std::condvar is broken on Win32 with gcc/g++ 4.8 too | Howard Chu | 1 | -2/+2 | |
Use boost... | |||||
2016-02-18 | Use boost::thread instead of std::thread | Howard Chu | 3 | -3/+4 | |
std::thread crashes on (at least) ARMv6 g++ 4.8/4.9 | |||||
2016-02-18 | BlockchainBDB: Check if hard fork subdbs need reset | warptangent | 1 | -1/+50 | |
See f7e337e6254c1c4115a8430964a6f6b54305b3ae for LMDB equivalent. | |||||
2016-02-18 | BlockchainBDB: Support blockchain_import --drop-hard-fork command | warptangent | 1 | -3/+35 | |
See c657e772c4efbfee8ff698883f1532a38117a70a for LMDB equivalent. | |||||
2016-02-18 | blockchain_import: Pass ARCH_WIDTH macro if 32-bit or not. | warptangent | 1 | -4/+4 | |
This also avoids warnings. | |||||
2016-02-17 | core: check whether an update is needed straight away | moneromooo-monero | 1 | -1/+1 | |
2016-02-17 | core: print "update needed" hard fork notifications in red | moneromooo-monero | 1 | -2/+2 | |
2016-02-17 | Fix cffc411c9025e1d28a8b6e32c53c83ba113d9204 | Howard Chu | 1 | -0/+2 | |
Don't include bdb header unless defined(BERKELEY_DB) | |||||
2016-02-17 | blockchain_import: Check bit width for more than just WIN32 | warptangent | 3 | -4/+14 | |
Pass the CMake bit width setting to compile flags for blockchain_import and blockchain_converter. For LMDB on 32-bit, hyc has found that batch size of 100 appears to be a good default. | |||||
2016-02-17 | Use MDB_PREV_MULTIPLE | Howard Chu | 1 | -12/+41 | |
in get_global_output_indices | |||||
2016-02-17 | Fixup after lmdb master resync | Howard Chu | 1 | -6/+6 | |
2016-02-17 | Shutup about VERSION 0 | Howard Chu | 2 | -2/+6 | |
2016-02-17 | Use cursor in get_output_key | Howard Chu | 1 | -1/+2 | |
2016-02-17 | Use MDB_APPEND mode where possible | Howard Chu | 1 | -5/+9 | |
When keys are contiguous and monotonically increasing, this gets denser page utilization (doesn't leave padding in page splits). Can't be used for keys that are inserted in random order (e.g. hashes) In total this only saves around 1.5% of space compared to original DB code. The previous patch accounted for 0.8% savings on its own; the blocks tables just aren't that big. | |||||
2016-02-17 | Use cursors in write txns | Howard Chu | 2 | -22/+100 | |
Saves a bit of seek overhead. LMDB frees them automatically in txn_(commit|abort) so they need no cleanup. | |||||
2016-02-17 | Keep a running blocksize count | Howard Chu | 2 | -0/+15 | |
Used in batch size estimation, avoids rereading already processed blocks during import | |||||
2016-02-17 | Win32 import batchsize tweaks | Howard Chu | 1 | -3/+6 | |
Reduce frequency of resizes: bump minimum increase from 128MB to 512MB Use a bigger safety margin at small batch sizes | |||||
2016-02-15 | wallet: clear missing data on rescan_bc | moneromooo-monero | 1 | -0/+4 | |
2016-02-14 | blockchain_import: Build string for db type list | warptangent | 1 | -2/+15 | |
2016-02-14 | blockchain_import: Add mode argument representing multiple DB flags | warptangent | 1 | -31/+82 | |
These modes match those optionally provided as part of the daemon's --db-type argument. Argument after the # is interpreted as a composite mode if there's only one (no comma separated arguments). Sample usage: blockchain_import --database lmdb#fastest blockchain_import --database berkeley#fastest Multiple specific DB flags are still supported, e.g. blockchain_import --database lmdb#nosync,nordahead blockchain_import --database berkeley#txn_nosync | |||||
2016-02-15 | Keep a running blocksize count | Howard Chu | 2 | -0/+15 | |
Used in batch size estimation, avoids rereading already processed blocks during import | |||||
2016-02-14 | blockchain_import: Support BerkeleyDB | warptangent | 2 | -21/+67 | |
2016-02-14 | blockchain_import: Add database type argument | warptangent | 2 | -4/+4 | |
Default to LMDB. | |||||
2016-02-14 | blockchain_import: Make LMDB-specific names general | warptangent | 2 | -33/+33 | |
Also update terms to better distinguish blockchain management/engine from database type. | |||||
2016-02-14 | Win32 import batchsize tweaks | Howard Chu | 1 | -3/+6 | |
Reduce frequency of resizes: bump minimum increase from 128MB to 512MB Use a bigger safety margin at small batch sizes | |||||
2016-02-13 | BlockchainLMDB: Deal with DB exceptions at block level with particularity | warptangent | 2 | -2/+21 | |
Add another DB error exception type to distinguish failed txn setup from general use of txn. This keeps the error handling flow the same as before the block-level txn setup changes that moved control up a layer to BlockchainDB. | |||||
2016-02-13 | BlockchainLMDB: Add sanity check for inconsistent state | warptangent | 1 | -2/+13 | |
This hasn't been known to occur in block-level txn abort, but throw exception if it does. | |||||
2016-02-13 | BlockchainLMDB: Call destructor on allocated txn if setup fails | warptangent | 1 | -0/+8 | |
2016-02-13 | BlockchainLMDB: Replace remaining txn pointer NULLs with nullptr | warptangent | 1 | -9/+9 | |
For consistency. | |||||
2016-02-12 | cmake: Fix overly broad use of dynamic link settings | warptangent | 1 | -9/+0 | |
Remove LINK_SEARCH_START_STATIC and LINK_SEARCH_END_STATIC. This is more appropriate when the compiler flag -static is used. This had been causing CMake to omit the linker flags necesssary to distinguish static and dynamic library linking. CMake had assumed static linking for the target, causing it to omit explicit static link flags. That is problematic without the -static compile flag being set. With a library located in system directories, like libboost_date_time, the full static path (.a), though found correctly by CMake, was treated by the linker as a dynamic library. This is because target_link_libraries() transforms the full path to -l<libname> if it's in a system directory. Without -static or explicit linker flags, the dynamic library (.so) is linked. Removing the above two properties removes the assumption of static. So -Wl;-Bstatic is inserted where needed. This causes -l<libname> to properly refer to the static library instead of dynamic. | |||||
2016-02-09 | crypto: only check MONERO_USE_SOFTWARE_AES once | moneromooo-monero | 1 | -5/+15 | |
2016-02-09 | crypto: use software AES based on the MONERO_USE_SOFTWARE_AES env var | moneromooo-monero | 1 | -1/+11 | |
Setting to no or 0 also works. If set, any other value enables it. Useful for running with valgrind in cases where it fails at properly implementing AES-NI. | |||||
2016-02-08 | hardfork: add a default fork entry for v1 if none exist | moneromooo-monero | 1 | -0/+5 | |
To avoid special cases | |||||
2016-02-08 | blockchain: initialize m_hardfork to NULL | moneromooo-monero | 1 | -1/+1 | |
It can now be set by some other code, and is thus tested | |||||
2016-02-08 | blockchain_db: pass hard fork object as a simple pointer | moneromooo-monero | 2 | -2/+2 | |
2016-02-08 | core_tests: add tests for hard fork behaviors (MRL-0004) | moneromooo-monero | 6 | -18/+26 | |
We also replace the --fakechain option with an optional structure containing details about configuration for the core/blockchain, for test purposes. This seems more future friendly. | |||||
2016-02-08 | blockchain_utilities: remove unused num_blocks variable | moneromooo-monero | 1 | -2/+0 | |
2016-02-08 | blockchain: reset hardfork object when resetting blockchain | moneromooo-monero | 1 | -0/+1 | |
Not doing so will prevent the new genesis block from being reset if a switch past v1 had occured already. | |||||
2016-02-08 | Blockchain: Update comments on removing block | warptangent | 1 | -0/+5 | |
2016-02-08 | blockchain_import: Get hard fork version from HardFork | warptangent | 1 | -4/+1 | |
Replace temporary assignment that used hardcoded values. | |||||
2016-02-08 | Move HardFork DB update to BlockchainDB::add_block() | warptangent | 3 | -6/+1 | |
Ensures the database is consistent. Also simplifes blockchain_import in that verify mode off has less to work around. | |||||
2016-02-08 | Make HardFork object available to BlockchainDB and derived DB implementations | warptangent | 5 | -0/+18 | |
This will later allow the HardFork object's DB update functions to be called when the DB transaction that persists across block add/remove is open. | |||||
2016-02-08 | BlockchainDB/LMDB: Refactor block-scope DB txn handling for add block | warptangent | 2 | -20/+10 | |
Move block-scope txn start and stop from BlockchainLMDB to BlockchainDB. | |||||
2016-02-08 | BlockchainDB/LMDB/BDB: Extract DB txn functions for block add/remove | warptangent | 5 | -0/+65 | |
2016-02-08 | BlockchainLMDB: Allow two HardFork functions to update DB during block add | warptangent | 1 | -4/+4 | |
Note that this doesn't yet cause them to be called during block add. | |||||
2016-02-08 | BlockchainLMDB: extract txn macros used during block add/remove | warptangent | 1 | -0/+26 | |
2016-02-08 | blockchain_import: Add hard fork data for each block when verify mode is off | warptangent | 1 | -0/+3 | |
2016-02-08 | blockchain_utilities: Have fake_core create HardFork object | warptangent | 1 | -1/+13 | |
The HardFork object is needed for the importer to update the hard fork data when verify mode is off. | |||||
2016-02-08 | Blockchain: Optionally pass in HardFork object | warptangent | 2 | -4/+21 | |
2016-02-08 | fake_core: Check if hard fork subdbs need reset at start | warptangent | 2 | -2/+11 | |
2016-02-08 | blockchain_import: Add --drop-hard-fork command | warptangent | 6 | -0/+32 | |
2016-02-08 | blockchain_import: Add exception to log output | warptangent | 1 | -1/+1 | |
2016-02-05 | simplewallet: check watch-only view key matches standard address | moneromooo-monero | 1 | -0/+11 | |
2016-02-05 | daemon: remove leftover debug log | moneromooo-monero | 1 | -1/+0 | |
2016-02-05 | wallet: check a key image isn't already present when adding one | moneromooo-monero | 1 | -12/+49 | |
If it is, it points to reuse of a tx key, which isn't meant to happen. If it does, a key image collision means that only one of those outputs is spendable, so the wallet selects the larger amount, unless that output was spent already. This causes a discrepancy betewen reported received inputs and payment total. Since tx keys are 256 bits, this should never happen except if done on purpose, or if a sender uses a bad PRNG. | |||||
2016-02-04 | core: move the db lock to the data directory | moneromooo-monero | 1 | -8/+10 | |
Locking just one db turns out to not have been a good idea, since the pool and p2p state fdles have to be used anyway. Also ensure the directory exists before tring to lock. | |||||
2016-02-03 | blockchain: revert handle_get_objects adding block id on tx not found | moneromooo-monero | 1 | -1/+0 | |
This differs from the original CN code, and there seems to be no reason to include the block itself, if it was found | |||||
2016-02-03 | berkeleydb: fix delete/free mismatch | moneromooo-monero | 1 | -2/+2 | |
Despite being C++, the stats object is allocated by the underlying C layer using malloc(3). | |||||
2016-02-02 | minor bugfixes and refactoring | Thomas Winget | 2 | -56/+88 | |
- Blockchain should store if it's running on testnet or not - moved loading compiled-in block hashes to its own function for clarity - on handle_get_objects, should now correctly return false if a block's transactions are missing - replace instances of BOOST_FOREACH with C++11 for loops in Blockchain. | |||||
2016-02-01 | hardfork: allow passing chain height in get(height) for convenience | moneromooo-monero | 1 | -1/+4 | |
2016-01-31 | Revert "Merge pull request #632" | Riccardo Spagni | 1 | -9/+1 | |
This reverts commit 58f890652e86039e98dff2d48d217c9ea9e84eca, reversing changes made to 39d73d2a27730e6a5844c259d81a0ed9d4ee3000. | |||||
2016-01-31 | core: prevent the database from being used by multiple daemons | moneromooo-monero | 2 | -0/+46 | |
A boost lock is used to determine whether more than one process wants to access the database. The boost file_lock doesn't seem to like locking directories, so we use an arbitrary file in it. This allows to still run two daemons if they have different database directories (ie, LMDB/BDB, different data directories). | |||||
2016-01-31 | wallet: forbid dust altogether in output selection where appropriate | moneromooo-monero | 2 | -5/+14 | |
2016-01-31 | blockchain: log number of outputs available for a new tx | moneromooo-monero | 1 | -0/+1 | |
2016-01-30 | wallet: guard against exception in process_blocks | moneromooo-monero | 1 | -0/+2 | |
If an exception occurs, the thread needs to be joined, or it will be deleted while still live, and terminate the process. | |||||
2016-01-30 | wallet: guard against exception in process_blocks | moneromooo-monero | 1 | -1/+9 | |
If an exception occurs, the thread needs to be joined, or it will be deleted while still live, and terminate the process. | |||||
2016-01-30 | daemon: fix a few issues reported by valgrind | moneromooo-monero | 1 | -29/+43 | |
In particular, ensure we check the status of RPC response structures, as some functions will return success, but with a BUSY status, when the daemon is not yet synced, and the response will not filled. | |||||
2016-01-30 | tx_pool: fix serialization of new relayed data | moneromooo-monero | 1 | -2/+0 | |
2016-01-30 | hardfork: fix mixup in indexing variable in get_voting_info | moneromooo-monero | 1 | -1/+1 | |
2016-01-30 | blockchain: remove unused timer | moneromooo-monero | 1 | -1/+0 | |
2016-01-30 | blockchain: fix m_sync_counter uninitialized variable use | moneromooo-monero | 1 | -1/+1 | |
It counts the number of blocks added since last zeroing | |||||
2016-01-30 | new flush_txpool command, and associated RPC call | moneromooo-monero | 12 | -0/+175 | |
It can flush a particular tx, or the whole pool (the RPC command can flush a list of transactions too) | |||||
2016-01-30 | rpc: add missing return on error when getting a tx | moneromooo-monero | 1 | -0/+1 | |
2016-01-30 | simplewallet: show_transfers can now show just failed txes | moneromooo-monero | 1 | -6/+13 | |
2016-01-29 | wallet: detect and handle failed outgoing transfers | moneromooo-monero | 4 | -3/+83 | |
When a transaction is not found in the pool anymore, it is marked as failed, and displayed as such in show_transfers. | |||||
2016-01-29 | tx_pool: serialize missing kept_by_block flag | moneromooo-monero | 1 | -1/+4 | |
2016-01-29 | tx_pool: do not accept txes not in a block if they timed out before | moneromooo-monero | 2 | -2/+14 | |
This is intended to avoid cases where a timed out tx will be re-relayed by another peer for which it has not timed out yet, which would cause the tx to stay in the network's pool for a long time (until all peers time it out before another one tries to relay it again). | |||||
2016-01-29 | tx_pool: fix use of invalidated iterator | moneromooo-monero | 1 | -1/+2 | |
2016-01-29 | Fix V1/V2 use of hard fork related parameters | moneromooo-monero | 13 | -45/+89 | |
Some of it uses hardcoded height, which will need some thinking for next (voted upon) fork. | |||||
2016-01-28 | BlockchainBDB: Continue when tx has no outputs | warptangent | 1 | -3/+5 | |
See 24b66243c2767726ea4b279fcf447c7cd82c13e5 | |||||
2016-01-28 | BlockchainBDB: When removing, find amount output index fast by starting at end | warptangent | 1 | -10/+33 | |
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" db. This is most noticeable for HDDs. See ffcf6bdb95abe2dab37d5f8d9acc134fdc6b4d36 | |||||
2016-01-28 | BlockchainBDB: Remove tx outputs in reverse order | warptangent | 1 | -4/+14 | |
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. See f11def012f38106b0ffeb7010a2f749de1e5b640 | |||||
2016-01-28 | add received time to print_pool and print_pool_sh | Riccardo Spagni | 1 | -1/+3 | |
2016-01-27 | even more typos | Henning Kopp | 1 | -2/+2 | |
2016-01-27 | more typos fixed | Henning Kopp | 2 | -3/+3 | |
2016-01-27 | fixed typo | Henning Kopp | 1 | -1/+1 | |
2016-01-27 | simplewallet: remove leftover command line refresh-type handling | moneromooo-monero | 2 | -5/+0 | |
2016-01-25 | even more typos | Henning Kopp | 1 | -2/+2 | |
2016-01-25 | more typos fixed | Henning Kopp | 2 | -3/+3 | |
2016-01-25 | fixed typo | Henning Kopp | 1 | -1/+1 | |
2016-01-25 | simplewallet: remove leftover command line refresh-type handling | moneromooo-monero | 2 | -5/+0 | |
2016-01-24 | wallet2: update spent comparison now that we have two spent states | moneromooo-monero | 1 | -1/+1 | |
2016-01-21 | OpenBSD support for Monero. | me0wmix | 6 | -10/+14 | |
2016-01-19 | db_lmdb: Continue when tx has no outputs | warptangent | 1 | -4/+6 | |
2016-01-15 | Fix hf when import with verify off | Howard Chu | 6 | -0/+30 | |
Delete the hf tables, so the next open will rescan and regenerate | |||||
2016-01-15 | added checkpoints | Riccardo Spagni | 1 | -0/+8 | |
2016-01-15 | bumped version to 0.9.1 for point release | Riccardo Spagni | 1 | -1/+1 | |
2016-01-15 | hardfork: fix accepting v2 blocks too early | moneromooo-monero | 1 | -2/+1 | |
2016-01-14 | 'max limit of...' is redundant wording, rephrase | binaryFate | 3 | -3/+3 | |
2016-01-14 | Print msg when successfully updating out_peers | binaryFate | 1 | -0/+2 | |
2016-01-11 | Fix arm asm | Howard Chu | 1 | -24/+64 | |
About 10% faster than plain C mul128 on raspi1B |