aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | scripted-diff: Remove #include <boost/foreach.hpp>Jorge Timón2017-06-221-1/+0
| | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- sed -i ':a;N;$!ba;s/#include <boost\/foreach.hpp>\n//' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp -END VERIFY SCRIPT-
* | | Merge #10536: Remove unreachable or otherwise redundant codePieter Wuille2017-06-201-8/+2
|\ \ \ | |/ / |/| | | | | | | | | | | 4265bf351 Remove unreachable or otherwise redundant code (practicalswift) Tree-SHA512: bc9666ab5d20c936d78c50c0361405aca9edd116602aa9bcd71a79a904b647ac9eca0651d1a9d530189a6ac1c4e235bfc69ec1a68f7e36cc14d6848ac2206b7b
| * | Remove unreachable or otherwise redundant codepracticalswift2017-06-121-8/+2
| | |
* | | Merge #10502: scripted-diff: Remove BOOST_FOREACH, Q_FOREACH and PAIRTYPEPieter Wuille2017-06-131-5/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | 1238f13cf scripted-diff: Remove PAIRTYPE (Jorge Timón) 18dc3c396 scripted-diff: Remove Q_FOREACH (Jorge Timón) 7c00c2672 scripted-diff: Fully remove BOOST_FOREACH (Jorge Timón) a5410ac5e Small preparations for Q_FOREACH, PAIRTYPE and #include <boost/foreach.hpp> removal (Jorge Timón) Tree-SHA512: d3ab4a173366402e7dcef31608977b757d4aa07abbbad2ee1bcbcfa311e994a4552f24e5a55272cb22c2dcf89a4b0495e02e9d9aceae4b08c0bab668f20e324c
| * | scripted-diff: Fully remove BOOST_FOREACHJorge Timón2017-06-051-5/+5
| | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- sed -i 's/BOOST_FOREACH *(\(.*\),/for (\1 :/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp ; -END VERIFY SCRIPT-
* | | Merge #8694: Basic multiwallet supportWladimir J. van der Laan2017-06-121-91/+57
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c237bd7 wallet: Update formatting (Luke Dashjr) 9cbe8c8 wallet: Forbid -salvagewallet, -zapwallettxes, and -upgradewallet with multiple wallets (Luke Dashjr) a2a5f3f wallet: Base backup filenames on original wallet filename (Luke Dashjr) b823a4c wallet: Include actual backup filename in recovery warning message (Luke Dashjr) 84dcb45 Bugfix: wallet: Fix warningStr, errorStr argument order (Luke Dashjr) 008c360 Wallet: Move multiwallet sanity checks to CWallet::Verify, and do other checks on all wallets (Luke Dashjr) 0f08575 Wallet: Support loading multiple wallets if -wallet used more than once (Luke Dashjr) b124cf0 Wallet: Replace pwalletMain with a vector of wallet pointers (Luke Dashjr) 19b3648 CWalletDB: Store the update counter per wallet (Luke Dashjr) 74e8738 Bugfix: ForceSetArg should replace entr(ies) in mapMultiArgs, not append (Luke Dashjr) 23fb9ad wallet: Move nAccountingEntryNumber from static/global to CWallet (Luke Dashjr) 9d15d55 Bugfix: wallet: Increment "update counter" when modifying account stuff (Luke Dashjr) f28eb80 Bugfix: wallet: Increment "update counter" only after actually making the applicable db changes to avoid potential races (Luke Dashjr) Tree-SHA512: 23f5dda58477307bc07997010740f1dc729164cdddefd2f9a2c9c7a877111eb1516d3e2ad4f9b104621f0b7f17369c69fcef13d28b85cb6c01d35f09a8845f23
| * | | wallet: Update formattingLuke Dashjr2017-06-061-7/+10
| | | |
| * | | wallet: Include actual backup filename in recovery warning messageLuke Dashjr2017-06-061-4/+4
| | | |
| * | | Bugfix: wallet: Fix warningStr, errorStr argument orderLuke Dashjr2017-06-061-1/+1
| | | |
| * | | Wallet: Replace pwalletMain with a vector of wallet pointersLuke Dashjr2017-06-061-13/+12
| | | |
| * | | CWalletDB: Store the update counter per walletLuke Dashjr2017-06-051-19/+9
| | | |
| * | | wallet: Move nAccountingEntryNumber from static/global to CWalletLuke Dashjr2017-06-051-9/+3
| | | |
| * | | Bugfix: wallet: Increment "update counter" when modifying account stuffLuke Dashjr2017-06-051-2/+2
| | | |
| * | | Bugfix: wallet: Increment "update counter" only after actually making the ↵Luke Dashjr2017-06-051-49/+29
| |/ / | | | | | | | | | | | | | | | applicable db changes to avoid potential races Also does all "update counter" access via IncrementUpdateCounter
* / / Remove unused Boost includespracticalswift2017-06-091-1/+0
|/ /
* | Merge #8329: Consensus: MOVEONLY: Move functions for tx verificationWladimir J. van der Laan2017-05-181-1/+1
|\ \ | |/ |/| | | | | | | 618d07f MOVEONLY: tx functions to consensus/tx_verify.o (Jorge Timón) Tree-SHA512: 63fa2777c070a344dbfe61974526a770d962e049881c6f371b0034b1682c1e6e24f47454f01ee35ded20ade34488e023d4467a05369662906b99a73bb5de8497
| * MOVEONLY: tx functions to consensus/tx_verify.oJorge Timón2017-04-061-1/+1
| | | | | | | | Functions related to transaction verification.
* | wallet: CWalletDB CDB composition not inheritanceWladimir J. van der Laan2017-04-201-42/+66
| | | | | | | | | | | | | | CWalletDB now contains a CDB instead of inheriting from it. This makes it easier to replace the internal transaction with a different database, without leaking through internals.
* | wallet: Introduce database handle wrapperWladimir J. van der Laan2017-04-201-2/+3
|/ | | | | | | | Abstract database handle from explicit strFilename into CWalletDBWrapper. Also move CWallet::Backup to db.cpp - as it deals with representation details this is a database specific operation.
* Replace uses of boost::filesystem with fsWladimir J. van der Laan2017-04-031-2/+2
| | | | | | | | | Step two in abstracting away boost::filesystem. To repeat this, simply run: ``` git ls-files \*.cpp \*.h | xargs sed -i 's/boost::filesystem/fs/g' ```
* Replace includes of boost/filesystem.h with fs.hWladimir J. van der Laan2017-04-031-1/+1
| | | | This is step one in abstracting the use of boost::filesystem.
* Change LogAcceptCategory to use uint32_t rather than sets of strings.Gregory Maxwell2017-04-011-1/+1
| | | | | | | | | | | | | | | | | This changes the logging categories to boolean flags instead of strings. This simplifies the acceptance testing by avoiding accessing a scoped static thread local pointer to a thread local set of strings. It eliminates the only use of boost::thread_specific_ptr outside of lockorder debugging. This change allows log entries to be directed to multiple categories and makes it easy to change the logging flags at runtime (e.g. via an RPC, though that isn't done by this commit.) It also eliminates the fDebug global. Configuration of unknown logging categories now produces a warning.
* Refactor: Remove using namespace <xxx> from wallet/Karl-Johan Alm2017-03-081-38/+36
|
* Rename FlushWalletDB -> CompactWalletDB, add function descriptionMatt Corallo2017-03-061-1/+1
|
* Use CScheduler for wallet flushing, remove ThreadFlushWalletDBMatt Corallo2017-03-061-25/+20
|
* [Wallet] refactor CWallet/CWalletDB/CDBJonas Schnelli2017-03-061-106/+36
| | | | | Try to hide CDB/bitdb behinde CWalletDB. Prepare for full wallet database abstraction.
* Merge #9143: Refactor ZapWalletTxes to avoid layer violationsWladimir J. van der Laan2017-03-021-9/+5
|\ | | | | | | | | | | 0165a56 Refactor ZapWalletTxes to avoid layer vialotions (Jonas Schnelli) Tree-SHA512: 51e3abbb866185817d14d685a65cb1070a7a60aa3db692670f3a5fdd328aad59afa765c5a6b13d9e8f6d219e735487f8c87998f2fb38fdd911c1fe19bea373b9
| * Refactor ZapWalletTxes to avoid layer vialotionsJonas Schnelli2017-01-241-9/+5
| |
* | Add missing cs_wallet lock that triggers new lock held assertionRussell Yanofsky2017-02-151-1/+1
| | | | | | | | | | | | | | | | A new AssertLockHeld(cs_wallet) call was added in commit a58370e "Dedup nTimeFirstKey update logic" (part of PR #9108). The lock held assertion will fail when loading prexisting wallets files from before the #9108 merge that have watch-only keys.
* | Use importmulti timestamp when importing watch only keysRussell Yanofsky2017-02-101-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | When importing a watch-only address over importmulti with a specific timestamp, the wallet's nTimeFirstKey is currently set to 1. After this change, the provided timestamp will be used and stored as metadata associated with watch-only key. This can improve wallet performance because it can avoid the need to scan the entire blockchain for watch only addresses when timestamps are provided. Also adds timestamp to validateaddress return value (needed for tests). Fixes #9034.
* | Dedup nTimeFirstKey update logicRussell Yanofsky2017-02-101-7/+2
| | | | | | | | | | | | | | Also make nTimeFirstKey member variable private. This is just a cleanup change, it doesn't change behavior in any significant way.
* | Merge #9227: Make nWalletDBUpdated atomic to avoid a potential race.Wladimir J. van der Laan2017-02-061-26/+40
|\ \ | |/ |/| | | d63ff62 Make nWalletDBUpdated atomic to avoid a potential race. (Patrick Strateman)
| * Make nWalletDBUpdated atomic to avoid a potential race.Patrick Strateman2016-12-211-26/+40
| |
* | Merge #9450: Increment MIT licence copyright header year on files modified ↵Wladimir J. van der Laan2017-01-041-1/+1
|\ \ | | | | | | | | | | | | | | | in 2016 27765b6 Increment MIT Licence copyright header year on files modified in 2016 (isle2983)
| * | Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | | | | | | | | | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* | | Merge #8776: Wallet refactoring leading up to multiwalletPieter Wuille2017-01-031-1/+2
|\ \ \ | |/ / |/| | | | | | | | 5394b39 Wallet: Split main logic from InitLoadWallet into CreateWalletFromFile (Luke Dashjr) fb0c934 Wallet: Let the interval-flushing thread figure out the filename (Luke Dashjr)
| * | Wallet: Let the interval-flushing thread figure out the filenameLuke Dashjr2016-11-111-1/+2
| |/
* / Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-021-1/+1
|/
* Move CWalletDB::ReorderTransactions to CWalletPatrick Strateman2016-10-301-77/+1
|
* Merge #8629: C++11: s/boost::scoped_ptr/std::unique_ptr/Wladimir J. van der Laan2016-09-021-2/+1
|\ | | | | | | cdd79eb C++11: s/boost::scoped_ptr/std::unique_ptr/ (Jorge Timón)
| * C++11: s/boost::scoped_ptr/std::unique_ptr/Jorge Timón2016-09-011-2/+1
| |
* | Do not shadow variables.Pavel Janík2016-08-311-3/+3
|/
* Merge #8564: [Wallet] remove unused code/conditions in ReadAtCursorPieter Wuille2016-08-291-4/+4
|\ | | | | | | beef966 [Wallet] remove unused code/conditions in ReadAtCursor (Jonas Schnelli)
| * [Wallet] remove unused code/conditions in ReadAtCursorJonas Schnelli2016-08-231-4/+4
| |
* | Merge #8445: Move CWallet::setKeyPool to private section of CWallet.Wladimir J. van der Laan2016-08-241-8/+2
|\ \ | |/ |/| | | | | 8680d3a Move wallet initialization logic from AppInit2 to CWallet::InitLoadWallet (Patrick Strateman) e86eb71 Move CWallet::setKeyPool to private section of CWallet (Patrick Strateman)
| * Move CWallet::setKeyPool to private section of CWalletPatrick Strateman2016-08-171-8/+2
| |
* | Use __func__ to get function name for output printingMarcoFalke2016-08-191-2/+2
|/
* Split CWallet::AddToWallet into AddToWallet and LoadToWallet.Patrick Strateman2016-07-291-1/+1
| | | | | This removes the fFromLoadWallet flag in AddToWallet. These were already effectively two methods.
* [Wallet] keep HD seed during salvagewalletJonas Schnelli2016-07-091-1/+1
|
* [Wallet] Add simplest BIP32/deterministic key generation implementationJonas Schnelli2016-05-311-0/+17
|