Commit Graph

371 Commits (bb49011991e433d2345d01b0d92ead6b81b379e4)

Author SHA1 Message Date
moneromooo-monero d93746b6d3
rct: rework the verification preparation process
8 years ago
moneromooo-monero 3ab2ab3e76
rct: change the simple flag to a type
8 years ago
Shen Noether c5be4b0bea
rct: avoid the need for the last II element
8 years ago
moneromooo-monero 0263dd2d23
core: add some locking around pool use
8 years ago
moneromooo-monero 37bdf6ebe3
change fork settings to allow pre-rct txes for one more fork cycle
8 years ago
moneromooo-monero cf33e1a52a
rct: do not serialize public keys in outPk
8 years ago
moneromooo-monero a4d4d6194b
integrate simple rct api
8 years ago
moneromooo-monero c2ec6d35b9
mixable transactions must be rct for v3
8 years ago
moneromooo-monero 59a66e209a
move the rct commitments to the output_amounts database
8 years ago
moneromooo-monero 20e50ec7f7
ringct: do not serialize what can be reconstructed
8 years ago
moneromooo-monero ada527558f
Use the supplied hard fork version in validate_miner_transaction
8 years ago
moneromooo-monero dc4aad7eb5
add rct to the protocol
8 years ago
moneromooo-monero 4258dab4d6
core: new /getrandom_rctouts.bin binary RPC call
8 years ago
moneromooo-monero 11dc091464
Fake outs set is now decided by the wallet
8 years ago
moneromooo-monero 1593553e03
new unlocked parameter to output_histogram
8 years ago
Riccardo Spagni 30dce45643 Merge branch 'performance' of https://github.com/LMDB/bitmonero
8 years ago
moneromooo-monero 513a658c87
add a --max-concurrency flag
8 years ago
moneromooo-monero 70c86561af
blockchain: add missing overflow check for already generated coins
8 years ago
moneromooo-monero d6fd6be5de
blockchain: update cumulative block limit when popping a block
8 years ago
Riccardo Spagni 8f78f1407e
Merge pull request #784
8 years ago
moneromooo-monero 4cfb4dff3e
blockchain: remove the tx validation result cache
8 years ago
Howard Chu d7ea7d9a23 Merge branch 'performance' into master
8 years ago
warptangent 8d12a8df2c Schema update: tx_indices - improve further with less indirection
8 years ago
moneromooo-monero 087373eccf
Fix potential race with parallel processing of txes/signatures/blocks
8 years ago
Riccardo Spagni a38ad63f8f
Merge pull request #767
8 years ago
Riccardo Spagni 2b57845766
Merge pull request #765
8 years ago
moneromooo-monero 24b3e9007a
Convey tx verification failure reasons to the RPC client
8 years ago
moneromooo-monero 600a3cf0c0
New RPC and daemon command to get output histogram
8 years ago
moneromooo-monero b8527668ff
blockchain: for v3, require miner tx to have well behaved outs
8 years ago
Riccardo Spagni 0d30b65785 Merge pull request #749
8 years ago
Riccardo Spagni 01e0a69c17 Revert "Merge pull request #749"
8 years ago
Riccardo Spagni 7fa63a82a1
Merge pull request #749
8 years ago
Thomas Winget 540a76c5c2
Move checkpoint functions into checkpoints class
8 years ago
Thomas Winget 89c24ac2be
Remove unnecessary or defunct code
8 years ago
Thomas Winget 3a484497bc
Updated documentation for blockchain.*
8 years ago
moneromooo-monero cc4b19c32e
blockchain: fix partial block reward detection
8 years ago
Riccardo Spagni a1c38299b3
also maybe do the block height this time, you know, just so that it actually works.
8 years ago
Riccardo Spagni 23d1538fe7
also update the timestamp for the hard fork
8 years ago
Riccardo Spagni eda51a0dc3
set fork date for September, add hyc's GPG key, remove aabramov's
8 years ago
Howard Chu 9b3e43c327 Fix issue #706
8 years ago
Howard Chu b937a2c915 Use boost::thread instead of std::thread
8 years ago
warptangent a49c355cae
Blockchain: Omit verbose time stats messages by default
8 years ago
Howard Chu 5a07cefe7b Wrap some more actions in a larger read txn
8 years ago
Howard Chu 8cc7a36f0b read txn/cursor stuff
8 years ago
moneromooo-monero c7f82ec769
blockchain: initialize m_hardfork to NULL
8 years ago
moneromooo-monero a333c42cde
core_tests: add tests for hard fork behaviors (MRL-0004)
8 years ago
moneromooo-monero 6c8e5c3459
blockchain: reset hardfork object when resetting blockchain
8 years ago
warptangent e298b14a55
Blockchain: Update comments on removing block
8 years ago
warptangent e02577f594
Move HardFork DB update to BlockchainDB::add_block()
8 years ago
warptangent 3800875406
Make HardFork object available to BlockchainDB and derived DB implementations
8 years ago
warptangent 8f863e742d
Blockchain: Optionally pass in HardFork object
8 years ago
moneromooo-monero 7658ac0f45
blockchain: revert handle_get_objects adding block id on tx not found
8 years ago
Thomas Winget 1642be242d minor bugfixes and refactoring
8 years ago
Riccardo Spagni 569316aea3
Merge pull request #634
8 years ago
Riccardo Spagni 39d73d2a27
Merge pull request #631
8 years ago
moneromooo-monero 5e1a7391e8
blockchain: log number of outputs available for a new tx
8 years ago
moneromooo-monero 444e22f01a
blockchain: remove unused timer
8 years ago
moneromooo-monero 7edfdd8f24
blockchain: fix m_sync_counter uninitialized variable use
8 years ago
moneromooo-monero bf6d1474c0
new flush_txpool command, and associated RPC call
8 years ago
moneromooo-monero 3b1d7e03fc
Fix V1/V2 use of hard fork related parameters
8 years ago
Riccardo Spagni de03926850
updated copyright year
9 years ago
moneromooo-monero 576effe11a
blockchain: kill ioservice on scope end, rather than manually
9 years ago
Riccardo Spagni fd36eea6dd
Merge pull request #572
9 years ago
moneromooo-monero 4a5a5ff157
blockchain: always stop the ioservice before returning
9 years ago
moneromooo-monero b0541a56eb
blockchain: remove obsolete containers
9 years ago
moneromooo-monero 18a5211173
blockchain: Fix height in call to on_blockchain_dec
9 years ago
moneromooo-monero f33a88cfc1
blockchain: fix a few block addition bugs
9 years ago
moneromooo-monero a9ff11c816
blockchain: fix an off by one error in unlocked time check
9 years ago
moneromooo-monero f294be35bc
blockchain: reinstate double spending checks in check_tx_inputs
9 years ago
moneromooo-monero 737b6d6cf5
blockchain: make some flag twiddling code closer to the original
9 years ago
moneromooo-monero 81cb0fcdcc
blockchain: fix bitflipping test with quantized block rewards
9 years ago
moneromooo-monero 22ddf09bea
blockchain: add missing m_tx_pool.on_blockchain_dec
9 years ago
moneromooo-monero d837c0ca90
blockchain: fix switch to alternative blockchain for more than one block
9 years ago
moneromooo-monero 5cec076e13
blockchain: add a missing validity check to rollback_blockchain_switching
9 years ago
moneromooo-monero 3cabdb5ef2
core: catch exceptions from get_output_key
9 years ago
moneromooo-monero 5eef64578b
db: throw when given a non txout_to_key output to add
9 years ago
moneromooo-monero 8ea7af1ba3
Allow the wallet to access hard fork information
9 years ago
moneromooo-monero 3f2970fadb
Add missing semicolons after log statements
9 years ago
moneromooo-monero 01e92ebdb0
replace std::auto_ptr with std::unique_ptr
9 years ago
warptangent 9079a32c07
Fix typo
9 years ago
warptangent 3796941d8e
blockchain.cpp: Change indentation from 4 to 2 spaces
9 years ago
warptangent 725acc7f17
Replace tabs with two spaces for consistency with rest of codebase
9 years ago
moneromooo-monero 217792351d
Tone down a bit L0 logs during daemon sync
9 years ago
moneromooo-monero 10da0a0b7c
add a --fakechain argument for tests
9 years ago
moneromooo-monero 595893fcba
blockchain: log block (not chain) height in "BLOCK SUCCESFULLY ADDED"
9 years ago
moneromooo-monero 2369968dc3
blockchain: fix off by one in get_blocks
9 years ago
moneromooo-monero a98e976f9e
blockchain_db: fixup missing key images in early DB version
9 years ago
moneromooo-monero d887c18e33
hardfork: fix more major/minor issues
9 years ago
moneromooo-monero 53c75ab4a0
blockchain: log versions as numbers, not characters
9 years ago
Riccardo Spagni 328636cdb3
fixed testnet fork point, added comment data back in
9 years ago
Riccardo Spagni 8fe1111b5b
update v2 testnet fork height
9 years ago
moneromooo-monero 932994c0cb
Relay transactions when they linger too long in the pool
9 years ago
Javier Smooth baf101ef4a More changes for 2-min blocks
9 years ago
Javier Smooth 4fea1a5fe7 Adjust difficulty target (2 min) and full reward zone (60 kbytes) for block version 2
9 years ago
moneromooo-monero 4187e569d8
hardfork: allow per-fork voting thresholds
9 years ago
moneromooo-monero 4f873bcbaa
Remove some old/obsolete/unused code
9 years ago
Riccardo Spagni e1c29c94ad
Merge pull request #444
9 years ago
Riccardo Spagni db68eca0de
Merge pull request #442
9 years ago
moneromooo-monero ecbb732faa
Fix leak on real output when using a very recent output
9 years ago
moneromooo-monero 5f397e4412
Add functions to iterate through blocks, txes, outputs, key images
9 years ago
moneromooo-monero 6376627530
hardfork: switch voting to block minor version
9 years ago
moneromooo-monero b13e7f284b
blockchain_export can now export to a blocks.dat format
9 years ago
moneromooo-monero ac90d488e7
from hard fork 2, all outputs must be decomposed
9 years ago
moneromooo-monero 90ccad1236
from hard fork 2, claim a quantized reward in coinbase
9 years ago
moneromooo-monero 33affd2d17
blockchain: on hardfork 2, require mixin 2 at least if possible
9 years ago
moneromooo-monero 0a7421b607
hardfork: rescan speedup
9 years ago
moneromooo-monero 4bbf944df0
blockchain: on hardfork 2, allow miners to claim less money than allowed
9 years ago
moneromooo-monero 198f557d38
blockchain: use different hard fork settings for testnet and mainnet
9 years ago
moneromooo-monero 5b11a89a76
hardfork: most state now saved to the DB
9 years ago
moneromooo-monero e546f3724a
Add an RPC call and daemon command to get info on hard fork voting
9 years ago
moneromooo-monero d06713199e
blockchain: force a hardfork recalculation at load time
9 years ago
moneromooo-monero a7177610b3
core: add consts where appropriate
9 years ago
moneromooo-monero 8ffc508cef
core: moan when we think an update is needed to get latest hard fork info
9 years ago
moneromooo-monero f85498422d
blockchain: use the new hardfork class
9 years ago
moneromooo-monero 813e758b62
blockchain: remove obsolete call to libc srand
9 years ago
roman 59cc92b388 removed some gcc warnings. mainly unused variables.
9 years ago
moneromooo-monero 378d004b37
blockchain: mark two places where the new code differs from the old
9 years ago
moneromooo-monero 73d42a75d4
blockchain: update cumulative size after block addition
9 years ago
moneromooo-monero 4a443775e8
blockchain: remove dead code
9 years ago
moneromooo-monero 3f9089a767
blockchain: do not try to add a tx the pool when it was nor taken out
9 years ago
moneromooo-monero 769d5ef0e6
blockchain: fix off by 1 in timestamp median calculations
9 years ago
moneromooo-monero 35abef1b92
blockchain: remove dead code
9 years ago
moneromooo-monero 4f19e68476
blockchain: factor get_num_outpouts(amount) calls
9 years ago
moneromooo-monero 275894cdef
blockchain: always select random outs using triangular distribution
9 years ago
Riccardo Spagni 5a26676932
Merge pull request #343
9 years ago
moneromooo-monero e20a4ddc76
blockchain: fix testnet syncing (to not use blocks.dat)
9 years ago
NoodleDoodleNoodleDoodleNoodleDoodleNoo 70ae2ee711 Fixed threadpool bug when running on single core systems.
9 years ago
NoodleDoodleNoodleDoodleNoodleDoodleNoo 94ea3e8ed2 Removed on_idle() calls to Blockchain::store_blockchain() for lmdb.
9 years ago
NoodleDoodleNoodleDoodleNoodleDoodleNoo e5d2680094 ** CHANGES ARE EXPERIMENTAL (FOR TESTING ONLY)
9 years ago
NoodleDoodleNoodleDoodleNoodleDoodleNoo 1f83444d3d Update blockchain.cpp
9 years ago
NoodleDoodleNoodleDoodleNoodleDoodleNoo da1d3c01de
Experimental BDB workaround optimizations
9 years ago
Riccardo Spagni e01d32e52d
cleaning up, removing redundant files, renaming, fixing incorrect licenses
9 years ago
Thomas Winget 7b14d4a17f
Steps toward multiple dbs available -- working
9 years ago
warptangent 275cbd4348
Add support for database open with flags
9 years ago
Thomas Winget eee3ee7073
BlockchainDB implementations have names now
9 years ago
Thomas Winget 5eab480cb1
Moved BlockchainDB into its own src/ subfolder
9 years ago
warptangent ce71abd0fe
Move LMDB storage to subfolder
9 years ago
warptangent 59305d3137
Blockchain: match original function declaration from blockchain_storage
9 years ago
warptangent b88ab643ca
Fix Blockchain::get_tail_id() to set parameter to last block number instead of height
9 years ago
warptangent 8bd1983cdc
Blockchain: reflect log updates from blockchain_storage
9 years ago
warptangent 7f9b070165
Blockchain: reflect log and assert updates from blockchain_storage
9 years ago
warptangent 70342ecada
Blockchain: reflect log level of blockchain_storage
9 years ago
warptangent c8d27fb38d
Blockchain: reflect assert behavior of blockchain_storage for get_tx_outputs_gindexs()
9 years ago
warptangent d00ee784db
Update recently added log statement to fix possible null dereference
9 years ago
Thomas Winget acd4c369e4
Should fix std::min issues related to size_t
9 years ago
warptangent 800d9b9247
Remove code previously made unused and marked unused
9 years ago
warptangent 0840c2fd7e
Fix height assertion in Blockchain::handle_alternative_block()
9 years ago
warptangent 63051bea1c
Fix comparison between main and alternate chain's cumulative
9 years ago
warptangent 909ea81067
Remove a have_block() check so alternate block can be processed
9 years ago
warptangent 1701c26750
Use block index when obtaining block's difficulty for log statement
9 years ago
warptangent 4eba21fd48
Fix transfers to support mixins
9 years ago
warptangent d045dfa7ce
Fix transfers (without mixins)
9 years ago
Thomas Winget 14555eefd5
Fixes segfault in Blockchain::handle_alternative_block
9 years ago
warptangent c5c100c69b Obtain tx hash and tx output index from amount and output offset
10 years ago
Thomas Winget c50cd95674 Fixes a bug with getting output metadata from BlockchainDB
10 years ago
moneromooo-monero 1860658eec blockchain: do not append "testnet" to the data directory
10 years ago
moneromooo-monero 198368b2e1 blockchain: fix wallet syncing from scratch
10 years ago
moneromooo-monero b7270ab60e blockchain: add consts where appropriate
10 years ago
Thomas Winget 215e63b79f extraneous semicolon in Blockchain::complete_timestamps_vector
10 years ago
Thomas Winget 6c8b8acfe4 more blockchain height-related fixes, syncing other nodes code this time
10 years ago
Thomas Winget 26a7db38eb add new checkpointing behavior to Blockchain class
10 years ago
Thomas Winget 71b18d7166 moar bug fixes, removed debug prints
10 years ago
Thomas Winget 0915913111 BlockchainLMDB seems to be working*!
10 years ago
Thomas Winget 1a546e3222 some bug fixes, but still needs work
10 years ago
Thomas Winget 006afe2172 Minor bug fixes and debug prints
10 years ago
Thomas Winget 90f402e258 minor fixes to Blockchain.cpp
10 years ago
Thomas Winget 74a1a89e27
Integrate BlockchainDB into cryptonote_core
10 years ago
Thomas Winget bc44bc19f4 Initial commit of BlockchainDB tests, other misc
10 years ago
Thomas Winget 07733f98c0 update new blockchain to build with new changes
10 years ago
Thomas Winget 1ffbeb2d2e stupid past me, fixing typos and shit...
10 years ago
Thomas Winget aba548cbf7 import of BlockchainDB files
10 years ago