aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-18Merge pull request #8733luigi11112-0/+11
3771641 Add a size limit for tx_extra in tx pool (tevador)
2023-03-18Merge pull request #8707luigi11115-73/+279
7159f92 verRctNonSemanticsSimpleCached: fix fragility (Jeffrey Ryan)
2023-03-18Merge pull request #8076luigi11115-25/+301
c4af33e Enforce restricted # pool txs served via RPC + optimize chunked reqs (j-berman) 9752116 wallet2, RPC: Optimize RPC calls for periodic refresh from 3 down to 1 call (rbrunner7)
2023-03-17verRctNonSemanticsSimpleCached: fix fragilityJeffrey Ryan5-73/+279
2023-03-07Enforce restricted # pool txs served via RPC + optimize chunked reqsj-berman5-37/+74
- `/getblocks.bin` respects the `RESTRICTED_TX_COUNT` (=100) when returning pool txs via a restricted RPC daemon. - A restricted RPC daemon includes a max of `RESTRICTED_TX_COUNT` txs in the `added_pool_txs` field, and returns any remaining pool hashes in the `remaining_added_pool_txids` field. The client then requests the remaining txs via `/gettransactions` in chunks. - `/gettransactions` no longer does expensive no-ops for ALL pool txs if the client requests a subset of pool txs. Instead it searches for the txs the client explicitly requests. - Reset `m_pool_info_query_time` when a user: (1) rescans the chain (so the wallet re-requests the whole pool) (2) changes the daemon their wallets points to (a new daemon would have a different view of the pool) - `/getblocks.bin` respects the `req.prune` field when returning pool txs. - Pool extension fields in response to `/getblocks.bin` are optional with default 0'd values.
2023-02-26Add a size limit for tx_extra in tx pooltevador2-0/+11
2023-01-11Merge pull request #8675luigi11111-1/+1
1a568de Cache successful erRctNonSemanticsSimple calls (SChernykh)
2023-01-11Merge pull request #8686luigi11112-2/+0
7a3a593 common: move boost_serialization_helper.h out and cleanup includes (Jeffrey Ryan)
2023-01-09Refactored rx-slow-hash.cSChernykh4-43/+41
- Straight-forward call interface: `void rx_slow_hash(const char *seedhash, const void *data, size_t length, char *result_hash)` - Consensus chain seed hash is now updated by calling `rx_set_main_seedhash` whenever a block is added/removed or a reorg happens - `rx_slow_hash` will compute correct hash no matter if `rx_set_main_seedhash` was called or not (the only difference is performance) - New environment variable `MONERO_RANDOMX_FULL_MEM` to force use the full dataset for PoW verification (faster block verification) - When dataset is used for PoW verification, dataset updates don't stall other threads (verification is done in light mode then) - When mining is running, PoW checks now also use dataset for faster verification
2022-12-30wallet2, RPC: Optimize RPC calls for periodic refresh from 3 down to 1 callrbrunner74-19/+258
2022-12-22common: move boost_serialization_helper.h out and cleanup includesJeffrey Ryan2-2/+0
2022-12-20Cache successful `verRctNonSemanticsSimple` callsSChernykh1-1/+1
2022-10-28Merge pull request #8517luigi11111-1/+1
6f0fb76 blockchain: fix invalid memory read getting fee on empty chain (Crypto City)
2022-09-26Merge pull request #8587luigi11111-4/+0
8e7c7af Move update_checkpoints() to a later stage (SChernykh)
2022-09-22Move update_checkpoints() to a later stageSChernykh1-4/+0
update_checkpoints() makes a few DNS requests and can take up to 20-30 seconds to complete (3-6 seconds on average). It is currently called from core::handle_incoming_block() which holds m_incoming_tx_lock, so it blocks all incoming transactions and blocks processing while update_checkpoints() is running. This PR moves it to until after a new block has been processed and relayed, to avoid full monerod locking.
2022-09-20Second thread pool for IOSChernykh2-3/+3
2022-09-12wallet2: check wallet compatibility with daemon's hard fork versionj-berman1-0/+7
2022-09-09Merge pull request #8519luigi11113-0/+18
2639c4f rpc: skip bootstrap nodes that are lower than last checkpoint (selsta)
2022-09-06rpc: skip bootstrap nodes that are lower than last checkpointselsta3-0/+18
2022-08-22Merge pull request #8427luigi11114-5/+67
1fc60ca Publish submitted txs via zmq (j-berman)
2022-08-22Merge pull request #8415luigi11112-5/+31
628fdcd continue pool pruning even if a tx can't be found (j-berman)
2022-08-22Merge pull request #8381luigi11112-17/+56
f797655 Fixed get_block_template_backlog performance (SChernykh)
2022-08-19blockchain: fix invalid memory read getting fee on empty chainCrypto City1-1/+1
2022-07-26Fixed get_block_template_backlog performanceSChernykh2-17/+56
Before the fix, it processed all transactions in the mempool which could be very slow when mempool grows to several MBs in size. I observed `get_block_template_backlog` taking up to 15 seconds of CPU time under high mempool load. After the fix, only transactions that can potentially be mined in the next block will be processed (a bit more than the current block median weight).
2022-07-21Publish submitted txs via zmqj-berman4-5/+67
2022-07-15Merge pull request #8425luigi11111-1/+1
fe5d1be build: prepare v0.18.0.0 (selsta)
2022-07-13build: prepare v0.18.0.0selsta1-1/+1
2022-07-01continue pool pruning even if a tx can't be foundj-berman2-5/+31
2022-06-30multisig: fix critical vulnerabilities in signinganon3-21/+11
2022-05-12fix backoff delay logic when re-relaying txsj-berman1-4/+4
2022-04-25Merge pull request #8178luigi11111-9/+15
5d388eb Bump ring size to 16 for v15 & remove set default in wallet cli (j-berman)
2022-04-18Bump ring size to 16 for v15 & remove set default in wallet clij-berman1-9/+15
2022-04-18Add view tags to outputs to reduce wallet scanning timej-berman5-32/+62
Implements view tags as proposed by @UkoeHB in MRL issue https://github.com/monero-project/research-lab/issues/73 At tx construction, the sender adds a 1-byte view tag to each output. The view tag is derived from the sender-receiver shared secret. When scanning for outputs, the receiver can check the view tag for a match, in order to reduce scanning time. When the view tag does not match, the wallet avoids the more expensive EC operations when deriving the output public key using the shared secret.
2022-04-18Merge pull request #8207luigi11111-7/+1
4db6aed CMake: Add missing headers via monero_find_all_headers macro (mj-xmr)
2022-04-10Fee changes from ArticMinemoneromooo-monero2-7/+146
https://github.com/ArticMine/Monero-Documents/blob/master/MoneroScaling2021-02.pdf with a change to use 1.7 instead of 2.0 for the max long term increase rate
2022-04-06CMake: Add missing headers via monero_find_all_headers macromj-xmr1-7/+1
2022-04-06Merge pull request #8212luigi11111-3/+0
591c174 Remove footgun doc comment in miner TX validation (Luke Parker)
2022-04-06Merge pull request #8205luigi11111-1/+0
0d6fce8 Compil. time: cryptonote_core minus portable_storage header (mj-xmr)
2022-04-06Merge pull request #8197luigi111113-13/+13
da9aa1f Copyright: Update to 2022 (mj-xmr)
2022-04-05plug bulletproofs plus into consensusmoneromooo-monero2-5/+53
2022-03-10Remove footgun doc comment in miner TX validationLuke Parker1-3/+0
This comment suggests this check is unnecessary, when it is completely necessary as miner TXs can have multiple outputs *which is a statement directly, and incorrectly, contradicted by this comment*. While I don't ever see someone removing this code and getting their edits merged into Monero, someone inexperienced who thinks they're cleaning old code may break their own work, and then there's really just zero benefit to keeping this around.
2022-03-04Compil. time: cryptonote_core minus portable_storage headermj-xmr1-1/+0
2022-03-04Copyright: Update to 2022mj-xmr13-13/+13
2022-03-02Merge pull request #7877luigi11111-1/+0
e08abaa multisig key exchange update and refactor (koe)
2022-02-22multisig key exchange update and refactorkoe1-1/+0
2021-11-26Merge pull request #8070luigi11112-4/+11
a4ebec9 Add python method (Howard Chu) 0221b01 Add calcpow RPC (Howard Chu)
2021-11-20Add calcpow RPCHoward Chu2-4/+11
Calculate PoW hash for a block candidate
2021-11-16cryptonote_core: fix unused lambda warningselsta1-1/+1
2021-11-01tx_pool: full tx revalidation on fork boundariesmoneromooo-monero2-45/+64
avoids mining txes after a fork that are invalid by this fork's rules, but were valid by the previous fork rules at the time they were verified and added to the txpool.
2021-10-11blockchain: fix pedantic assertselsta1-0/+2
2021-09-23Merge pull request #7891luigi11117-9/+174
dfee15e RPC and ZeroMQ APIs to support p2pool (SChernykh)
2021-09-11RPC and ZeroMQ APIs to support p2poolSChernykh7-9/+174
Adds the following: - "get_miner_data" to RPC API - "json-miner-data" to ZeroMQ subscriber contexts Both provide the necessary data to create a custom block template. They are used by p2pool. Data provided: - major fork version - current height - previous block id - RandomX seed hash - network difficulty - median block weight - coins mined by the network so far - mineable mempool transactions
2021-09-09Merge pull request #7616luigi11112-3/+6
4ced092 daemon: allow proxy configuration (anon, selsta, tobtoht)
2021-08-20daemon: allow proxy configurationanon2-3/+6
Co-authored-by: selsta <selsta@sent.at> Co-authored-by: tobtoht <thotbot@protonmail.com>
2021-07-10Merge pull request #7754luigi11111-1/+1
8ff21e1 doc: update IRC references to Libera (fdov)
2021-06-24Merge pull request #7612luigi11114-12/+14
254a133 core: speed up print_coinbase_tx_sum (moneromooo-monero)
2021-06-20doc: update IRC references to Liberafdov1-1/+1
2021-06-10Merge pull request #7684luigi11111-1/+4
ed6f053 blockchain: speed up repeated pops (mostly in tests) (moneromooo-monero)
2021-06-01Merge pull request #7709luigi11111-1/+1
a1c4307 Warnings: unused variable in core/blockchain.cpp (mj-xmr)
2021-05-08Warnings: unused variable in core/blockchain.cppmj-xmr1-1/+1
2021-05-02Warnings: unused var at cryptonote_tx_utils.cppmj-xmr1-1/+3
2021-04-26blockchain: speed up repeated pops (mostly in tests)moneromooo-monero1-1/+4
The heavy rolling median reset only has to be performed after all blocks are popped
2021-04-16Merge pull request #7136luigi11111-0/+1
23aae55 Remove payload copy in all outgoing p2p messages (Lee Clagett)
2021-04-16Merge pull request #7002luigi11111-0/+2
673c6d2 Reduce compilation time of epee/portable_storage_template_helper.h (mj-xmr)
2021-03-28Reduce compilation time of epee/portable_storage_template_helper.hmj-xmr1-0/+2
2021-03-18core: speed up print_coinbase_tx_summoneromooo-monero4-12/+14
It only needs to parse the tx headers, not the full tx data
2021-03-05fix serialization being different on macmoneromooo-monero1-2/+2
On Mac, size_t is a distinct type from uint64_t, and some types (in wallet cache as well as cold/hot wallet transfer data) use pairs/containers with size_t as fields. Mac would save those as full size, while other platforms would save them as varints. Might apply to other platforms where the types are distinct. There's a nasty hack for backward compatibility, which can go after a couple forks.
2021-02-18Merge pull request #7355luigi11112-2/+2
bd12984 Remove copies from foreach loops (thanks to Clang) (Lee Clagett) 1572df9 Removing unused namespace alias (Lee Clagett)
2021-02-09Remove unused variables in monero codebaseKevin Barbour2-3/+0
There are quite a few variables in the code that are no longer (or perhaps never were) in use. These were discovered by enabling compiler warnings for unused variables and cleaning them up. In most cases where the unused variables were the result of a function call the call was left but the variable assignment removed, unless it was obvious that it was a simple getter with no side effects.
2021-01-28Remove copies from foreach loops (thanks to Clang)Lee Clagett2-2/+2
2021-01-19Remove payload copy in all outgoing p2p messagesLee Clagett1-0/+1
2021-04-16Revert "Merge pull request #7136"luigi11111-1/+0
This reverts commit 63c7ca07fba2f063c760f786a986fb3e02fb040e, reversing changes made to 2218e23e84a89e9a1e4c0be5d50f891ab836754f.
2021-01-16Remove payload copy in all outgoing p2p messagesLee Clagett1-0/+1
2021-01-02blockchain: lock access to m_blocks_hash_of_hashesmoneromooo-monero1-0/+2
it is accessed both when adding and when prevalidating a set of new hashes from a peer
2020-12-31protocol: more sanity checks in new chain block hashesmoneromooo-monero4-6/+28
2020-12-29rpc: limit the number of txes for get_blocks.binmoneromooo-monero4-8/+9
2020-12-01Merge pull request #7025Alexander Blair1-2/+2
b10878f10 Change Dandelion++ fluff probability to 20%, and embargo timeout to 39s (Lee Clagett)
2020-11-29Merge pull request #7021luigi11114-9/+46
d73cb95 Fix timeout checks for forwarded and Dandelion++ stem txes (Lee Clagett)
2020-11-29Merge pull request #7018luigi11113-3/+16
a9cd5d9 cryptonote_core: dandelion - use local height or median height if syncing (xiphon)
2020-11-29Merge pull request #6924luigi11111-8/+0
874487f blockchain: remove some dead code (moneromooo-monero)
2020-11-29Merge pull request #6922luigi11112-14/+5
a25bc71 Make Blockchain::get_fee_quantization_mask() compile time (SChernykh)
2020-11-25cryptonote_core: dandelion - use local height or median height if syncingxiphon3-3/+16
2020-11-17Change Dandelion++ fluff probability to 20%, and embargo timeout to 39sLee Clagett1-2/+2
A 20% fluff probability increases the precision of a spy connected to every node by 10% on average, compared to a network using 0% fluff probability. The current value (10% fluff) should increase precision by ~5% compared to baseline. This decreases the expected stem length from 10 to 5. The embargo timeout was therefore lowered to 39s; the fifth node in a stem is expected to have a 90% chance of being the first to timeout, which is the same probability we currently have with an expected stem length of 10 nodes.
2020-11-15Fix timeout checks for forwarded and Dandelion++ stem txesLee Clagett4-9/+46
2020-10-20blockchain: remove some dead codemoneromooo-monero1-8/+0
This is already done
2020-10-20Make Blockchain::get_fee_quantization_mask() compile timeSChernykh2-14/+5
This also removes potential thread safety bug in that function.
2020-10-19cryptonote_core: Fix missing override warningsNathan Dorfman1-2/+2
2020-10-18Merge pull request #6881Alexander Blair1-1/+4
11b20229c tx_pool: silence spammy harmless warning till we fix the bug (moneromooo-monero)
2020-10-18Merge pull request #6875Alexander Blair2-1/+2
a12a8174e Dandelion++: skip desynced peers in stem phase (xiphon)
2020-10-18blockchain: fix sync at v14 boundarymoneromooo-monero1-3/+15
Miners with MLSAG txes which they'd already verified included a couple in that block, but the consensus rules had changed in the meantime, so that block is technically invalid and any node which did not already have those two txes in their txpool could not sync. Grandfather them in, since it has no effect in practice.
2020-10-12tx_pool: silence spammy harmless warning till we fix the bugmoneromooo-monero1-1/+4
2020-10-12Dandelion++: skip desynced peers in stem phasexiphon2-1/+2
2020-09-15blockchain: deterministic UNIX time unlock checksmoneromooo-monero2-28/+64
Based on a patch by TheCharlatan <seb.kung@gmail.com>
2020-09-14build: prepare v0.17selsta1-1/+1
2020-09-07blockchain: fix pow skipping for old blocks without precalc hashmoneromooo-monero1-1/+1
2020-09-06Merge pull request #6111Riccardo Spagni6-26/+101
d20ff4f64 functional_tests: add a large (many randomx epochs) p2p reorg test (moneromooo-monero) 6a0b3b1f8 functional_tests: add randomx tests (moneromooo-monero) 9d42649d5 core: fix mining from a block that's not the current top (moneromooo-monero)
2020-09-03Merge pull request #6757luigi11112-10/+14
6a37da8 threadpool: guard against exceptions in jobs, and armour plating (moneromooo-monero)
2020-09-01threadpool: guard against exceptions in jobs, and armour platingmoneromooo-monero2-10/+14
Those would, if uncaught, exit run and leave the waiter to wait indefinitely for the number of active jobs to reach 0
2020-08-27functional_tests: add a large (many randomx epochs) p2p reorg testmoneromooo-monero1-4/+35
2020-08-27core: fix mining from a block that's not the current topmoneromooo-monero6-22/+66
2020-08-27Integrate CLSAGs into moneromoneromooo-monero2-4/+55
They are allowed from v12, and MLSAGs are rejected from v13.
2020-08-27Merge pull request #6767Alexander Blair1-0/+3
07442a605 Fix build with Boost 1.74 (moneromooo-monero)
2020-08-27Merge pull request #6760Alexander Blair1-2/+2
844fb4e94 enforce claiming maximum coinbase amount (moneromooo-monero)
2020-08-21enforce claiming maximum coinbase amountmoneromooo-monero1-2/+2
Claiming a slightly lesser amount does not yield the size gains that were seen pre rct, so this closes a fingerprinting vector
2020-08-17Avoid some temporary strings when reading off the databasemoneromooo-monero3-17/+17
2020-08-16Merge pull request #6727Alexander Blair1-0/+11
13eee1d6a rpc: reject wrong sized txid (moneromooo-monero) 92e6b7df2 easylogging++: fix crash with reentrant logging (moneromooo-monero) 6dd95d530 epee: guard against exceptions in RPC handlers (moneromooo-monero) 90016ad74 blockchain: guard against exceptions in add_new_block/children (moneromooo-monero)
2020-08-16Merge pull request #6661Alexander Blair1-1/+1
267ce5b71 avoid a couple needless copies (moneromooo-monero)
2020-08-16Merge pull request #6614Alexander Blair1-3/+2
fb31167b1 Wallet, daemon: From 'help_advanced' back to 'help', and new 'apropos' command (rbrunner7)
2020-08-16Fix build with Boost 1.74moneromooo-monero1-0/+3
Thanks iDunk for testing
2020-08-09Merge pull request #6354Alexander Blair2-10/+54
67ade8005 Add randomized delay when forwarding txes from i2p/tor -> ipv4/6 (Lee Clagett)
2020-07-30blockchain: guard against exceptions in add_new_block/childrenmoneromooo-monero1-0/+11
Reporter requested credit to be given to Decred
2020-07-24Wallet, daemon: From 'help_advanced' back to 'help', and new 'apropos' commandrbrunner71-3/+2
2020-07-19Merge pull request #6534Alexander Blair4-0/+146
7bd66b01b daemon: guard against rare 'difficulty drift' bug with checkpoints and recalculation (stoffu)
2020-07-19Merge pull request #6526Alexander Blair1-0/+1
5d882f4f1 blockchain: fix theoretical race getting bulk timestamps (moneromooo-monero)
2020-07-19Merge pull request #6512Alexander Blair13-13/+13
5ef0607da Update copyright year to 2020 (SomaticFanatic)
2020-07-09tx_pool: mine stem txes in fake chain modemoneromooo-monero3-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)
2020-07-08blockchain: fix timestamp/difficulty cache getting out of syncmoneromooo-monero2-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.
2020-07-08Merge pull request #6647luigi11111-1/+1
4d8d121 Fix D++ block template check (vtnerd)
2020-07-08Merge pull request #6629luigi11111-0/+1
795e186 blockchain: fix total_height in getblocks.bin response (moneromooo-monero)
2020-07-08Merge pull request #6568luigi11112-36/+0
f037121 cryptonote_core: remove 'We are most likely forked' message (moneromooo-monero)
2020-07-08Merge pull request #6544luigi11111-5/+72
5741b4d blockchain: detect and log bad difficulty calculations (moneromooo-monero)
2020-06-14avoid a couple needless copiesmoneromooo-monero1-1/+1
2020-06-12Fix D++ block template checkLee Clagett1-1/+1
2020-06-09daemon: guard against rare 'difficulty drift' bug with checkpoints and ↵stoffu4-0/+146
recalculation On startup, it checks against the difficulty checkpoints, and if any mismatch is found, recalculates all the blocks with wrong difficulties. Additionally, once a week it recalculates difficulties of blocks after the last difficulty checkpoint.
2020-06-05blockchain: fix total_height in getblocks.bin responsemoneromooo-monero1-0/+1
2020-05-19cryptonote_core: remove "We are most likely forked" messagemoneromooo-monero2-36/+0
It's time based and we don't have forks every 6 months anymore
2020-05-17blockchain: detect and log bad difficulty calculationsmoneromooo-monero1-5/+72
2020-05-15Add randomized delay when forwarding txes from i2p/tor -> ipv4/6Lee Clagett2-10/+54
2020-05-13build: prepare v0.16.0.0 releaseselsta1-1/+1
2020-05-13blockchain: fix theoretical race getting bulk timestampsmoneromooo-monero1-0/+1
2020-05-07Merge pull request #6510luigi11111-2/+0
70609d7 cryptonote_core: take out the time based upgrade warning (moneromooo-monero)
2020-05-06Update copyright year to 2020SomaticFanatic13-13/+13
Update copyright year to 2020
2020-05-06cryptonote_core: take out the time based upgrade warningmoneromooo-monero1-2/+0
It doesn't really work anymore since we don't have a fork soon
2020-05-06Merge pull request #6478luigi11111-1/+1
ee58362 Used legacy category to match insert_key_images behavior (vtnerd)
2020-05-06Merge pull request #6472luigi11111-1/+1
2efbd5f cryptonote: fix reuse of non default tx data when relaying (moneromooo-monero)
2020-05-06Merge pull request #6468luigi11112-4/+5
a813c46 cryptonote_core: skip dns checkpoints on startup if not enforced (xiphon)
2020-05-04Adding ZMQ/Pub support for txpool_add and chain_main eventsLee Clagett4-16/+77
2020-05-01Merge pull request #6436luigi11111-1/+1
688a3e8 Add timelock verification on device (cslashm)
2020-04-29txpool.cpp: rename var to fix for old g++ version (xenial default)Sumo Gr1-2/+2
2020-04-24Used legacy category to match insert_key_images behaviorLee Clagett1-1/+1
2020-04-22cryptonote: fix reuse of non default tx data when relayingmoneromooo-monero1-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.
2020-04-20cryptonote_core: skip dns checkpoints on startup if not enforcedxiphon2-4/+5
2020-04-08Add timelock verification on devicecslashm1-1/+1
2020-04-04Merge pull request #6347luigi11112-10/+20
fcb06f7 cryptonote_core: skip block notify on blockchain switching rollback (xiphon)
2020-04-04Merge pull request #6339luigi11112-3/+3
c61abf8 remove empty statements (shopglobal)
2020-04-04Merge pull request #6328luigi11111-1/+1
9bde70e core: mention time being off in hash rate changes message (moneromooo-monero)
2020-03-31Merge pull request #6336luigi11111-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)
2020-03-31Merge pull request #6214luigi11114-0/+53
054b4c7 protocol: request txpool contents when synced (moneromooo-monero)
2020-03-30Always reject duplicate key-images from second txidLee Clagett2-12/+16
2020-03-30Allow unrestricted rpc calls to get full txpool infoLee Clagett2-6/+8
2020-03-27Merge pull request #6289Alexander Blair2-9/+13
ffe7165e wallet: reroll fake outs selection on local tx_sanity_check failure (xiphon)
2020-03-27Merge pull request #6284Alexander Blair1-2/+2
02224e71 Fix check_fee() discrepancy. (UkoeHB)
2020-03-27Merge pull request #6275Alexander Blair2-21/+0
aa93e388 p2p: remove old debug commands (Aaron Hook)
2020-03-26Adding Dandelion++ support to public networks:Lee Clagett2-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
2020-04-10Merge pull request #6403luigi11111-16/+7
5de2295 Correct key image check in tx_pool (vtnerd)
2020-04-10Merge pull request #6358luigi11111-30/+2
8958b4e blockchain_db: faster fetching of consecutive txes (moneromooo-monero)
2020-03-22protocol: request txpool contents when syncedmoneromooo-monero4-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
2020-03-20p2p: remove old debug commandsAaron Hook2-21/+0
2020-03-14Correct key image check in tx_poolLee Clagett1-16/+7
2020-03-12core: move the LockedTXN class out of txpool so it may be reusedmoneromooo-monero1-30/+12
for example, in the RPC server
2020-02-28Merge pull request #6225Alexander Blair2-5/+5
987c3139 print_coinbase_tx_sum now supports 128 bits sums (moneromooo-monero)
2020-02-28Merge pull request #6211Alexander Blair4-0/+21
5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
2020-02-27blockchain_db: faster fetching of consecutive txesmoneromooo-monero1-30/+2
Useful for wallet refresh or node sync
2020-02-19cryptonote_core: skip block notify on blockchain switching rollbackxiphon2-10/+20
2020-02-17remove empty statementsInterchained2-3/+3
Cleaning up a little around the code base.
2020-02-12tx_pool: catch theoretical error in get_block_rewardmoneromooo-monero1-1/+5
Coverity 196626
2020-02-10core: mention time being off in hash rate changes messagemoneromooo-monero1-1/+1
2020-02-06Merge pull request #6127Alexander Blair1-2/+3
67b4a19e simplewallet: noob-friendly help menu (wowario)
2020-02-06Merge pull request #6078Alexander Blair1-1/+8
b9fc2066 Add a --keep-fakechain option to keep fakechain databases (JamesWrigley)
2020-02-06Merge pull request #6050Alexander Blair1-2/+3
65301c40 core: point out when we hit the block rate visibility limit (moneromooo-monero)
2020-02-04Merge pull request #6233luigi11111-1/+1
8a27645 blockchain: fix flushing txes from the txpool (moneromooo-monero)
2020-01-25Merge pull request #6140Alexander Blair1-3/+10
08635a08 blockchain: speedup fetching pruned contiguous tx blobs (moneromooo-monero)
2020-01-24Merge pull request #6146Alexander Blair2-18/+2
70c9cd3c Change to Tx diffusion (Dandelion++ fluff) instead of flooding (Lee Clagett)
2020-01-16Merge pull request #6124Alexander Blair1-1/+6
21d4c216 blockchain: error out if the builtin hashes data size is wrong (moneromooo-monero)
2020-01-14wallet: reroll fake outs selection on local tx_sanity_check failurexiphon2-9/+13
2020-01-09Fix check_fee() discrepancy.UkoeHB1-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'.
2019-12-14blockchain: fix flushing txes from the txpoolmoneromooo-monero1-1/+1
2019-12-12Merge pull request #6055luigi11111-1/+1
886ed25 blockchain: fix comment wrongly refering to SHA-3 rather than Keccak (moneromooo-monero)
2019-12-12Merge pull request #6052luigi11111-2/+2
c96b7ee tx_pool: fix error message assuming incorrectly (moneromooo-monero)
2019-12-12print_coinbase_tx_sum now supports 128 bits sumsmoneromooo-monero2-5/+5
The tail emission will bring the total above 64 bits
2019-12-02rpc: add bad-blocks to flush_cache RPCmoneromooo-monero4-0/+21
Flushes m_invalid_blocks in Blockchain.
2019-11-15blockchain: speedup fetching pruned contiguous tx blobsmoneromooo-monero1-3/+10
About twice as fast, very roughly
2019-11-13simplewallet: noob-friendly help menuwowario1-2/+3
2019-11-12blockchain: error out if the builtin hashes data size is wrongmoneromooo-monero1-1/+6
2019-11-04Change to Tx diffusion (Dandelion++ fluff) instead of floodingLee Clagett2-18/+2
2019-11-02Adding support for hidden (anonymity) txpoolLee Clagett7-205/+334
2019-11-02Merge pull request #6079Riccardo Spagni1-1/+1
e4d1674e8 0.15.0.0 release engineering (Riccardo Spagni)
2019-11-020.15.0.0 release engineeringRiccardo Spagni1-1/+1
2019-11-01Add a --keep-fakechain option to keep fakechain databasesJamesWrigley1-1/+8
This is handy when doing tests that generate a lot of transactions, since that takes time it's preferable to re-use the database for future runs.
2019-10-31cryptonote: untangle dependency from miner to blockchainmoneromooo-monero2-2/+6
It causes link errors at least on mac
2019-10-29blockchain: fix comment wrongly refering to SHA-3 rather than Keccakmoneromooo-monero1-1/+1
2019-10-29tx_pool: fix error message assuming incorrectlymoneromooo-monero1-2/+2
2019-10-28core: point out when we hit the block rate visibility limitmoneromooo-monero1-2/+3
2019-10-27blockchain: fix unwanted error when probing the pool for a txmoneromooo-monero1-2/+11
2019-10-25Merge pull request #5958luigi11111-15/+19
d25acd7 Add hmac over encrypted value during transaction (clashm) 34f28a7 Add display address (clashm) 235b94e Revert PR #5835 (export view key) (clashm) 32febd2 Fix debug feature (clashm)
2019-10-25Merge pull request #6028luigi11111-1/+1
174a6ac tx_pool: fix divide by 0 in log (moneromooo-monero)
2019-10-25rpc: add a flush_cache RPCmoneromooo-monero2-0/+13
This allows flushing internal caches (for now, the bad tx cache, which will allow debugging a stuck monerod after it has failed to verify a transaction in a block, since it would otherwise not try again, making subsequent log changes pointless)
2019-10-25tx_pool: fix divide by 0 in logmoneromooo-monero1-1/+1
Coverity 205394
2019-10-22Merge pull request #5973luigi11111-5/+1
abd3763 cryptonote: fill in tx weight when syncing from pruned blocks (moneromooo-monero)
2019-10-22Merge pull request #5981luigi11112-2/+3
88c9d90 protocol: initialize block_weight in block_complete_entry ctor (moneromooo-monero) fe443bb cryptonote: don't leave block_weight uninitialized (moneromooo-monero) 1ba9baf tx_pool: do not divide by 0 (moneromooo-monero)