Commit Graph

678 Commits (99682fb3a76c192d5d9206cc6d56585598d493df)

Author SHA1 Message Date
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
9 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
10 years ago
warptangent 7f9b070165
Blockchain: reflect log and assert updates from blockchain_storage
10 years ago
warptangent 70342ecada
Blockchain: reflect log level of blockchain_storage
10 years ago
warptangent c8d27fb38d
Blockchain: reflect assert behavior of blockchain_storage for get_tx_outputs_gindexs()
10 years ago
warptangent d00ee784db
Update recently added log statement to fix possible null dereference
10 years ago
Thomas Winget acd4c369e4
Should fix std::min issues related to size_t
10 years ago
warptangent 800d9b9247
Remove code previously made unused and marked unused
10 years ago
warptangent 0840c2fd7e
Fix height assertion in Blockchain::handle_alternative_block()
10 years ago
warptangent 63051bea1c
Fix comparison between main and alternate chain's cumulative
10 years ago
warptangent 909ea81067
Remove a have_block() check so alternate block can be processed
10 years ago
warptangent 1701c26750
Use block index when obtaining block's difficulty for log statement
10 years ago
warptangent 4eba21fd48
Fix transfers to support mixins
10 years ago
warptangent d045dfa7ce
Fix transfers (without mixins)
10 years ago
Thomas Winget 14555eefd5
Fixes segfault in Blockchain::handle_alternative_block
10 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