elements/src/wallet
Wladimir J. van der Laan 2ae58d5bfb
Merge #11864: Make CWallet::FundTransaction atomic
03a5dc9 [wallet] Make CWallet::FundTransaction atomic (João Barbosa)
95d4450 [wallet] Tidy up CWallet::FundTransaction (João Barbosa)

Pull request description:

  This PR fixes a race for `setLockedCoins` when `lockUnspents` is true. For instance, it should not be possible to use the same unspent in concurrent `fundrawtransaction` calls.

  Now the `cs_main` and `cs_wallet` locks are held during `CreateTransaction` and `LockCoin`(s). Also added some style nits around the change.

Tree-SHA512: ccf383c0c5f6db775655a3e9ccd200c3bd831a83afae2b7c389564c74f7227f5bea86a4775727de2c3603b188f383f8a12d3f9d6d94f7887865c31c94ce95ef6
2017-12-14 10:38:20 +01:00
..
test tests: move pwalletMain to wallet test fixture 2017-11-18 14:16:38 +01:00
coincontrol.h scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
crypter.cpp scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
crypter.h scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
db.cpp Merge #10574: Remove includes in .cpp files for things the corresponding .h file already included 2017-12-12 14:56:25 +01:00
db.h Add -walletdir parameter to specify custom wallet dir 2017-11-18 00:50:58 +13:00
feebumper.cpp scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
feebumper.h [wallet] Change feebumper from class to functions 2017-11-10 17:16:46 -05:00
fees.cpp scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
fees.h scripted-diff: Replace #include "" with #include <> (ryanofsky) 2017-11-16 08:23:01 +13:00
init.cpp Create walletdir if datadir doesn't exist and fix tests 2017-11-18 00:50:59 +13:00
init.h [trivial] fixup comment for VerifyWallets() 2017-09-07 16:22:11 -07:00
rpcdump.cpp clarify abortrescan rpc use 2017-11-22 14:06:53 -05:00
rpcwallet.cpp Merge #10493: Use range-based for loops (C++11) when looping over map elements 2017-11-30 17:10:05 -05:00
rpcwallet.h [wallet] Add RegisterWalletRPC() function to wallet/init.cpp 2017-09-07 16:21:26 -07:00
wallet.cpp Merge #11864: Make CWallet::FundTransaction atomic 2017-12-14 10:38:20 +01:00
wallet.h Split up key and script metadata for better type safety 2017-12-08 12:50:46 -05:00
walletdb.cpp Split up key and script metadata for better type safety 2017-12-08 12:50:46 -05:00
walletdb.h Add -walletdir parameter to specify custom wallet dir 2017-11-18 00:50:58 +13:00
walletutil.cpp Default walletdir is wallets/ if it exists 2017-11-18 00:50:59 +13:00
walletutil.h Add -walletdir parameter to specify custom wallet dir 2017-11-18 00:50:58 +13:00