Commit Graph

682 Commits (62ae03bfd3ca87828f557ae63e9ca2ca40812d30)

Author SHA1 Message Date
moneromooo-monero 5f67e7f547
blockchain: forbid older BP rct versions from v11
5 years ago
Riccardo Spagni 815c8a48ab
Merge pull request #5174
5 years ago
moneromooo-monero 3dde67d82d
blockchain: add v10 fork heights
5 years ago
moneromooo-monero 356d813799
blockchain: include number of discarded blocks in --reorg-notify
5 years ago
Riccardo Spagni 55305559c1
Merge pull request #5124
5 years ago
moneromooo-monero b8787f4302
ArticMine's new block weight algorithm
5 years ago
Tom Smeding fec359a641 cryptonote: Fix enum check in expand_transaction_2
5 years ago
moneromooo-monero 23813c7160
blockchain: add --reorg-notify
5 years ago
moneromooo-monero f6db59b011
notify: handle arbitrary tags
5 years ago
Riccardo Spagni 0daa00e035
Merge pull request #5052
5 years ago
moneromooo-monero eec792764d
blockchain: fix default genesis block timestamp
5 years ago
moneromooo-monero f931e16c6e
add a bulletproof version, new bulletproof type, and rct config
5 years ago
moneromooo-monero b750fb27b0
Pruning
5 years ago
Riccardo Spagni 54eb3318e2
Merge pull request #5048
5 years ago
Riccardo Spagni dc726f4b3b
Merge pull request #5032
5 years ago
Riccardo Spagni a80978e699
Merge pull request #5015
5 years ago
Riccardo Spagni 1f71bfc8d0
Merge pull request #4993
5 years ago
Riccardo Spagni 9d57ee9ff6
Merge pull request #4984
5 years ago
moneromooo-monero a67b77a9eb
blockchain: don't propagate exception past dtor
5 years ago
moneromooo-monero 5ee6f03742
blockchain: fix wrong hf version when popping multiple blocks
5 years ago
moneromooo-monero 634d359a84
blockchain: use the version passed as parameter, not a new one
5 years ago
luigi1111 c7af379d29
Merge pull request #4940
5 years ago
luigi1111 6d3caaff70
Merge pull request #4928
5 years ago
moneromooo-monero 6f2081f867
cryptonote_core: revert extra_tx_map
5 years ago
moneromooo-monero b8342dd52c
blockchain: fix block rate check for empty blockchains
5 years ago
moneromooo-monero 008647d7eb
blockchain_db: speedup tx output gathering
5 years ago
Riccardo Spagni 83684ea515
Merge pull request #4909
6 years ago
Riccardo Spagni 0fccc78e39
Merge pull request #4903
6 years ago
moneromooo-monero 9e64a71e7d
blockchain: call deinit in dtor
6 years ago
Riccardo Spagni 81418cb281
Merge pull request #4894
6 years ago
moneromooo-monero ec1a62b50d
move int-util.h to epee
6 years ago
Riccardo Spagni e7d30780de
Merge pull request #4869
6 years ago
moneromooo-monero affff949f9
blockchain: fix race between two external mining threads
6 years ago
Jason Wong dc1c12528d add command pop_blocks
6 years ago
moneromooo-monero 756684bb28
blockchain: avoid unnecessary DB lookups when syncing
6 years ago
moneromooo-monero fc98f7a0a1
rpc: speedup get_outs.bin
6 years ago
moneromooo-monero 611639710d
a few minor (but easy) performance tweaks
6 years ago
moneromooo-monero 60f36386e4
Avoid unnecessary temp block and copy ctor
6 years ago
moneromooo-monero 31d80027b5
tests: add unit tests for get_output_distribution
6 years ago
moneromooo-monero 0936dae8a4
blockchain: remove "0 is height" shortcut from get_output_distribution
6 years ago
moneromooo-monero 872c7eb26a
Revert "blockchain: simplify output distribution code"
6 years ago
Riccardo Spagni c37c70f459
Merge pull request #4806
6 years ago
Riccardo Spagni 0cc3fc3756
Merge pull request #4769
6 years ago
moneromooo-monero ac23b10f15
blockchain: fix innocuous difficulty cache inconsistency
6 years ago
moneromooo-monero 3b14d9727b
blockchain: use uint64_t for block height, not size_t
6 years ago
moneromooo-monero 5808530f54
blockchain: remove unused output_scan_worker parameter
6 years ago
moneromooo-monero 1426209a10
blockchain: don't run threads if we have just one function to run
6 years ago
moneromooo-monero 6ecc99ad1f
core: avoid unnecessary tx/blob conversions
6 years ago
moneromooo-monero a5ca7f4fb5
core: fix unmixable special case allowing ring size below 11
6 years ago
Riccardo Spagni 056a58d13f
Merge pull request #4536
6 years ago
Riccardo Spagni 557c17e206
Merge pull request #4408
6 years ago
xiphon fd62b6e79f blocks: use auto-generated .c files instead of 'LD -r -b binary'
6 years ago
Riccardo Spagni 5c418c0522
Merge pull request #4522
6 years ago
moneromooo-monero cf75ee722a
blockchain: move two new verification errors to the verify category
6 years ago
Riccardo Spagni ac5674524a
Revert "Merge pull request #4472"
6 years ago
moneromooo-monero a39c035846
blockchain: add check test options are given for fakechain mode
6 years ago
xiphon 02d3ef7bda blocks: use auto-generated .c files instead of 'LD -r -b binary'
6 years ago
Riccardo Spagni e2da7c7817
Merge pull request #4467
6 years ago
Riccardo Spagni 83d8f03c23
Merge pull request #4333
6 years ago
iDunk5400 fa942ef610
daemon: silence daemon update warnings on testnet
6 years ago
Riccardo Spagni 8bf5a00564
Merge pull request #4423
6 years ago
moneromooo-monero 50981c40ce
blockchain: add stagenet v8 and v9, two weeks before mainnet
6 years ago
Riccardo Spagni d9f666d78c
update checkpoints.dat
6 years ago
Riccardo Spagni d6893aedf6
Merge pull request #4369
6 years ago
moneromooo-monero 341b3931ed
cryptonote_core: warn when the block rate deviates from expectations
6 years ago
Riccardo Spagni 22a6591a70
Merge pull request #4325
6 years ago
moneromooo-monero be001326d1
remove obsolete daemon selection of fake outs and old tx construction
6 years ago
moneromooo-monero b2bb9312a7
blockchain: simplify output distribution code
6 years ago
moneromooo-monero 9137ad2c63
blockchain: add a testnet v9 a day after v8
6 years ago
moneromooo-monero 5ffb2ff9b7
v8: per byte fee, pad bulletproofs, fixed 11 ring size
6 years ago
moneromooo-monero 2a8fcb421b
Bulletproof aggregated verification and tests
6 years ago
moneromooo-monero bacf0a1e2f
bulletproofs: add aggregated verification
6 years ago
moneromooo-monero 9ce9f8caf6
bulletproofs: add multi output bulletproofs to rct
6 years ago
moneromooo-monero 4e1e9a607e
blockchain: add mainnet v8 height targetting 18 october
6 years ago
luigi1111 ec6982f8eb
Merge pull request #4240
6 years ago
luigi1111 4a4ea78ecd
Merge pull request #4204
6 years ago
moneromooo-monero 82d1b74500
core: cache block template where possible
6 years ago
luigi1111 fd3b71129b
Merge pull request #4164
6 years ago
moneromooo-monero b278b83860
core: sync database based on bytes added, not blocks added
6 years ago
moneromooo-monero 83f5587167
blockchain: use uint64_t for height, not size_t
6 years ago
luigi1111 dda05f357a
Merge pull request #4108
6 years ago
moneromooo-monero 8e24533a7f
blockchain: some batch tx scanning speedup
6 years ago
luigi1111 61eea83978
Merge pull request #4081
6 years ago
luigi1111 9474567d76
Merge pull request #4076
6 years ago
luigi1111 21afa71ba6
Merge pull request #3981
6 years ago
luigi1111 d518dae4bf
Merge pull request #3973
6 years ago
luigi1111 025187e6c9
Merge pull request #3854
6 years ago
moneromooo-monero 45e419bd5c
db: store cumulative rct output distribution in the db for speed
6 years ago
moneromooo-monero 8c0523771f
blockchain: cache next block difficulty after adding a block
6 years ago
moneromooo-monero d95bc44c6b
blockchain: fix getting invalid block data on failure
6 years ago
victorsintnicolaas 34cb6b4b70 add --regtest and --fixed-difficulty for regression testing
6 years ago
moneromooo-monero aa0ea0aafc
blockchain: set the m_verifivation_failed flag in a couple more places
6 years ago
moneromooo-monero 84d9e7faec
blockchain: fix build after waiter::wait prototype change
6 years ago
luigi1111 87d7612311
Merge pull request #3986
6 years ago
luigi1111 3ad4ecd4ff
Merge pull request #3982
6 years ago
luigi1111 a844844cda
Merge pull request #3716
6 years ago
moneromooo-monero 2771a18e85
threadpool: allow leaf functions to run concurrently
6 years ago
moneromooo-monero ef2cb63287
blockchain: simplify/speedup handle_get_objects
6 years ago
moneromooo-monero a830db2577
rpc: rework to avoid repeated calculations in get_blocks.bin
6 years ago
moneromooo-monero ed2c81ed95
replace std::list with std::vector on some hot paths
6 years ago
moneromooo-monero 50af3579ee
alt_chain_info can now give more info about a particular alt chain
6 years ago
luigi1111 14372ca95a
Merge pull request #3975
6 years ago
luigi1111 9eb51887b0
Merge pull request #3919
6 years ago
luigi1111 5a221c0e48
Merge pull request #3904
6 years ago
luigi1111 fb2b16f10a
Merge pull request #3732
6 years ago
luigi1111 b3363e8e0a
Merge pull request #3726
6 years ago
luigi1111 6be2516140
Merge pull request #3687
6 years ago
Jean Pierre Dudey b628503bad Remove old logic saved in comments.
6 years ago
stoffu 08b85a8e00
cryptonote_config: add get_config to refactor x = testnet ? config::testnet::X : stagenet ? config::stagenet::X : config::X
6 years ago
moneromooo-monero 2d5921eefa
blockchain: avoid duplicate db query for height
6 years ago
luigi1111 2619d966c6
Merge pull request #3908
6 years ago
luigi1111 8a1f0d7d13
Merge pull request #3940
6 years ago
moneromooo-monero f24cbc5245
blockchain: fix deadlock with the difficulty cache
6 years ago
stoffu ace2edacb6
blockchain: pop forked blocks only when DB is not read-only
6 years ago
moneromooo-monero f0322a083a
blockchain: demote a hash-of-hashes validation warning to debug
6 years ago
Riccardo Spagni 95ccf508cd update checkpoints.dat for point release
6 years ago
moneromooo-monero 4f3a4fb701
blockchain: return error when requesting non existent output
6 years ago
luigi1111 9bc8f76924
Merge pull request #3525
6 years ago
luigi1111 4267a0bb51
Merge pull request #3731
6 years ago
luigi1111 c534fe8d19
Merge pull request #3251
6 years ago
luigi1111 764340d112
Merge pull request #3420
6 years ago
moneromooo-monero b9389e582e
db_lmdb: save pruned and prunable tx data separately
6 years ago
Riccardo Spagni 45975fd8eb update checkpoints
6 years ago
Riccardo Spagni f794d3b3df
Merge pull request #3787
6 years ago
moneromooo-monero 5f8ffca34d
speed up get_output_distribution (and precalc common case)
6 years ago
Thaer Khawaja a66f152f75 Use median timestamp if current time renders a block invalid.
6 years ago
moneromooo-monero b5cb1bc403
blockchain: avoid exception if asked for a block we do not have
6 years ago
moneromooo-monero ce63ab09db
blockchain: invalidate misc caches when popping blocks
6 years ago
stoffu 872cb4efd8
blockchain: pop top if block version disagrees with the ideal fork version
6 years ago
Thaer Khawaja fa0839f2f5 Ensure m_timestamps has the correct number for computing difficulty.
6 years ago
moneromooo-monero 6b13976330
blockchain: log in DEBUG when a block is found, and where
6 years ago
moneromooo-monero ffeeefde60
speedup get_output_histogram for all amounts when min_count > 0
6 years ago
stoffu 66a659bb03
blockchain: add scope guard to waiter for threaded txv1 verification
6 years ago
Riccardo Spagni dac3895ac1
update block hashes for checkpoints.dat
6 years ago
moneromooo-monero a6a54fa883
blockchain: cache difficulty for next block
6 years ago
moneromooo-monero bb20f104ba
Move v7 fork to 1546000 to give more update time
6 years ago
Riccardo Spagni 83651630bc
Merge pull request #3418
6 years ago
moneromooo-monero 20a002667c
blockchain: forbid bulletproof types before v8
6 years ago
Riccardo Spagni 432480fa42
Merge pull request #3414
6 years ago
Riccardo Spagni 0f27fc57ac
Merge pull request #3336
6 years ago
moneromooo-monero 41f727ce42
add RPC to get a histogram of outputs of a given amount
6 years ago
stoffu 524cbdc1e2
blockchain: fix log message about per-kB fee
6 years ago
Dimitris Apostolou 57c0b1ed9f Fix typos in various files
6 years ago
Jean Pierre Dudey e1b526b371 Remove the `Blockchain::get_all_known_block_ids` function.
6 years ago
Riccardo Spagni 9a63fbcf83
Merge pull request #3371
6 years ago
stoffu 978663d461
Stagenet: successive forks up to v7
6 years ago
moneromooo-monero 84decbea48
core: add v7 for 1539500 on mainnet
6 years ago
moneromooo-monero 38657fd0e9
Bump min ring size from 5 to 7 from v7
6 years ago
Riccardo Spagni abcdb7b5c4
Merge pull request #3308
6 years ago
Riccardo Spagni 4f93f74528
Merge pull request #3277
6 years ago
Edward Betts fbcc91c2a4 Correct spelling mistakes.
6 years ago
stoffu af773211cb
Stagenet
6 years ago
moneromooo-monero 6f8779d282
blockchain: fix random sync failures
6 years ago
Riccardo Spagni f4a6bc79d9
Merge pull request #3226
6 years ago
Riccardo Spagni 24d8f9237f
Merge pull request #3248
6 years ago
moneromooo-monero d6a0ae96c6
blockchain: don't try to use hash check array after it's freed
6 years ago
moneromooo-monero 61defd89e3
blockchain: sanity check number of precomputed hash of hash blocks
6 years ago
moneromooo-monero c70f03cacf
blockchain: move bulletproofs to v8
6 years ago
Riccardo Spagni f7dcb730cb
Merge pull request #3144
6 years ago
xmr-eric 18216f19dd Update 2018 copyright
6 years ago
Riccardo Spagni 9872620781
Merge pull request #3014
6 years ago
moneromooo-monero 42f86624a3
rpc: expose recent median block size in getinfo
6 years ago
moneromooo-monero deeffaeb5c
blockchain: remove minor floating point usage
6 years ago
Riccardo Spagni 0a110aefbb
Merge pull request #2971
6 years ago
moneromooo-monero ae8602303a
Fix exceptions not finding txpool txes when relaying
7 years ago
moneromooo-monero 24f584d90d
cryptonote_core: remove unused functions with off by one bugs
7 years ago
moneromooo-monero b1634aa3e8
blockchain: don't leave dangling pointers in this
7 years ago
moneromooo-monero 8e60b81c48
cryptonote_core: fix db leak on error
7 years ago
moneromooo-monero b49ddc766d
check accessing an element past the end of a container
7 years ago
moneromooo-monero d753d716a6
fix a few leaks by throwing objects, not newed pointers to objects
7 years ago
Riccardo Spagni 8da24c2a57
Merge pull request #2878
7 years ago
moneromooo-monero c83d0b3ee2
add bulletproofs from v7 on testnet
7 years ago
moneromooo-monero 7696e84952
core: make --offline also disable DNS lookups
7 years ago
moneromooo-monero 383ff4f689
remove "using namespace std" from headers
7 years ago
Riccardo Spagni fd0740e5e7
Merge pull request #2615
7 years ago
binaryFate 10013e9434 Protect node privacy by proper filtering in restricted-mode RPC answers
7 years ago
moneromooo-monero ccf53a566c
track double spending in the txpool
7 years ago
moneromooo-monero 935f746249
blockchain: do not lock the blockchain lock for simple DB getters
7 years ago
Riccardo Spagni 97c11caf07 Merge pull request #2656
7 years ago
Jaquee 329f149e95 remove reference to cryptonote::null_hash
7 years ago
Riccardo Spagni b293ad9a1a
Merge pull request #2640
7 years ago
Riccardo Spagni d8bc28cc36
Merge pull request #2552
7 years ago
Riccardo Spagni 5ea20d6944
Merge pull request #2469
7 years ago
moneromooo-monero 5db433b3f7
blockchain: avoid exceptions in output verification
7 years ago
Riccardo Spagni 4a20a5b5ea
Merge pull request #2537
7 years ago
moneromooo-monero 69ce33f217
core: fix failure to sync when a tx is already in the pool
7 years ago
moneromooo-monero 4e115a3a4c
core: remove out sorting from v7 rules
7 years ago
moneromooo-monero 269a2a01ef
blockchain: fix off by one getting blocks
7 years ago
moneromooo-monero 5d65a75b69
move checkpoints in a separate library
7 years ago
Riccardo Spagni e5a2cdbfad
Merge pull request #2457
7 years ago
Riccardo Spagni 08ada1fa8b
Merge pull request #2440
7 years ago
moneromooo-monero e457aa51f4
blockchain: fix crash checking pre-validated txids
7 years ago
moneromooo-monero 7adceee634
precomputed block hashes are now in blocks of N (currently 256)
7 years ago
Riccardo Spagni 1a73843cec
Merge pull request #2446
7 years ago
Riccardo Spagni 591e53445b
Merge pull request #2044
7 years ago
moneromooo-monero 6137a0b94d
blockchain: reject unsorted ins and outs from v7
7 years ago
Howard Chu d2d8a41c47
Use actual batch size for resize estimates
7 years ago
Howard Chu 510d0d4753
Use a threadpool
7 years ago
Riccardo Spagni e5238adfb3
update checkpoint hashes
7 years ago
Thomas Winget 77986023c3
json serialization for rpc-relevant monero types
7 years ago
Thomas Winget 5c1e08fe80
Refactor some things into more composable (smaller) functions
7 years ago
Thomas Winget 9ac2ad0744
DRY refactoring
7 years ago
moneromooo-monero ce901fcb31
Fix blockchain_import wedge on exception in cleanup_handle_incoming_blocks
7 years ago
Riccardo Spagni e00238a355
Merge pull request #2347
7 years ago
Riccardo Spagni 36b978f50e
Merge pull request #2314
7 years ago
moneromooo-monero 5807529e69
blockchain: cap memory size of retrieved blocks
7 years ago
Howard Chu 9a859844f4
Toggle SAFE syncmode on and off automatically
7 years ago
moneromooo-monero 5d989b661a
core: add mainnet v6 fork height at 1400000
7 years ago
moneromooo-monero 827afcb7ea
protocol: pass blockchain cumulative difficulty when syncing
7 years ago
Riccardo Spagni 79479a3614
Merge pull request #2250
7 years ago
Riccardo Spagni 12c70fedc0
Merge pull request #2246
7 years ago
Riccardo Spagni 1cf4665d2a
Merge pull request #2237
7 years ago
moneromooo-monero 61770ec2da
change mixin to ring size in user visible places
7 years ago
Riccardo Spagni 62610a3a53
Merge pull request #2225
7 years ago
Riccardo Spagni dc2747439c
Merge pull request #2243
7 years ago
Riccardo Spagni a2dd125b1e
Merge pull request #2222
7 years ago
Riccardo Spagni 8048de268a
Merge pull request #2216
7 years ago
moneromooo-monero 4d87304683
blockchain: add testnet v6 fork height at 971400
7 years ago
moneromooo-monero f4f7eeba80
blockchain: log more info when we reject an orphan
7 years ago
moneromooo-monero d732c73e71
blockchain: remove a few unused variables
7 years ago
moneromooo-monero 5d4ef719b9
core: speed up output index unique set calculation
7 years ago
moneromooo-monero 5d91b26c0f
blockchain: skip checking tx semantics in embedded block hash range
7 years ago
moneromooo-monero 878205f143
core: fix lock ordering bug at init time
7 years ago
moneromooo-monero d8becf2ee1
blockchain: fix cryptonight buffer leak on exit
7 years ago
moneromooo-monero 91aa90fc79
blockchain: ensure all blocks get their longhash precalculated
7 years ago
moneromooo-monero ff4bcaed81
blockchain: pass correct height to get_block_longhash
7 years ago
moneromooo-monero 53af9768ce
blockchain: one off warning when seeing a block with unknown version
7 years ago
moneromooo-monero 235df7f484
blockchain_db: add a txpool tx getter which returns existence
7 years ago
Howard Chu d17c0fc2d0
Don't copy blockchain for coinbase_tx_sum
7 years ago
Riccardo Spagni 545e2b003c
Merge pull request #1982
7 years ago
moneromooo-monero b52abd1370
Move txpool to the database
7 years ago
Riccardo Spagni 865bb03ecf
Merge pull request #1968
7 years ago
assylias bff90264b8
Add expected total reward to RPC "getblocktemplate".
7 years ago
hyc a3d779013d Fix block_longhash_worker thread
7 years ago
Derek Zhang 2bee92dbd0 Fixed typo in v5 hard fork finalized date
7 years ago
moneromooo-monero 5a7983585e
blockchain: offset v5 addition date on testnet
7 years ago
moneromooo-monero 7c03349869
blockchain: lower the relay fee by 2%
7 years ago
moneromooo-monero 3396a9f2af
Add intervening v5 fork for increased min block size
7 years ago
moneromooo-monero cfa2564a40
blockchain: don't try to load an empty block hash set
7 years ago
moneromooo-monero 3153349325
core: quantize per kB fee to 8 decimals
7 years ago
moneromooo-monero 583a7b5c74
core: protect precomputed block hashes with SHA256
7 years ago
Riccardo Spagni c3599fa7b9
update copyright year, fix occasional lack of newline at line end
7 years ago
Riccardo Spagni 49efd3add9
Merge pull request #1727
7 years ago
Riccardo Spagni 59d96eedd8
Merge pull request #1724
7 years ago
Howard Chu dc53e9eef2
Add a few read txns to streamline
7 years ago
moneromooo-monero 0288310e3b
blockchain_db: add "raw" blobdata getters for block and transaction
7 years ago
moneromooo-monero cca95c1c7a
blockchain_db: do not throw on expected partial results getting keys
7 years ago
kenshi84 8027ce0c75 extract some basic code from libcryptonote_core into libcryptonote_basic
7 years ago
Miguel Herranz 36dd3e238f Replace BOOST_REVERSE_FOREACH with ranged for
7 years ago
moneromooo-monero b70ab128fc
rpc: fix orphan_status when getting blocks
7 years ago