Commit Graph

392 Commits (8cc7a36f0be2f90b62a6ffce840817e046e928a0)

Author SHA1 Message Date
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
Riccardo Spagni 4550717464
Merge pull request #537
9 years ago
moneromooo-monero a74cc1bee2
hardfork: only accept major versions we know about
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 18bf06e4a5
tx_pool: fix "minumim" typo in message
9 years ago
Riccardo Spagni e175205e6e
Merge pull request #527
9 years ago
moneromooo-monero 336b37580f
Register daemon command line arguments to core if they're used in core
9 years ago
moneromooo-monero a98e976f9e
blockchain_db: fixup missing key images in early DB version
9 years ago
Riccardo Spagni 2ea8d7345f Revert "Merge pull request #506"
9 years ago
moneromooo-monero e45a8c9768
core: serialize block major/minor versions as bytes, not varints
9 years ago
Riccardo Spagni 4061a32082
Merge pull request #501
9 years ago
moneromooo-monero d887c18e33
hardfork: fix more major/minor issues
9 years ago
moneromooo-monero 3b47ca2d7d
hardfork: fix rescan on load
9 years ago
moneromooo-monero 53c75ab4a0
blockchain: log versions as numbers, not characters
9 years ago
moneromooo-monero edade8dc81
hardfork: fix actual/voting confusion
9 years ago
Javier Smooth 3d0b3c5018 add recent static checkpoint
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 2f254ff599
hardfork: add a get_ideal_version(uint64_t) function
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
moneromooo-monero 3e89df4150
Build fixes for the old blockchain_storage version
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 03bc6100de
hardfork: use DB transactions when reorganizing
9 years ago
moneromooo-monero 439c4555e9
hardfork: simplify work done on reload
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 22b15704b6
cryptonote_format_utils: add a function to tell if an amount is canonical
9 years ago
moneromooo-monero cec92c4fd3
hardfork: move an assert so it actually works
9 years ago
moneromooo-monero 33affd2d17
blockchain: on hardfork 2, require mixin 2 at least if possible
9 years ago
moneromooo-monero 434e0f42e7
hardfork: make the voting window a week
9 years ago
moneromooo-monero 0a7421b607
hardfork: rescan speedup
9 years ago
moneromooo-monero fec98b8952
hardfork: remove use of GNU extension for initializing object
9 years ago
moneromooo-monero 4bbf944df0
blockchain: on hardfork 2, allow miners to claim less money than allowed
9 years ago
moneromooo-monero 088bc56d79
hardfork: change window semantics to not count the newly added block
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 0a54c3a553
hardfork: remove the "parts are copyright cryptonote" notices
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 62b1f74116
New hardfork class
9 years ago
moneromooo-monero bed9a44e56
blockchain: add a couple missing includes
9 years ago
moneromooo-monero 813e758b62
blockchain: remove obsolete call to libc srand
9 years ago
moneromooo-monero d91eb8c7b4
wallet: only return tx keys via RPC if requested
9 years ago
Riccardo Spagni 6b7be9f89b
Merge pull request #383
9 years ago
roman 59cc92b388 removed some gcc warnings. mainly unused variables.
9 years ago
moneromooo-monero 6c995710d8
make tx keys available to the user
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 83bbea4c7f
Add a is_key_image_spent daemon command and RPC call
9 years ago
moneromooo-monero 35abef1b92
blockchain: remove dead code
9 years ago
Riccardo Spagni 09cada45c4
Merge pull request #363
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
moneromooo-monero a2d7a5fb49
encrypted payment ids are now 64 bit, instead of 256 bit
9 years ago
moneromooo-monero e40cfc4e29
Encrypted payment IDs
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 2e293a563e Fixed binary size issue due to embedded checkpoint data.
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
NoodleDoodleNoodleDoodleNoodleDoodleNoo 5d304cabfd Fix loop bug when calling core::get_block_template, causing calling thread to lock up.
9 years ago
moneromooo-monero 6a0f61d800
account: allow creating an account from a public address and view secret key
9 years ago
moneromooo-monero f6da25a32e
Fix standard address deserialization
9 years ago
Riccardo Spagni 2d9d6c7621
Merge pull request #321
9 years ago