aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.cpp
Commit message (Collapse)AuthorAgeFilesLines
* really s/doge/dis/g this timeTomo Ueda2021-09-021-1/+1
|
* Introduce basic Dogecoin brandingRoss Nicoll2019-03-251-1/+1
|
* 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
|
* Move BackupWallet to CWallet::BackupWalletPatrick Strateman2016-05-161-40/+0
|
* Fix insanity of CWalletDB::WriteTx and CWalletTx::WriteToDiskPatrick Strateman2016-05-091-5/+5
|
* Added companion removeprunedfunds call.instagibbs2016-03-231-0/+39
|
* [wallet] Move hardcoded file name out of log messagesMarcoFalke2016-03-141-9/+9
|
* c++11: add scoped enum fallbacks to CPPFLAGS rather than defining them locallyCory Fields2016-01-081-5/+0
| | | | | | | Due to include ordering, defining in one place was not enough to ensure correct usage. Use global defines so that we don't have to worry abou this ordering. Also add a comment in configure about the test.
* Merge pull request #7229Wladimir J. van der Laan2016-01-071-1/+6
|\ | | | | | | | | | | fa33d97 [walletdb] Add missing LOCK() in Recover() for dummyWallet (MarcoFalke) fa14d99 [qa] check if wallet or blochchain maintenance changes the balance (MarcoFalke) fa0765d [qa] Cleanup wallet.py test (MarcoFalke)
| * [walletdb] Add missing LOCK() in Recover() for dummyWalletMarcoFalke2015-12-191-1/+6
| |
* | c++11: detect and correct for boost builds with an incompatible abiCory Fields2016-01-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is ugly, but temporary. boost::filesystem will likely be dropped soon after c++11 is enabled. Otherwise, we could simply roll our own copy_file. I've fixed this at the buildsystem level for now in order to avoid mixing in functional changes. Explanation: If boost (prior to 1.57) was built without c++11, it emulated scoped enums using c++98 constructs. Unfortunately, this implementation detail leaked into the abi. This was fixed in 1.57. When building against that installed version using c++11, the headers pick up on the native c++11 scoped enum support and enable it, however it will fail to link. This can be worked around by disabling c++11 scoped enums if linking will fail. Add an autoconf test to determine incompatibility. At build-time, if native enums are being used (a c++11 build), and force-disabling them causes a successful link, we can be sure that there's an incompatibility and enable the work-around.
* | Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|/
* Merge pull request #6914Wladimir J. van der Laan2015-12-011-5/+5
|\ | | | | | | 114b581 Prevector type (Pieter Wuille)
| * Prevector typePieter Wuille2015-11-131-5/+5
| |
* | Constrain constant values to a single location in codeLuke Dashjr2015-11-281-1/+1
| |
* | Optimisation: Store transaction list order in memory rather than compute it ↵Luke Dashjr2015-11-211-1/+7
|/ | | | | | every need Huge performance improvement (450%) for zapwallettxes
* Reject invalid pubkeys when reading ckey items from the wallet.Gregory Maxwell2015-10-291-1/+6
| | | | | This makes the behavior more consistent with key objects and will reject some corrupted pubkeys (e.g. zero length).
* Do not store Merkle branches in the wallet.Pieter Wuille2015-09-221-2/+4
| | | | | | | | | | Assume that when a wallet transaction has a valid block hash and transaction position in it, the transaction is actually there. We're already trusting wallet data in a much more fundamental way anyway. To prevent backward compatibility issues, a new record is used for storing the block locator in the wallet. Old wallets will see a wallet file synchronized up to the genesis block, and rescan automatically.
* Includes: Cleanup around net main and walletJorge Timón2015-07-231-1/+1
| | | | | | -Move from .h to .cpp: in main, net and wallet -Remove unnecessary #include "main.h" -Cleanup some wallet files includes
* Merge pull request #5669Wladimir J. van der Laan2015-05-271-0/+1
|\ | | | | | | | | da29ecb Consensus: MOVEONLY: Move CValidationState from main consensus/validation (jtimon) 27afcd8 Consensus: Refactor: Decouple CValidationState from main::AbortNode() (Cory Fields)
| * Consensus: MOVEONLY: Move CValidationState from main consensus/validationjtimon2015-05-151-0/+1
| |
* | minor: remove unneeded bool in CWalletDB::RecoverPhilip Kaufmann2015-05-141-2/+1
|/
* Includes: Do not include main.h from any other headerJorge Timón2015-03-241-0/+1
|
* use constant references for strings in functions in wallet/*.*Philip Kaufmann2015-03-211-2/+2
|
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-0/+986
could once be renamed from /src/wallet to /src/legacywallet.