wownero/src
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
..
blockchain_db db: throw when given a non txout_to_key output to add 2015-12-25 21:56:37 +00:00
blockchain_utilities Add missing semicolons after log statements 2015-12-19 14:47:37 +00:00
blocks Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
common Add missing semicolons after log statements 2015-12-19 14:47:37 +00:00
connectivity_tool 2014 network limit 1.2 +utils +toc -doc -drmonero 2015-02-20 22:28:03 +01:00
crypto Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
cryptonote_core blockchain: fix a few block addition bugs 2015-12-25 22:13:38 +00:00
cryptonote_protocol Merge pull request #543 2015-12-18 12:16:10 +02:00
daemon Merge pull request #552 2015-12-22 10:29:29 +02:00
daemonizer posix_daemonizer: only create the main daemon object in the last child 2015-12-13 19:48:11 +00:00
miner 2014 network limit 1.2 +utils +toc -doc -drmonero 2015-02-20 22:28:03 +01:00
mnemonics slight modification to wordlist contributor tagline (as these contributors haven't used git to submit a PR, so we're creating the wordlist on their behalf 2015-07-24 07:55:16 +02:00
p2p net_node: fix a hang on exit 2015-12-22 12:38:52 +00:00
platform year updated in license 2015-01-02 18:52:46 +02:00
rpc Merge pull request #547 2015-12-22 10:10:54 +02:00
serialization encrypted payment ids are now 64 bit, instead of 256 bit 2015-08-09 10:13:51 +01:00
simplewallet Add missing semicolons after log statements 2015-12-19 14:47:37 +00:00
wallet fixed missing parenthesis 2015-12-24 18:11:11 +02:00
CMakeLists.txt Replace tabs with two spaces for consistency with rest of codebase 2015-12-15 06:22:06 -08:00
cryptonote_config.h Revert connection limit to more customary 8 2015-12-14 18:45:52 -08:00
version.cmake year updated in license 2015-01-02 18:52:46 +02:00
version.h.in onwards to 0.8.8.7 2014-12-13 13:45:57 +02:00