Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Oct 26, 2020

Upgrading the wallet, wallet db and db wrapper areas with several back ports and updates adaptations.

List of PRs:

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.

@furszy furszy self-assigned this Oct 26, 2020
@furszy furszy force-pushed the 2020_wallet_db_upgrades branch from 3e06b3d to 46e1f3a Compare October 28, 2020 20:37
@furszy furszy added the Wallet label Nov 5, 2020
@furszy furszy added this to the 5.0.0 milestone Nov 5, 2020
@furszy
Copy link
Author

furszy commented Nov 6, 2020

This is ready to go. the only job that is timing out is the 32-bit one because this hasn't been rebased on master after the unit test reordering.

Update: rebased on master.

@furszy furszy force-pushed the 2020_wallet_db_upgrades branch from 46e1f3a to 5045acd Compare November 6, 2020 21:12
@furszy furszy requested a review from Fuzzbawls November 7, 2020 21:30
Philip Kaufmann and others added 12 commits November 11, 2020 20:21
Analogous to c++11 vector data().
Quite sure that we haven't supported MSVC 6.0 for ages (MSC_VER 1300 is
>= MSVC++ 7.0) but with the C++11 switch we can be sure.
Check for EOF before every getline, and warn when reading gets to EOF
before the end of the data.

Stricter error checking could shed more light on issues such as bitcoin#7463
and bitcoin#7379.
Try to hide CDB/bitdb behinde CWalletDB. Prepare for full wallet database abstraction.

An adapted version of btc@7184e25c80aa8b1629a700bb7a7e290ad0bb2792
Focused on the ThreadFlushWalletDB/PeriodicFlush area.

An adapted version of btc@7184e25c80aa8b1629a700bb7a7e290ad0bb2792
@furszy furszy force-pushed the 2020_wallet_db_upgrades branch from 5045acd to 58504c2 Compare November 11, 2020 23:22
@furszy
Copy link
Author

furszy commented Nov 11, 2020

rebased on top of master.

random-zebra added a commit that referenced this pull request Nov 12, 2020
c369cb8 Remove more unused boost includes (Fuzzbawls)
ab674a0 Remove useless threadGroup parameter from Discover (Fuzzbawls)
2e82dbd Drop boost threads for upnp (Fuzzbawls)
3d96079 Drop boost threads for [alert|blocksize|wallet]notify (Fuzzbawls)
c01468a Drop boost threads for torcontrol (Fuzzbawls)
27bc007 Remove unused boost includes from util.cpp (Fuzzbawls)
4bc6cee Make fs::path::string() always return utf-8 string on Windows (Fuzzbawls)
b371321 utils: run commands using utf-8 string on Windows (Fuzzbawls)
19f3ee9 Avoid boost dynamic_bitset in rest_getutxos (Fuzzbawls)
1bda012 Remove un-necessary boost includes from sapling_rpc_wallet_tests.cpp (Fuzzbawls)
e8b9947 Use std::function instead of boost::function in txdb (Fuzzbawls)
cf83a73 Remove the Boost case_conv.hpp dependency (Fuzzbawls)
5928d40 Add custom tolower/toupper functions (Fuzzbawls)
2f8b7a1 Implement ParseNetwork unit test (Fuzzbawls)
c078e1d Remove unused Boost iostreams dependencies (Fuzzbawls)
13eb566 Use c++11 std::unique_ptr instead of boost::shared_ptr (Fuzzbawls)
27c4a8e Remove Boost dependency (static_assert.hpp) (Fuzzbawls)
6c4b4c1 Remove unused Boost dependency (version.hpp) (Fuzzbawls)
223a0a6 Remove unused boost dependency posix_time_types.hpp (Fuzzbawls)
e2cf078 Remove two unused boost dependencies (Fuzzbawls)
66fabf9 Remove Boost predicate.hpp dependency (Fuzzbawls)

Pull request description:

  This removes the dependency on Boost for a number of things that either have a direct c++11 equivalent, or could have a custom function dropped in with minimal effort. Also removes a number of unused boost header includes.

  I didn't replace Boost's `scoped_ptr` with c++11's `scoped_ptr` as that is already being done in #1943.

  I also decided to not replace `boost::assign::[map_]list_of` here as its more invasive and better suited for it's own PR.

ACKs for top commit:
  furszy:
    code reviewed, utACK c369cb8 .
  random-zebra:
    utACK c369cb8 and merging...

Tree-SHA512: 48508868b4760277a0f6f2477e826a4b6a4654bd2e11e322056476cd5869ad8190ce4518a00435e982ef6ad06fe8a9795ab4bcbb5107fa8c947ed92e2c0f48ab
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 58504c2 and merging...

@random-zebra random-zebra merged commit 46fad30 into PIVX-Project:master Nov 15, 2020
@furszy furszy deleted the 2020_wallet_db_upgrades branch November 29, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants