summaryrefslogtreecommitdiff
path: root/src/cryptonote_core
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6729luigi11112020-07-311-1/+1
|\ | | | | | | f370093 build: prepare v0.16.0.3 release (selsta)
| * build: prepare v0.16.0.3 releaseselsta2020-07-301-1/+1
| |
* | blockchain: guard against exceptions in add_new_block/childrenmoneromooo-monero2020-07-301-0/+11
|/ | | | Reporter requested credit to be given to Decred
* Merge pull request #6672v0.16.0.1luigi11112020-06-231-1/+1
|\ | | | | | | fa199f2 build: prepare v0.16.0.1 release (selsta)
| * build: prepare v0.16.0.1 releaseselsta2020-06-211-1/+1
| |
* | Merge pull request #6671luigi11112020-06-223-6/+14
|\ \ | | | | | | | | | bca61e4 tx_pool: mine stem txes in fake chain mode (moneromooo-monero)
| * | tx_pool: mine stem txes in fake chain modemoneromooo-monero2020-06-203-6/+14
| |/ | | | | | | | | | | This fixes the functional tests, since txes would not be mined after being sent to the daemon (they'd be waiting for the dandelion timeout first)
* | Merge pull request #6651luigi11112020-06-222-1/+17
|\ \ | |/ |/| | | a67c634 blockchain: fix timestamp/difficulty cache getting out of sync (moneromooo-monero)
| * blockchain: fix timestamp/difficulty cache getting out of syncmoneromooo-monero2020-06-132-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cache is discarded when a block is popped, but then gets rebuilt when the difficulty for next block is requested. While this is all properly locked, it does not take into account the delay caused by a database transaction being only committed (and thus its effects made visible to other threads) later on, which means another thread could request difficulty between the pop and the commit, which would end up using stale database view to build the cache, but that cache would not be invalidated again when the transaction gets committed, which would cause the cache to not match the new database data. To fix this, we now keep track of when the cache is invalidated so we can invalidate it again upon database transaction commit to ensure it gets calculated again with fresh data next time it is nedeed.
* | Merge pull request #6648luigi11112020-06-191-1/+1
|\ \ | | | | | | | | | 3b390fb Fix D++ block template check (vtnerd)
| * | Fix D++ block template checkLee Clagett2020-06-121-1/+1
| |/
* / blockchain: fix total_height in getblocks.bin responsemoneromooo-monero2020-06-111-0/+1
|/
* Merge pull request #6569luigi11112020-05-212-36/+0
|\ | | | | | | 99d702e cryptonote_core: remove 'We are most likely forked' message (moneromooo-monero)
| * cryptonote_core: remove "We are most likely forked" messagemoneromooo-monero2020-05-192-36/+0
| | | | | | | | It's time based and we don't have forks every 6 months anymore
* | Merge pull request #6545luigi11112020-05-191-5/+72
|\ \ | | | | | | | | | bb4d95c blockchain: detect and log bad difficulty calculations (moneromooo-monero)
| * | blockchain: detect and log bad difficulty calculationsmoneromooo-monero2020-05-171-5/+72
| |/
* / Revert "simplewallet: noob-friendly help menu"selsta2020-05-161-3/+2
|/ | | | This reverts commit 67b4a19edf7b9d6a407a79eca5c57819863bfd71.
* build: prepare v0.16.0.0 releaseselsta2020-05-091-1/+1
|
* Merge pull request #6510luigi11112020-05-071-2/+0
|\ | | | | | | 70609d7 cryptonote_core: take out the time based upgrade warning (moneromooo-monero)
| * cryptonote_core: take out the time based upgrade warningmoneromooo-monero2020-05-061-2/+0
| | | | | | | | It doesn't really work anymore since we don't have a fork soon
* | Merge pull request #6478luigi11112020-05-061-1/+1
|\ \ | | | | | | | | | ee58362 Used legacy category to match insert_key_images behavior (vtnerd)
| * | Used legacy category to match insert_key_images behaviorLee Clagett2020-04-241-1/+1
| |/
* | Merge pull request #6472luigi11112020-05-061-1/+1
|\ \ | | | | | | | | | 2efbd5f cryptonote: fix reuse of non default tx data when relaying (moneromooo-monero)
| * | cryptonote: fix reuse of non default tx data when relayingmoneromooo-monero2020-04-221-1/+1
| | | | | | | | | | | | | | | | | | An automatic tx variable is initialized properly on the first run through the loop, but not the second. Moving the variable inside the loop ensures the ctor is called again to init it.
* | | Merge pull request #6468luigi11112020-05-062-4/+5
|\ \ \ | | | | | | | | | | | | a813c46 cryptonote_core: skip dns checkpoints on startup if not enforced (xiphon)
| * | | cryptonote_core: skip dns checkpoints on startup if not enforcedxiphon2020-04-202-4/+5
| | | |
* | | | Merge pull request #6436luigi11112020-05-011-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | 688a3e8 Add timelock verification on device (cslashm)
| * | | | Add timelock verification on devicecslashm2020-04-081-1/+1
| | | | |
* | | | | txpool.cpp: rename var to fix for old g++ version (xenial default)Sumo Gr2020-04-291-2/+2
| |_|_|/ |/| | |
* | | | Always reject duplicate key-images from second txidLee Clagett2020-03-302-12/+16
| | | |
* | | | Allow unrestricted rpc calls to get full txpool infoLee Clagett2020-03-302-6/+8
| |_|/ |/| |
* | | Adding Dandelion++ support to public networks:Lee Clagett2020-03-262-32/+88
| | | | | | | | | | | | | | | | | | - New flag in NOTIFY_NEW_TRANSACTION to indicate stem mode - Stem loops detected in tx_pool.cpp - Embargo timeout for a blackhole attack during stem phase
* | | Merge pull request #6403luigi11112020-04-101-16/+7
|\ \ \ | | | | | | | | | | | | 5de2295 Correct key image check in tx_pool (vtnerd)
| * | | Correct key image check in tx_poolLee Clagett2020-03-141-16/+7
| | | |
* | | | Merge pull request #6358luigi11112020-04-101-30/+2
|\ \ \ \ | |_|_|/ |/| | | | | | | 8958b4e blockchain_db: faster fetching of consecutive txes (moneromooo-monero)
| * | | blockchain_db: faster fetching of consecutive txesmoneromooo-monero2020-02-271-30/+2
| | | | | | | | | | | | | | | | Useful for wallet refresh or node sync
* | | | Merge pull request #6347luigi11112020-04-042-10/+20
|\ \ \ \ | | | | | | | | | | | | | | | fcb06f7 cryptonote_core: skip block notify on blockchain switching rollback (xiphon)
| * | | | cryptonote_core: skip block notify on blockchain switching rollbackxiphon2020-02-192-10/+20
| |/ / /
* | | | Merge pull request #6339luigi11112020-04-042-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | c61abf8 remove empty statements (shopglobal)
| * | | | remove empty statementsInterchained2020-02-172-3/+3
| |/ / / | | | | | | | | | | | | Cleaning up a little around the code base.
* | | | Merge pull request #6328luigi11112020-04-041-1/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | 9bde70e core: mention time being off in hash rate changes message (moneromooo-monero)
| * | | core: mention time being off in hash rate changes messagemoneromooo-monero2020-02-101-1/+1
| |/ /
* | | Merge pull request #6336luigi11112020-03-311-1/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | 760ecf2 console_handler: do not let exception past the dor (moneromooo-monero) 09c8111 threadpool: lock mutex in create (moneromooo-monero) e377977 tx_pool: catch theoretical error in get_block_reward (moneromooo-monero)
| * | | tx_pool: catch theoretical error in get_block_rewardmoneromooo-monero2020-02-121-1/+5
| |/ / | | | | | | | | | Coverity 196626
* | | Merge pull request #6214luigi11112020-03-314-0/+53
|\ \ \ | | | | | | | | | | | | 054b4c7 protocol: request txpool contents when synced (moneromooo-monero)
| * | | protocol: request txpool contents when syncedmoneromooo-monero2020-03-224-0/+53
| | |/ | |/| | | | | | | | | | | | | | | | A newly synced Alice sends a (typically quite small) list of txids in the local tpxool to a random peer Bob, who then uses the existing tx relay system to send Alice any tx in his txpool which is not in the list Alice sent
* | | Merge pull request #6289Alexander Blair2020-03-272-9/+13
|\ \ \ | | | | | | | | | | | | ffe7165e wallet: reroll fake outs selection on local tx_sanity_check failure (xiphon)
| * | | wallet: reroll fake outs selection on local tx_sanity_check failurexiphon2020-01-142-9/+13
| | | |
* | | | Merge pull request #6284Alexander Blair2020-03-271-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | 02224e71 Fix check_fee() discrepancy. (UkoeHB)
| * | | | Fix check_fee() discrepancy.UkoeHB2020-01-091-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | M100 = max{300kb, min{100block_median, m_long_term_effective_median_block_weight}} not M100 = max{300kb, m_long_term_effective_median_block_weight} Fix base reward in get_dynamic_base_fee_estimate(). get_dynamic_base_fee_estimate() should match check_fee() Fee is calculated based on block reward, and the reward penalty takes into account 0.5*max_block_weight (both before and after HF_VERSION_EFFECTIVE_SHORT_TERM_MEDIAN_IN_PENALTY). Moved median calculation according to best practice of 'keep definitions close to where they are used'.