1. 02 Apr, 2014 1 commit
  2. 11 Mar, 2014 1 commit
  3. 26 Feb, 2014 1 commit
    • Gavin Andresen's avatar
      Remove CWalletTx::vfSpent · 335d0c34
      Gavin Andresen authored
      Use the spent outpoint multimap to figure out which wallet transaction
      outputs are unspent, instead of a vfSpent array that is saved
      to disk.
      335d0c34
  4. 24 Feb, 2014 1 commit
    • Wladimir J. van der Laan's avatar
      Get rid of C99 PRI?64 usage in source files · 87fa85e8
      Wladimir J. van der Laan authored
      Amend to d5f1e727. It turns out that BerkelyDB was including inttypes.h
      indirectly, so we cannot fix this with just macros.
      
      Trivial commit: apply the following script to all .cpp and .h files:
      
          # Middle
          sed -i 's/"PRIx64"/x/g' "$1"
          sed -i 's/"PRIu64"/u/g' "$1"
          sed -i 's/"PRId64"/d/g' "$1"
          # Initial
          sed -i 's/PRIx64"/"x/g' "$1"
          sed -i 's/PRIu64"/"u/g' "$1"
          sed -i 's/PRId64"/"d/g' "$1"
          # Trailing
          sed -i 's/"PRIx64/x"/g' "$1"
          sed -i 's/"PRIu64/u"/g' "$1"
          sed -i 's/"PRId64/d"/g' "$1"
      
      After this commit, `git grep` for PRI.64 should turn up nothing except
      the defines in util.h.
      87fa85e8
  5. 22 Feb, 2014 1 commit
    • Wladimir J. van der Laan's avatar
      Don't use PRIx64 formatting derives from inttypes.h · 3618c435
      Wladimir J. van der Laan authored
      As the tinyformat-based formatting system (introduced in b77dfdc9) is
      type-safe, no special format characters are needed to specify sizes.
      
      Tinyformat can support (ignore) the C99 prefixes such as "ll" but
      chokes on MSVC's inttypes.h defines prefixes such as "I64X". So don't
      include inttypes.h and define our own for compatibility.
      
      (an alternative would be to sweep the entire codebase using sed -i to
      get rid of the size specifiers but this has less diff impact)
      3618c435
  6. 20 Feb, 2014 1 commit
  7. 18 Feb, 2014 1 commit
    • Gavin Andresen's avatar
      Wallet locking fixes for -DDEBUG_LOCKORDER · a984dc00
      Gavin Andresen authored
      Compiling with -DDEBUG_LOCKORDER and running the qa/rpc-test/ regression
      tests uncovered a couple of wallet methods that should (but didn't)
      acquire the cs_wallet mutext.
      
      I also changed the AssertLockHeld() routine print to stderr and
      abort, instead of printing to debug.log and then assert()'ing.
      It is annoying to look in debug.log to find out which
      AssertLockHeld is failing.
      a984dc00
  8. 14 Feb, 2014 3 commits
    • Gavin Andresen's avatar
      Track and report wallet transaction clones · 76fb8265
      Gavin Andresen authored
      Adds a "walletconflicts" array to transaction info; if
      a wallet transaction is mutated, the alternate transaction id
      or ids are reported there (usually the array will be empty).
      
      Metadata from the original transaction is copied to the mutant,
      so the transaction time and "from" account of the mutant are
      reported correctly.
      76fb8265
    • Jeff Garzik's avatar
      Add -zapwallettxes cli/config option, used for wallet recovery · 1bfca260
      Jeff Garzik authored
      This diagnostic tool removes all "tx" records from the wallet db,
      then forces a full rescan, to rebuild "tx" records accurately.
      1bfca260
    • Gavin Andresen's avatar
      Handle "conflicted" transactions properly · 64e9a19b
      Gavin Andresen authored
      Extend CMerkleTx::GetDepthInMainChain with the concept of
      a "conflicted" transaction-- a transaction generated by the wallet
      that is not in the main chain or in the mempool, and, therefore,
      will likely never be confirmed.
      
      GetDepthInMainChain() now returns -1 for conflicted transactions
      (0 for unconfirmed-but-in-the-mempool, and >1 for confirmed).
      
      This makes getbalance, getbalance '*', and listunspent all agree when there are
      mutated transactions in the wallet.
      
      Before:
       listunspent: one 49BTC output
       getbalance: 96 BTC (change counted twice)
       getbalance '*': 46 BTC (spends counted twice)
      
      After: all agree, 49 BTC available to spend.
      64e9a19b
  9. 13 Feb, 2014 1 commit
  10. 11 Feb, 2014 1 commit
  11. 10 Feb, 2014 1 commit
  12. 07 Feb, 2014 1 commit
  13. 23 Jan, 2014 1 commit
    • Wladimir J. van der Laan's avatar
      Remove redundant .c_str()s · 654da649
      Wladimir J. van der Laan authored
      After the tinyformat switch sprintf() family functions support passing
      actual std::string objects.
      
      Remove unnecessary c_str calls (236 of them) in logging and formatting.
      654da649
  14. 19 Jan, 2014 2 commits
  15. 19 Dec, 2013 2 commits
  16. 14 Dec, 2013 1 commit
  17. 13 Dec, 2013 1 commit
  18. 04 Dec, 2013 2 commits
  19. 02 Dec, 2013 1 commit
    • Gregory Maxwell's avatar
      Sanitize assert usage and refuse to compile with NDEBUG. · b36e336a
      Gregory Maxwell authored
      There were quite a few places where assert() was used with side effects,
       making operation with NDEBUG non-functional.  This commit fixes all the
       cases I know about, but also adds an  #error on NDEBUG because the code
       is untested without assertions and may still have vulnerabilities if
       used without assert.
      b36e336a
  20. 30 Nov, 2013 2 commits
  21. 18 Nov, 2013 1 commit
    • Philip Kaufmann's avatar
      Coincontrol cleanup (e.g. add missing license) · 4a0a266c
      Philip Kaufmann authored
      - add missing license headers
      - make compatible with Qt5
      - enforce header cleanup style
      - small code style cleanups
      - rename Coin Control dialog into Coin Control Address Selection
      - use default font for the windows labels (no monospace)
      4a0a266c
  22. 15 Nov, 2013 1 commit
  23. 14 Nov, 2013 2 commits
  24. 10 Nov, 2013 1 commit
    • Brandon Dahler's avatar
      Cleanup code using forward declarations. · e28f37ca
      Brandon Dahler authored
      Use misc methods of avoiding unnecesary header includes.
      Replace int typedefs with int##_t from stdint.h.
      Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h.
      Normalize QT_VERSION ifs where possible.
      Resolve some indirect dependencies as direct ones.
      Remove extern declarations from .cpp files.
      e28f37ca
  25. 26 Oct, 2013 4 commits
  26. 20 Oct, 2013 1 commit
  27. 11 Oct, 2013 1 commit
  28. 10 Oct, 2013 1 commit
  29. 04 Oct, 2013 1 commit
  30. 20 Sep, 2013 1 commit