danicoin/src/cryptonote_core
moneromooo-monero f33a88cfc1
blockchain: fix a few block addition bugs
If the block reward was too high, the verification failed flag
was set, but the function continued. The code which was supposed
to trap this flag and return failure failed to trap it, and,
while the block was not added to the chain, the function would
return success.
The reason for avoiding returning when the block reward problem
was detected was to be able to return any transactions to the
pool if needed. This is now mooted by moving the transaction
return code to a separate function, which is now called at all
appropriate points, making the logic much simpler, and hopefully
correct now.
We also move the hard fork version check after the prev_id check,
as block which does not go on the top of the chain might not
have the expected version there, without being invalid just for
this reason.
Last, we trap the case where a block fails to be added due to
using already spent key images, to set the verification failed
flag.
2015-12-25 22:13:38 +00:00
..
account.cpp encrypted payment ids are now 64 bit, instead of 256 bit 2015-08-09 10:13:51 +01:00
account.h encrypted payment ids are now 64 bit, instead of 256 bit 2015-08-09 10:13:51 +01:00
account_boost_serialization.h year updated in license 2015-01-02 18:52:46 +02:00
blockchain.cpp blockchain: fix a few block addition bugs 2015-12-25 22:13:38 +00:00
blockchain.h blockchain: fix a few block addition bugs 2015-12-25 22:13:38 +00:00
blockchain_storage.cpp Fix typo 2015-12-15 06:33:22 -08:00
blockchain_storage.h Build fixes for the old blockchain_storage version 2015-10-26 22:36:06 +00:00
blockchain_storage_boost_serialization.h year updated in license 2015-01-02 18:52:46 +02:00
checkpoints.cpp Fixes segfault in Blockchain::handle_alternative_block 2015-01-09 05:56:51 -05:00
checkpoints.h checkpoints: add consts where appropriate 2015-01-04 19:39:41 -08:00
checkpoints_create.cpp Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
checkpoints_create.h DNS checkpoint loading for testnet should now be correct 2015-03-01 03:36:46 -05:00
CMakeLists.txt Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
connection_context.h year updated in license 2015-01-02 18:52:46 +02:00
cryptonote_basic.h Revert "Merge pull request #506" 2015-11-30 11:07:22 +02:00
cryptonote_basic_impl.cpp Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
cryptonote_basic_impl.h Adjust difficulty target (2 min) and full reward zone (60 kbytes) for block version 2 2015-11-13 00:30:45 -08:00
cryptonote_boost_serialization.h year updated in license 2015-01-02 18:52:46 +02:00
cryptonote_core.cpp Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
cryptonote_core.h Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
cryptonote_format_utils.cpp Adjust difficulty target (2 min) and full reward zone (60 kbytes) for block version 2 2015-11-13 00:30:45 -08:00
cryptonote_format_utils.h from hard fork 2, claim a quantized reward in coinbase 2015-10-10 12:28:44 +01:00
cryptonote_stat_info.h year updated in license 2015-01-02 18:52:46 +02:00
difficulty.cpp Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
difficulty.h More changes for 2-min blocks 2015-11-13 00:37:35 -08:00
hardfork.cpp Allow the wallet to access hard fork information 2015-12-19 14:52:30 +00:00
hardfork.h Allow the wallet to access hard fork information 2015-12-19 14:52:30 +00:00
miner.cpp Add missing semicolons after log statements 2015-12-19 14:47:37 +00:00
miner.h year updated in license 2015-01-02 18:52:46 +02:00
tx_extra.h Encrypted payment IDs 2015-08-09 10:13:41 +01:00
tx_pool.cpp Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
tx_pool.h Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
verification_context.h blockchain: fix bitflipping test with quantized block rewards 2015-12-25 22:07:58 +00:00