aboutsummaryrefslogtreecommitdiff
path: root/src/walletdb.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Give threads a recognisable name to aid in debuggingGiel van Schijndel2012-07-171-0/+3
| | | | | | | | NOTE: These thread names are visible in gdb when using 'info threads'. Additionally both 'top' and 'ps' show these names *unless* told to display the command-line instead of task name. Signed-off-by: Giel van Schijndel <[email protected]>
* Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddressPieter Wuille2012-05-241-1/+1
| | | | | | | | | | | | | | | | | This introduces internal types: * CKeyID: reference (hash160) of a key * CScriptID: reference (hash160) of a script * CTxDestination: a boost::variant of the former two CBitcoinAddress is retrofitted to be a Base58 encoding of a CTxDestination. This allows all internal code to only use the internal types, and only have RPC and GUI depend on the base58 code. Furthermore, the header dependencies are a lot saner now. base58.h is at the top (right below rpc and gui) instead of at the bottom. For the rest: wallet -> script -> keystore -> key. Only keystore still requires a forward declaration of CScript. Solving that would require splitting script into two layers.
* Encapsulate public keys in CPubKeyPieter Wuille2012-05-241-1/+1
|
* Merge branch 'dbenv' into tmpJeff Garzik2012-05-221-19/+13
|\ | | | | | | | | Conflicts: src/db.cpp
| * Further CDBEnv encapsulation work.Jeff Garzik2012-05-191-12/+9
| |
| * Encapsulate BDB environment inside new CDBEnv classJeff Garzik2012-05-191-7/+4
| | | | | | | | | | | | | | | | Cleans up and organizes several scattered functions and variables related to the BDB env. Class CDBInit() existed to provide a guaranteed-via-C++-destructor cleanup of the db environment. A formal CDBEnv class provides all of this inside a single wrapper.
* | Update License in File HeadersFordy2012-05-181-1/+1
|/ | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
* ensure that no double timestamps show up in the debug.log, by removing ↵Philip Kaufmann2012-05-131-1/+0
| | | | manual timestamps from the source (now only -logtimestamps parameter adds timestamps to debug.log)
* Bugfix: %-12I64d is not valid and causes the parameter to be skipped, use ↵Luke Dashjr2012-05-051-1/+1
| | | | %12"PRI64d" instead
* Further reduce header dependenciesPieter Wuille2012-04-171-4/+4
| | | | | | | This commit removes the dependency of serialize.h on PROTOCOL_VERSION, and makes this parameter required instead of implicit. This is much saner, as it makes the places where changing a version number can have an influence obvious.
* Move CWalletDB code to new walletdb module.Jeff Garzik2012-04-171-0/+428
In addition to standard code separation, this change opens the door to fixing several include inter-dependencies.