[Wallet] remove unused code/conditions in ReadAtCursor#8564
Merged
sipa merged 1 commit intobitcoin:masterfrom Aug 29, 2016
Merged
[Wallet] remove unused code/conditions in ReadAtCursor#8564sipa merged 1 commit intobitcoin:masterfrom
sipa merged 1 commit intobitcoin:masterfrom
Conversation
Member
|
utACK beef966 |
Member
|
utACK |
Contributor
|
utACK beef966 |
sipa
added a commit
that referenced
this pull request
Aug 29, 2016
beef966 [Wallet] remove unused code/conditions in ReadAtCursor (Jonas Schnelli)
codablock
pushed a commit
to codablock/dash
that referenced
this pull request
Jan 9, 2018
…ursor beef966 [Wallet] remove unused code/conditions in ReadAtCursor (Jonas Schnelli)
codablock
pushed a commit
to codablock/dash
that referenced
this pull request
Jan 9, 2018
…ursor beef966 [Wallet] remove unused code/conditions in ReadAtCursor (Jonas Schnelli)
andvgal
pushed a commit
to energicryptocurrency/gen2-energi
that referenced
this pull request
Jan 6, 2019
…ursor beef966 [Wallet] remove unused code/conditions in ReadAtCursor (Jonas Schnelli)
random-zebra
added a commit
to PIVX-Project/PIVX
that referenced
this pull request
Nov 15, 2020
…refactor. 58504c2 [Wallet] refactor CWallet/CWalletDB/CDB (Round 2) (furszy) c16390d [Wallet] refactor CWallet/CWalletDB/CDB (Round 1) (furszy) 99adac0 C++11: s/boost::scoped_ptr/std::unique_ptr/ (furszy) 815773e use constant references for strings in functions in wallet/*.* (furszy) 24f1041 Do not shadow variables. (Pavel Janík) 6a0c59a wallet: Warn on unexpected EOF while salvaging wallet (Wladimir J. van der Laan) 12bc297 dbwrapper: Use new .data() method of CDataStream (Wladimir J. van der Laan) b0f0d91 streams: Remove special cases for ancient MSVC (Wladimir J. van der Laan) ba96777 streams: Add data() method to CDataStream (Wladimir J. van der Laan) 6ec0722 wallet: Use CDataStream.data() (Wladimir J. van der Laan) ca1a3b0 [Wallet] remove unused code/conditions in ReadAtCursor (Jonas Schnelli) fd259f3 remove unused classes from db.h (Philip Kaufmann) Pull request description: Upgrading the wallet, wallet db and db wrapper areas with several back ports and updates adaptations. List of PRs: * dashpay#5933 * bitcoin#7537 * bitcoin#8191 * bitcoin#8564 * bitcoin#8574 * bitcoin#8629 * bitcoin#9353 Note: Low priority PR, can be reviewing after merge Sapling and tier two PRs. I made it because we are pretty far from upstream in the db area and want to introduce some new functionality in the future that requires a more up-to-date db layer. ACKs for top commit: random-zebra: ACK 58504c2 and merging... Tree-SHA512: e5a700e855bcec20f0b74e41825ddc3a36b56a0cbe83212c93d212c06765254464999567b395584dfeb9d4b12999bc835d2e89949684d64b1503db36c53fd3c8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Long term goal should be to provide alternative database connectors for our wallet. I have worked out a flexible adaptor like pattern that would allow a drop-in-alternative/replacement for BDB (https://github.com/jonasschnelli/bitcoin/tree/2016/08/bdb_abstract_prework).
This is a small, easy-to-review trivial PR towards this direction.
CDB::ReadAtCursor()has some unused flags handling (which would be relative hard to abstract for other databases). It seems like it only used to set a filter for the key (DB_SET_RANGE).This removes unused code and simplifies
CDB::ReadAtCursor()logic.