Removed a duplicated identical if #1878

pull xanatos wants to merge 48 commits into bitcoin:master from xanatos:patch-20 changing 101 files +5458 −5242
  1. xanatos commented at 11:57 AM on September 28, 2012: none

    There are two equal ifs, one inside another. If the first one is true, then the second one is true.

    I'll add that I don't think it's a good idea to use the [] operator for checking the existance of items in a map in the context of a method that should only "show" the wtx (the map::[] operator adds a new item if it isn't found). I think the method should work with a const CWalletTx &wtx.

  2. Diapolo commented at 12:31 PM on September 28, 2012: none

    The patch makes absolutely sense and why not create a patch for your second suggestions, too :)?

  3. Diapolo commented at 1:25 PM on September 28, 2012: none

    Can you squash the 2 commits into one please.

  4. xanatos closed this on Sep 28, 2012

  5. Bitcoin-Qt (Windows only): add version info to Resource File
    - add version information to bitcoin-qt.rc, which is displayed on Windows, when looking in the executable properties and selecting "Details"
    - introduce a new clientversion.h (used in bitcoin-qt.rc to generate
      version information), which takes only the version defines from
      version.h and is included in it (to allow usage with the windres rc-file
      compiler)
    - move #define STRINGIFY(s) #s into clientversion.h as that is used in
      bitcoin-qt.rc and rename to DO_STRINGIZE(X)
    - add #define STRINGIZE(X) DO_STRINGIZE(X), which is needed to convert the
      version defines into a version string in the rc-file
    - this ensures we only need to update 1 file and have bitcoin-qt.exe
      version information
    
    - for RC-file documentation see:
      http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058%28v=vs.85%29.aspx
    254ea5d477
  6. small update to release-notes.txt 94f74c9a01
  7. Partially Bugfix: Update English translation strings and translations from Transifex
    Bugfix: Correct doubled-up & in translations
    Bugfix: Remove extra spaces after ampersand in translations (this fixes hotkeys)
    Restore copyright translations, now split up
    Restore old translations lost due to changes to English structure
    	Skipped: ca_ES et eu_ES fr_CA (under 10% coverage)
    41f58d3fe7
  8. Update translations from Transifex (100% coverage for Finnish and Chinese (China) 6382e52c1b
  9. Apply MIT license to md2k7 art
    [21:48:14] <md2k7> feel free to make it MIT if you like
    68476a24e1
  10. Remove VC6 comment and pointless #ifdef'd benchmark code
    We're in a wholly different world now, C++-compiler-wise.
    
    Current std::stringstream implementations don't have the stated problem anymore,
    and are just as fast as CDataStream.
    
    The #ifdef'd block does not even compile anymore; CDataStream constructor changed,
    and missing some std::. Also timing in whole seconds is also way too granular
    to say anything sensible in such microbenchmarks. Just remove it,
    it can always be found again in git history.
    62a4ab03a7
  11. Cleanup on doc/build-unix.txt c374cbb615
  12. Apply BIP30 checks to all blocks except the two historic violations.
    Matt pointed out some time ago that there existed a minor DOS
    attack where a node in its initial block download could be wedged
    by an overwrite attack in a fork created between checkpoints before
    a time where BIP30 was enforced. Now that the BIP30 timestamp
    is irreversibly past the check can be more aggressive and apply to
    all blocks except the two historic violations.
    953f3d5c85
  13. Do not abort if RPC listening for IPv6 fails
    Instead, fall back to IPv4 listening.
    941728b100
  14. Bump client version number for 0.7.0rc3 43354924a3
  15. update comment, secure_allocator is defined in allocators.h 6d4395e58d
  16. Bump client version to 0.7.0.99 now that 0.7.0 release is final. 84c128767e
  17. Bugfix: Initialize CWallet::nOrderPosNext on an empty wallet, and save it in db 6574cca9d7
  18. Reset release notes for release-after-0.7.0 a350d52206
  19. Give makefiles 'test' and 'check' targets to compile and run unit tests f7bd84ed59
  20. Cosmetic: move CTransaction::GetMinFee out of header file 474451d1a6
  21. Improve debug logging, for mempool TXs that do not include sufficient fees 07185e6ee0
  22. Trim trailing whitespace for src/*.{h,cpp} d43ac2f555
  23. When rejected TX relay due to lack of fees, log full txid 489d9ced41
  24. check tx.CheckTransaction for data-driven tx tests.
    (and change so that only one case has to fail to make a tx_invalid
    test correct)
    0629771e15
  25. Add various tests for CTransaction::CheckTransaction() c18029514b
  26. Qt: show mined transactions at depth 1
    - before, we used to show them in GUI when depth >= 2, which could lead to
      confusion of users, as the RPC behaviour already showed the Tx
    b9924c0747
  27. Update gitignore and Makefiles for build.h move from src/ to src/obj 36d62d41dd
  28. Improve RPC console key event behaviour
    - Paging using PageUp / PageDown now works when entry widget has focus
    - Typing or pasting while the messages widget has focus auto-selects entry widget
    2d3f9d86ab
  29. remove FIRST_CLASS_MESSAGING support from the client
    - removes the FIRST_CLASS_MESSAGING support from the client, which was no
      default setting anyway
    6dbbff2337
  30. Qt: re-order GUI code
    - re-order Qt Actions and connect() calls to match the real GUI layout,
      which makes things easier to read and understand
    - remove signMessageAction and verifyMessageAction from tabGroup as we
      didn't use them anyway (as tooltips are not displayed in the menu remove
      these too)
    - update 2 comments
    b7b92217e5
  31. comment update: it's -> its bc210ebf7c
  32. fix signed/unsigned in strprintf and CNetAddr::GetByte()
    - I checked every occurance of strprintf() in the code and used %u, where
      unsigned vars are used
    - the change to GetByte() was made, as ip is an unsigned char
    844d0173cb
  33. fix #1843 by changing 2 GUI shortcuts 7bd5a690ea
  34. Remove unnecessary text from tooltip in AddressBookPage d6fb320268
  35. enhance Qt5 compatibility
    - replace Q_WS_MAC (not supported anymore in Qt5) with Q_OS_MAC (supported
      in Qt4/5)
    d5a285606b
  36. Update Bugreport Links
    Update Qt Links
    
    Revert Qt source link
    
    Update Qt links
    a8e9d6ad8e
  37. Update Qt include
    Update Qmenu include
    
    This is to be more consistent with the rest of the source
    
    Update Qt Includes
    57eb8283ac
  38. Adds a stopdetach <detach> RPC command. <detach> defaults to true. Works just like stop, but overrides the commandline/config file
    -detachdb option.  Useful for upgrading, for example.  Lets you use fast stops usually, but force a detach when needed.  Also, allows
    you to do a fast stop in a system normally configured for fast stops.
    e8c5dee8a6
  39. additional fix for #1843
    - a shortcut on "receive coins" was used twice
    a7ef413446
  40. Bitcoin-Qt: expand GCC Stack-Smashing Protector usage (non Windows)
    This patch currently excludes our Windows executable!
    
    - change to use -fstack-protector-all
    - the minimum size of buffers (i.e. arrays) that will receive stack
      smashing protection was changed to 1 byte (GCC default: 8)
    - warn about functions that will not be protected against stack
      smashing by adding -Wstack-protector
    98e4485012
  41. Compile/link Bitcoin-Qt.app with -pthread bdc83e906b
  42. change last occurance of mac to macx in Qt project-file ffdbc3c45a
  43. Update comment, we're no longer using boost::interprocess::scoped_lock 25dd9c6e77
  44. Import $DataDir/bootstrap.dat automatically, if it exists.
    As discussed on IRC. Intended to make using an external blockchain download
    solution just a bit easier.
    e1162b2a19
  45. Add printf-style warnings to strprintf() and OutputDebugStringF()
    This finds about ~150 potential problems with format characters on a 64 bit build.
    7167bdcdc7
  46. Cleanup some unused macros from util.h
    Encapsulate _snprintf/sprintf difference in implementation not header
    ffe3a29e4a
  47. HexStr: don't build a vector<char> first
    Also const correctness for lookup tables in hex functions throughout the code.
    1e64deae25
  48. Add format characters for (s)size_t and ptrdiff_t a30ae79db8
  49. Remove -Wformat* warnings from makefiles
    commit 5a1a3622 effectively enabled these warnings, but they need
    to be fixed before being enabled in the general build scripts.
    047f3a8eed
  50. Documented bug in sign-extension behavior of opcodes OP_AND, OP_OR, and OP_XOR.
    Due to a bug in the implementation of MakeSameSize(), using OP_AND, OP_OR, or OP_XOR with signed values of unequal size will result in the sign-value becoming part of the smaller integer, with nonsensical results. This patch documents the unexpected behavior and provides the basis of a solution should decision be made to fix the bug in the future.
    9b67f2ba20
  51. Removed a duplicated identical if
    There are two equal ifs, one inside another. If the first one is true, then the second one is true.
    ed1b863c40
  52. toHTML won't add empty wtx.mapValue elements
    As the code was before, toHTML added empty elements to mapValue to check for their existance. Now first it check for their existance and then for their non-emptiness.
    fe064cbb42
  53. xanatos commented at 1:44 PM on September 28, 2012: none

    @Diapolo Aaaah... I hate github... I hate git... I was trying to rebase everything in local and I closed the pull...

  54. xanatos reopened this on Sep 28, 2012

  55. xanatos closed this on Sep 28, 2012

  56. Diapolo commented at 2:33 PM on September 28, 2012: none

    git fetch upstream git rebase upstream git rebase origin -i use squash before your 2nd commit git push origin patch-20 -f

  57. KolbyML referenced this in commit 7bba3947af on Dec 5, 2020
  58. KolbyML referenced this in commit 051719e2af on Dec 5, 2020
  59. DrahtBot locked this on Sep 8, 2021
  60. DrahtBot added the label CI failed on Apr 11, 2023
  61. MarcoFalke removed the label CI failed on Apr 11, 2023
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-29 03:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me