-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Fix for mismatched extern definition in wallet tests #11713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
… breaking msvc linking.
Ouch. utACK |
Defined as: src/wallet/test/wallet_test_fixture.cpp:std::unique_ptr<CWallet> pwalletMain; Correct, good catch. Anyhow utACK f94c2ec |
laanwj
added a commit
that referenced
this pull request
Nov 18, 2017
f94c2ec Fix for mismatched extern definition in wallet test classes which was breaking msvc linking. (Aaron Clauson) Pull request description: The extern declarations are using a raw pointer which doesn't match the source variable's std::unqiue_ptr. Tree-SHA512: 1500ffa1282ee6565741bf2f8f9def68a355346c8e4a667e1167d3d550eb0b732e8cba52fbef380a92c860e686d36da877d800ee5f2fc1e4dd8fd88fbe170644
laanwj
added a commit
to laanwj/bitcoin
that referenced
this pull request
Nov 18, 2017
Scope the variable instead of using an external global; this is how test fixtures are intended to be used. Followup to bitcoin#11713.
laanwj
added a commit
that referenced
this pull request
Nov 19, 2017
49bd659 tests: move pwalletMain to wallet test fixture (Wladimir J. van der Laan) Pull request description: Scope the variable instead of using an external global; this is how test fixtures are intended to be used. Followup to #11713. Tree-SHA512: 7d5bda93cdfe1329c8fe39bd72965906e36dad72fbb5d344ebedf26e66b1857510d01a3c2872d7f718fdeb23365e6ba71991aafe68e82781c6767a086b6d1590
HashUnlimited
pushed a commit
to chaincoin/chaincoin
that referenced
this pull request
Mar 13, 2018
Scope the variable instead of using an external global; this is how test fixtures are intended to be used. Followup to bitcoin#11713.
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Jan 17, 2020
…ests f94c2ec Fix for mismatched extern definition in wallet test classes which was breaking msvc linking. (Aaron Clauson) Pull request description: The extern declarations are using a raw pointer which doesn't match the source variable's std::unqiue_ptr. Tree-SHA512: 1500ffa1282ee6565741bf2f8f9def68a355346c8e4a667e1167d3d550eb0b732e8cba52fbef380a92c860e686d36da877d800ee5f2fc1e4dd8fd88fbe170644
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Jan 22, 2020
…ests f94c2ec Fix for mismatched extern definition in wallet test classes which was breaking msvc linking. (Aaron Clauson) Pull request description: The extern declarations are using a raw pointer which doesn't match the source variable's std::unqiue_ptr. Tree-SHA512: 1500ffa1282ee6565741bf2f8f9def68a355346c8e4a667e1167d3d550eb0b732e8cba52fbef380a92c860e686d36da877d800ee5f2fc1e4dd8fd88fbe170644
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Jan 22, 2020
…ests f94c2ec Fix for mismatched extern definition in wallet test classes which was breaking msvc linking. (Aaron Clauson) Pull request description: The extern declarations are using a raw pointer which doesn't match the source variable's std::unqiue_ptr. Tree-SHA512: 1500ffa1282ee6565741bf2f8f9def68a355346c8e4a667e1167d3d550eb0b732e8cba52fbef380a92c860e686d36da877d800ee5f2fc1e4dd8fd88fbe170644
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Jan 29, 2020
…ests f94c2ec Fix for mismatched extern definition in wallet test classes which was breaking msvc linking. (Aaron Clauson) Pull request description: The extern declarations are using a raw pointer which doesn't match the source variable's std::unqiue_ptr. Tree-SHA512: 1500ffa1282ee6565741bf2f8f9def68a355346c8e4a667e1167d3d550eb0b732e8cba52fbef380a92c860e686d36da877d800ee5f2fc1e4dd8fd88fbe170644
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Jan 29, 2020
…ests f94c2ec Fix for mismatched extern definition in wallet test classes which was breaking msvc linking. (Aaron Clauson) Pull request description: The extern declarations are using a raw pointer which doesn't match the source variable's std::unqiue_ptr. Tree-SHA512: 1500ffa1282ee6565741bf2f8f9def68a355346c8e4a667e1167d3d550eb0b732e8cba52fbef380a92c860e686d36da877d800ee5f2fc1e4dd8fd88fbe170644
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Jan 29, 2020
…ests f94c2ec Fix for mismatched extern definition in wallet test classes which was breaking msvc linking. (Aaron Clauson) Pull request description: The extern declarations are using a raw pointer which doesn't match the source variable's std::unqiue_ptr. Tree-SHA512: 1500ffa1282ee6565741bf2f8f9def68a355346c8e4a667e1167d3d550eb0b732e8cba52fbef380a92c860e686d36da877d800ee5f2fc1e4dd8fd88fbe170644
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Feb 13, 2020
49bd659 tests: move pwalletMain to wallet test fixture (Wladimir J. van der Laan) Pull request description: Scope the variable instead of using an external global; this is how test fixtures are intended to be used. Followup to bitcoin#11713. Tree-SHA512: 7d5bda93cdfe1329c8fe39bd72965906e36dad72fbb5d344ebedf26e66b1857510d01a3c2872d7f718fdeb23365e6ba71991aafe68e82781c6767a086b6d1590
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Feb 27, 2020
49bd659 tests: move pwalletMain to wallet test fixture (Wladimir J. van der Laan) Pull request description: Scope the variable instead of using an external global; this is how test fixtures are intended to be used. Followup to bitcoin#11713. Tree-SHA512: 7d5bda93cdfe1329c8fe39bd72965906e36dad72fbb5d344ebedf26e66b1857510d01a3c2872d7f718fdeb23365e6ba71991aafe68e82781c6767a086b6d1590
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Mar 14, 2020
49bd659 tests: move pwalletMain to wallet test fixture (Wladimir J. van der Laan) Pull request description: Scope the variable instead of using an external global; this is how test fixtures are intended to be used. Followup to bitcoin#11713. Tree-SHA512: 7d5bda93cdfe1329c8fe39bd72965906e36dad72fbb5d344ebedf26e66b1857510d01a3c2872d7f718fdeb23365e6ba71991aafe68e82781c6767a086b6d1590
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Mar 21, 2020
49bd659 tests: move pwalletMain to wallet test fixture (Wladimir J. van der Laan) Pull request description: Scope the variable instead of using an external global; this is how test fixtures are intended to be used. Followup to bitcoin#11713. Tree-SHA512: 7d5bda93cdfe1329c8fe39bd72965906e36dad72fbb5d344ebedf26e66b1857510d01a3c2872d7f718fdeb23365e6ba71991aafe68e82781c6767a086b6d1590
PastaPastaPasta
pushed a commit
to PastaPastaPasta/dash
that referenced
this pull request
Mar 24, 2020
49bd659 tests: move pwalletMain to wallet test fixture (Wladimir J. van der Laan) Pull request description: Scope the variable instead of using an external global; this is how test fixtures are intended to be used. Followup to bitcoin#11713. Tree-SHA512: 7d5bda93cdfe1329c8fe39bd72965906e36dad72fbb5d344ebedf26e66b1857510d01a3c2872d7f718fdeb23365e6ba71991aafe68e82781c6767a086b6d1590
random-zebra
added a commit
to PIVX-Project/PIVX
that referenced
this pull request
May 17, 2021
4734a84 [Cleanup][Tests] Fix chainparams-change in librust tests (random-zebra) ff4cee0 [Trivial] Add wallet filename to backup errors/warning (random-zebra) dc596f3 [Doc] Add multiwallet section to release notes (random-zebra) 36796f2 [Cleanup] Fix formatting in wallet and walletdb (random-zebra) b6dbbf3 wallet: Forbid -salvagewallet, -zapwallettxes, and -upgradewallet with multiple wallets (random-zebra) 60f9b4b wallet: Base backup filenames on original wallet filename (Luke Dashjr) e6efa6b wallet: Include actual backup filename in recovery warning message (Luke Dashjr) 647fbc9 Wallet: Move multiwallet sanity checks to CWallet::Verify, and do other checks on all wallets (Luke Dashjr) b27dcfe Wallet: Support loading multiple wallets if -wallet used more than once (Luke Dashjr) d10acd5 [Tests] move pwalletMain to wallet test fixture + use smart pointer (random-zebra) d6cf608 [Refactor] Remove CWalletDBWrapper::GetUpdateCounter() (random-zebra) 4bbad5c [Wallet] Replace pwalletMain with a vector of wallet pointers (random-zebra) 100d67c Wallet: Sanitise -wallet parameter (Luke Dashjr) 3bfa7d8 Wallet/RPC: Use filename rather than CWallet pointer, for lockwallet RPCRunLater job name (Luke Dashjr) ca6a62d [MOVE-ONLY] Move wallet RPC declarations to rpcwallet.h (random-zebra) 687c2fd RPC: Pass on JSONRPCRequest metadata (URI/user/etc) for "help" method (Luke Dashjr) cc965fe Move nWalletUnlockTime to CWallet::nRelockTime, and name timed task unique per CWallet (Luke Dashjr) 22f8507 [Trivial] Rename pwalletMain --> pwallet for local variables in RPC (random-zebra) 325baaa RPC: Do all wallet access through new GetWalletForJSONRPCRequest (random-zebra) 0e21e09 [Cleanup] Remove un-used printAddresses() function in rpcwallet (random-zebra) a8dd236 RPC/Wallet: Pass CWallet as pointer to helper functions (random-zebra) fb64bbc [Doc] Remove ThreadFlushWalletDB from developer notes (random-zebra) dc2e022 [Refactor] fix WalletTestingSetup fixture (random-zebra) f9d7fe1 refactor: move bdb (bitdb) interaction from init.cpp to wallet.cpp (random-zebra) 9cfb711 CWalletDB: Store the update counter per wallet (Luke Dashjr) 8edb74f Bug: increment counter when writing minversion (random-zebra) 8aa93b9 Bugfix: wallet: Increment "update counter" only after actually making the applicable db changes to avoid potential races (Luke Dashjr) Pull request description: Quite a bit of refactoring to bring us a little closer to upstream in the wallet/walletdb area, introducing basic support for multiple wallets. The PIVX client can now be started with more than one `-wallet` argument (either as startup flags, or as multiple lines in pivx.conf). The wallets will be all loaded and kept separated, with individual balances, keys and received transactions. Even though only the first wallet will be used in the GUI/RPC for the moment (selectable wallets will be added later), all other loaded wallets will remain synchronized to the node's current tip and update their internal data. Bulk of changes coming from: - bitcoin#8775 RPC refactoring: Access wallet using new GetWalletForJSONRPCRequest - bitcoin#8694 Basic multiwallet support - bitcoin#11713 Fix for mismatched extern definition in wallet tests - bitcoin#11781 tests: move pwalletMain to wallet test fixture ACKs for top commit: furszy: Code ACK 4734a84 after rebase and inclusion of 4734a84. Tree-SHA512: 483fc34310c86070ffde08487605b25da957e55fbc8ef1b9cc1f682c6af0789619bb40839e915618d603097a1bdcf6b2110c7fabf017f8351b3a426976ca77a9
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.
The extern declarations are using a raw pointer which doesn't match the source variable's std::unqiue_ptr.