1. 25 Apr, 2012 1 commit
    • Pieter Wuille's avatar
      Make lsn_reset ("detach databases") optional and off by default. · 0548a2bb
      Pieter Wuille authored
      Add an option -detachdb (and entry in OptionDialog), without which no
      lsn_reset is called on addr.dat and blkindex.dat. That means these
      files cannot be moved to a new environment, but shutdown can be
      significantly faster. The wallet file is always lsn_reset'ed.
      
      -detachdb corresponds to the old behaviour, though it is off by
      default now to speed up shutdowns.
      0548a2bb
  2. 22 Apr, 2012 1 commit
  3. 18 Apr, 2012 1 commit
  4. 17 Apr, 2012 3 commits
  5. 11 Apr, 2012 1 commit
    • Pieter Wuille's avatar
      Use filesystem::path instead of manual string tinkering · 5a59c052
      Pieter Wuille authored
      Where possible, use boost::filesystem::path instead of std::string or
      char* for filenames. This avoids a lot of manual string tinkering, in
      favor of path::operator/.
      
      GetDataDir is also reworked significantly, it now only keeps two cached
      directory names (the network-specific data dir, and the root data dir),
      which are decided through a parameter instead of pre-initialized global
      variables.
      
      Finally, remove the "upgrade from 0.1.5" case where a debug.log in the
      current directory has to be removed.
      5a59c052
  6. 10 Apr, 2012 1 commit
    • Pieter Wuille's avatar
      Build identification strings · 8b1f2f2b
      Pieter Wuille authored
      All client version information is moved to version.cpp, which optionally
      (-DHAVE_BUILD_INFO) includes build.h. build.h is automatically generated
      on supporting platforms via contrib/genbuild.sh, using git describe.
      
      The git export-subst attribute is used to put the commit id statically
      in version.cpp inside generated archives, and this value is used if no
      build.h is present.
      
      The gitian descriptors are modified to use git archive instead of a
      copy, to create the src/ directory in the output. This way,
      src/src/version.cpp will contain the static commit id. To prevent
      gitian builds from getting the "-dirty" marker in their git-describe
      generated identifiers, no touching of files or running sed on the
      makefile is performed anymore. This does not seem to influence
      determinism.
      8b1f2f2b
  7. 08 Apr, 2012 1 commit
  8. 05 Apr, 2012 2 commits
  9. 04 Apr, 2012 2 commits
  10. 03 Apr, 2012 1 commit
  11. 22 Mar, 2012 2 commits
    • Pieter Wuille's avatar
      Introduce explicit -walletupgrade option · ff9a814a
      Pieter Wuille authored
      Do not automatically change the wallet format unless the user takes an
      explicit action that implies an upgrade (encrypting, for now), or uses
      -walletupgrade.
      
      -walletupgrade optionally takes an integer argument: the client version
      up to which upgrading is allowed. Without an argument, it is upgraded
      to latest supported version. If an argument to -walletupgrade is
      provided at the time the wallet is created, the new wallet will initially
      not use features beyond that version.
      
      Third, the current wallet version number is reported in getinfo.
      ff9a814a
    • Pieter Wuille's avatar
      Add -checklevel and improve -checkblocks · 62954efe
      Pieter Wuille authored
      -checkblocks now takes a numeric argument: the number of blocks that must
      be verified at the end of the chain. Default is 2500, and 0 means all
      blocks.
      
      -checklevel specifies how thorough the verification must be:
      0: only check whether the block exists on disk
      1: verify block validity (default)
      2: verify transaction index validity
      3: check transaction hashes
      4: check whether spent txouts were spent within the main chain
      5: check whether all prevouts are marked spent
      6: check whether spent txouts were spent by a valid transaction that consumes them
      62954efe
  12. 21 Mar, 2012 2 commits
  13. 11 Mar, 2012 1 commit
  14. 27 Feb, 2012 1 commit
  15. 26 Feb, 2012 2 commits
  16. 25 Feb, 2012 1 commit
  17. 24 Feb, 2012 1 commit
    • Pieter Wuille's avatar
      CAddrMan: stochastic address manager · a0ad4640
      Pieter Wuille authored
      Design goals:
       * Only keep a limited number of addresses around, so that addr.dat does not grow without bound.
       * Keep the address tables in-memory, and occasionally write the table to addr.dat.
       * Make sure no (localized) attacker can fill the entire table with his nodes/addresses.
      
      See comments in addrman.h for more detailed information.
      a0ad4640
  18. 22 Feb, 2012 1 commit
  19. 17 Feb, 2012 4 commits
  20. 10 Feb, 2012 1 commit
  21. 07 Feb, 2012 2 commits
  22. 06 Feb, 2012 1 commit
  23. 01 Feb, 2012 1 commit
  24. 17 Jan, 2012 1 commit
  25. 13 Jan, 2012 1 commit
  26. 06 Jan, 2012 1 commit
    • Pieter Wuille's avatar
      Network stack refactor · 51c666c0
      Pieter Wuille authored
      This introduces CNetAddr and CService, respectively wrapping an
      (IPv6) IP address and an IP+port combination. This functionality used
      to be part of CAddress, which also contains network flags and
      connection attempt information. These extra fields are however not
      always necessary.
      
      These classes, along with logic for creating connections and doing
      name lookups, are moved to netbase.{h,cpp}, which does not depend on
      headers.h.
      
      Furthermore, CNetAddr is mostly IPv6-ready, though IPv6
      functionality is not yet enabled for the application itself.
      51c666c0
  27. 05 Jan, 2012 1 commit
  28. 03 Jan, 2012 2 commits