summaryrefslogtreecommitdiff
path: root/src/cryptonote_core
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #743Riccardo Spagni2016-03-211-1/+1
|\ | | | | | | a1c3829 also maybe do the block height this time, you know, just so that it actually works. (Riccardo Spagni)
| * also maybe do the block height this time, you know, just so that it actually ↵Riccardo Spagni2016-03-211-1/+1
| | | | | | | | works.
* | Merge pull request #742Riccardo Spagni2016-03-211-1/+1
|\| | | | | | | 23d1538 also update the timestamp for the hard fork (Riccardo Spagni)
| * also update the timestamp for the hard forkRiccardo Spagni2016-03-211-1/+1
| |
* | Merge pull request #741Riccardo Spagni2016-03-211-0/+3
|\| | | | | | | eda51a0 set fork date for September, add hyc's GPG key, remove aabramov's (Riccardo Spagni)
| * set fork date for September, add hyc's GPG key, remove aabramov'sRiccardo Spagni2016-03-211-0/+3
| |
* | Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-215-6/+2
|/ | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* Print stack trace upon exceptionsmoneromooo-monero2016-03-195-2/+6
| | | | Useful for debugging users' logs
* Fix issue #706Howard Chu2016-03-191-0/+1
|
* Use boost::thread instead of std::threadHoward Chu2016-03-111-3/+3
| | | | and all other associated IPC
* Blockchain: Omit verbose time stats messages by defaultwarptangent2016-03-031-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.
* Merge pull request #688Riccardo Spagni2016-02-292-1/+10
|\ | | | | | | | | c2a1fee simplewallet: prompt for private keys when generating wallets (moneromooo-monero) 4513b4c simplewallet: add a new --restore-from-keys option (moneromooo-monero)
| * simplewallet: add a new --restore-from-keys optionmoneromooo-monero2016-02-222-1/+10
| | | | | | | | | | | | | | 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.
| * core: check whether an update is needed straight awaymoneromooo-monero2016-02-171-1/+1
| |
| * core: print "update needed" hard fork notifications in redmoneromooo-monero2016-02-171-2/+2
| |
* | Wrap some more actions in a larger read txnHoward Chu2016-02-231-11/+25
| |
* | read txn/cursor stuffHoward Chu2016-02-232-1/+14
| | | | | | | | Could wrap more later.
* | core: check whether an update is needed straight awaymoneromooo-monero2016-02-231-1/+1
| |
* | core: print "update needed" hard fork notifications in redmoneromooo-monero2016-02-231-2/+2
|/
* hardfork: add a default fork entry for v1 if none existmoneromooo-monero2016-02-081-0/+5
| | | | To avoid special cases
* blockchain: initialize m_hardfork to NULLmoneromooo-monero2016-02-081-1/+1
| | | | It can now be set by some other code, and is thus tested
* core_tests: add tests for hard fork behaviors (MRL-0004)moneromooo-monero2016-02-084-12/+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.
* blockchain: reset hardfork object when resetting blockchainmoneromooo-monero2016-02-081-0/+1
| | | | | Not doing so will prevent the new genesis block from being reset if a switch past v1 had occured already.
* Blockchain: Update comments on removing blockwarptangent2016-02-081-0/+5
|
* Move HardFork DB update to BlockchainDB::add_block()warptangent2016-02-081-3/+0
| | | | | | | Ensures the database is consistent. Also simplifes blockchain_import in that verify mode off has less to work around.
* Make HardFork object available to BlockchainDB and derived DB implementationswarptangent2016-02-081-0/+2
| | | | | | 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.
* Blockchain: Optionally pass in HardFork objectwarptangent2016-02-082-4/+21
|
* Merge pull request #643Riccardo Spagni2016-02-081-8/+10
|\ | | | | | | 05bfb51 core: move the db lock to the data directory (moneromooo-monero)
| * core: move the db lock to the data directorymoneromooo-monero2016-02-041-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.
* | Merge pull request #641Riccardo Spagni2016-02-082-56/+87
|\ \ | | | | | | | | | | | | | | | | | | 7658ac0 blockchain: revert handle_get_objects adding block id on tx not found (moneromooo-monero) 3a0f4d8 berkeleydb: fix delete/free mismatch (moneromooo-monero) 1642be2 minor bugfixes and refactoring (Thomas Winget) 098dcf2 unit_tests: fix mnemonics unit test testing invalid seeds (moneromooo-monero)
| * | blockchain: revert handle_get_objects adding block id on tx not foundmoneromooo-monero2016-02-031-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
| * | minor bugfixes and refactoringThomas Winget2016-02-022-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.
* / hardfork: allow passing chain height in get(height) for conveniencemoneromooo-monero2016-02-011-1/+4
|/
* Merge pull request #635Riccardo Spagni2016-01-312-0/+46
|\ | | | | | | 8b3539b core: prevent the database from being used by multiple daemons (moneromooo-monero)
| * core: prevent the database from being used by multiple daemonsmoneromooo-monero2016-01-312-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).
* | Merge pull request #634Riccardo Spagni2016-01-311-0/+1
|\ \ | | | | | | | | | | | | 7fc6fa3 wallet: forbid dust altogether in output selection where appropriate (moneromooo-monero) 5e1a739 blockchain: log number of outputs available for a new tx (moneromooo-monero)
| * | blockchain: log number of outputs available for a new txmoneromooo-monero2016-01-311-0/+1
| |/
* | Merge pull request #631Riccardo Spagni2016-01-313-5/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | bcac101 daemon: fix a few issues reported by valgrind (moneromooo-monero) a7e8174 tx_pool: fix serialization of new relayed data (moneromooo-monero) 601ad76 hardfork: fix mixup in indexing variable in get_voting_info (moneromooo-monero) 444e22f blockchain: remove unused timer (moneromooo-monero) 7edfdd8 blockchain: fix m_sync_counter uninitialized variable use (moneromooo-monero) d97582c epee: use generate_random_bytes for new random uuids (moneromooo-monero) 17c7c9c epee: remove dodgy random code that nobody uses (moneromooo-monero)
| * | tx_pool: fix serialization of new relayed datamoneromooo-monero2016-01-301-2/+0
| | |
| * | hardfork: fix mixup in indexing variable in get_voting_infomoneromooo-monero2016-01-301-1/+1
| | |
| * | blockchain: remove unused timermoneromooo-monero2016-01-301-1/+0
| | |
| * | blockchain: fix m_sync_counter uninitialized variable usemoneromooo-monero2016-01-301-1/+1
| |/ | | | | | | It counts the number of blocks added since last zeroing
* | new flush_txpool command, and associated RPC callmoneromooo-monero2016-01-304-0/+41
| | | | | | | | | | It can flush a particular tx, or the whole pool (the RPC command can flush a list of transactions too)
* | tx_pool: serialize missing kept_by_block flagmoneromooo-monero2016-01-291-1/+4
|/
* tx_pool: do not accept txes not in a block if they timed out beforemoneromooo-monero2016-01-292-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).
* tx_pool: fix use of invalidated iteratormoneromooo-monero2016-01-291-1/+2
|
* Fix V1/V2 use of hard fork related parametersmoneromooo-monero2016-01-296-32/+65
| | | | | Some of it uses hardcoded height, which will need some thinking for next (voted upon) fork.
* added checkpointsRiccardo Spagni2016-01-151-0/+8
|
* hardfork: fix accepting v2 blocks too earlymoneromooo-monero2016-01-151-2/+1
|
* Merge pull request #587Riccardo Spagni2015-12-311-28/+20
|\ | | | | | | 1e07110 Nicer looking exit when blockchain.bin is found (moneromooo-monero)