aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.h
Commit message (Collapse)AuthorAgeFilesLines
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-902/+0
| | | | could once be renamed from /src/wallet to /src/legacywallet.
* c++11: MOVEONLY: break circular dependency in walletCory Fields2015-02-031-325/+323
| | | | | | | | | | | | | | | c++11 (libc++'s stdlib implementation anyway) doesn't allow for map types to be forward-declared. for example: class foo; std::map<int, foo> bar; // error, foo has not been defined. class foo{}; Since CWallet and CWalletTx are inter-dependent, but only std::map<*,CWalletTx> is used, forward-declare CWallet instead and define CWalletTx first. Despite the mangled git diff, this change only amounts to moving ~320 lines in a single chunk.
* c++11: MOVEONLY: move function definitions out of the headerCory Fields2015-02-031-185/+8
| | | | | These need to be moved out of the header in order to resolve a circular dependency between CWallet and CTxWallet. See next commit.
* Merge pull request #5732Wladimir J. van der Laan2015-02-031-1/+1
|\ | | | | | | 1371e6f Change "insane" to "absurd" (referring to high fees) in text strings and identifiers. (Daira Hopwood)
| * Change "insane" to "absurd" (referring to high fees) in text strings and ↵Daira Hopwood2015-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | identifiers. Note that this will also require translation changes in Transifex for the key "A fee higher than %1 is considered an insanely high fee." which is now "A fee higher than %1 is considered an absurdly high fee." Signed-off-by: Daira Hopwood <[email protected]>
* | Remove whitespaces before double colon in errors and logsPavel Janík2015-01-311-7/+7
|/
* Merge pull request #4805Wladimir J. van der Laan2015-01-261-2/+2
|\ | | | | | | 44bc988 [Wallet] Do not flush the wallet in AddToWalletIfInvolvingMe(..) (Cozz Lovan)
| * [Wallet] Do not flush the wallet in AddToWalletIfInvolvingMe(..)Cozz Lovan2014-10-031-2/+2
| |
* | Replace direct use of 0 with SetNull and IsNullWladimir J. van der Laan2015-01-051-1/+1
| | | | | | | | | | | | Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
* | Merge pull request #5485Wladimir J. van der Laan2014-12-231-0/+5
|\ \ | | | | | | | | | aa279d6 Enforce minRelayTxFee on wallet created tx and add a maxtxfee option. (Gregory Maxwell)
| * | Enforce minRelayTxFee on wallet created tx and add a maxtxfee option.Gregory Maxwell2014-12-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the minRelayTxFee was only enforced on user specified values. It was possible for smartfee to produce a fee below minRelayTxFee which would just result in the transaction getting stuck because it can't be relayed. This also introduces a maxtxfee option which sets an absolute maximum for any fee created by the wallet, with an intention of increasing user confidence that the automatic fees won't burn them. This was frequently a concern even before smartfees. If the configured fee policy won't even allow the wallet to meet the relay fee the transaction creation may be aborted.
* | | Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
|/ / | | | | | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* | Merge pull request #5399Wladimir J. van der Laan2014-12-101-1/+0
|\ \ | | | | | | | | | | | | 4be639e Use RPC_INVALID_PARAMETER instead of RPC_WALLET_ERROR for invalid amount. No return at the end of void function. (Pavel Janík) b93173d Move SendMoney() to rpcwallet.cpp. (Pavel Janík)
| * | Move SendMoney() to rpcwallet.cpp.Pavel Janík2014-12-021-1/+0
| | |
* | | MOVEONLY: core/ -> primitives/Luke Dashjr2014-12-031-2/+2
|/ /
* | [Wallet] Add global boolean whether to pay at least the custom fee ↵Cozz Lovan2014-11-191-0/+1
| | | | | | | | (default=true)
* | [Wallet] Add global boolean whether to send free transactions (default=true)Cozz Lovan2014-11-191-0/+1
| |
* | Merge pull request #5146Wladimir J. van der Laan2014-10-301-59/+79
|\ \ | | | | | | | | | 5b40d88 Update comments in wallet to be doxygen compatible (Michael Ford)
| * | Update comments in wallet to be doxygen compatibleMichael Ford2014-10-281-59/+79
| | |
* | | Merge pull request #5100Pieter Wuille2014-10-281-1/+3
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | 99f41b9 MOVEONLY: core.o -> core/block.o (jtimon) 561e9e9 MOVEONLY: Move script/compressor out of script and put CTxOutCompressor (from core) with it (jtimon) 999a2ab MOVEONLY: separate CTxUndo out of core (jtimon) 4a3587d MOVEONLY: Separate CTransaction and dependencies from core (jtimon) eda3733 MOVEONLY: Move CFeeRate and Amount constants to amount.o (jtimon)
| * | MOVEONLY: core.o -> core/block.ojtimon2014-10-271-1/+1
| | |
| * | MOVEONLY: Separate CTransaction and dependencies from corejtimon2014-10-271-0/+1
| | |
| * | MOVEONLY: Move CFeeRate and Amount constants to amount.ojtimon2014-10-271-0/+1
| | |
* | | Make CBlockIndex* returned by GetDepthInMainChain const.Daniel Kraft2014-10-241-4/+4
|/ / | | | | | | | | | | Make the CBlockIndex* (optionally) returned by GetDepthInMainChain const. This prevents accidental modification. The result is for reading its properties rather than modifying it.
* | Rename CWalletInterface to CValidationInterfacePieter Wuille2014-10-201-1/+1
| | | | | | | | It's useful for much more than wallets.
* | Merge pull request #4937Wladimir J. van der Laan2014-10-131-7/+27
|\ \ | | | | | | | | | ccca27a [Wallet] Watch-only fixes (Cozz Lovan)
| * | [Wallet] Watch-only fixesCozz Lovan2014-10-031-7/+27
| |/
* | Merge pull request #4996Pieter Wuille2014-10-081-0/+8
|\ \ | |/ |/| | | | | | | d0c4197 change exit(1) to an assert in CWallet::EncryptWallet (Philip Kaufmann) 870da77 fix possible memory leaks in CWallet::EncryptWallet (Philip Kaufmann) f606bb9 fix a possible memory leak in CWalletDB::Recover (Philip Kaufmann)
| * fix possible memory leaks in CWallet::EncryptWalletPhilip Kaufmann2014-10-011-0/+8
| | | | | | | | | | | | | | - add missing deletes for pwalletdbEncryption - add an assert before trying to reserve memory for pwalletdbEncryption - add a destructor to CWallet, which ensures deletion of pwalletdbEncryption on object destruction
* | Use a typedef for monetary valuesMark Friedenbach2014-09-261-50/+50
|/
* Merge pull request #4787Wladimir J. van der Laan2014-09-221-1/+1
|\ | | | | | | 4b0deb3 Clean up CMerkleTx::SetMerkleBranch. (Daniel Kraft)
| * Clean up CMerkleTx::SetMerkleBranch.Daniel Kraft2014-08-301-1/+1
| | | | | | | | | | | | The case SetMerkleBranch(NULL) was never actually used, and thus the involved code (loading the block from disk) can be removed and the implementation simplified.
* | header include cleanupPhilip Kaufmann2014-09-141-1/+1
| | | | | | | | - ensures alphabetical ordering for includes etc. in source file headers
* | Rename scriptutils.o to wallet_ismine.ojtimon2014-09-101-1/+1
| |
* | Separate script/standardjtimon2014-09-081-0/+1
| |
* | Rename IMPLEMENT_SERIALIZE to ADD_SERIALIZE_METHODSPieter Wuille2014-09-021-6/+6
| |
* | Serializer simplifications after IMPLEMENT_SERIALIZE overhaulPieter Wuille2014-09-011-25/+19
| |
* | Merge pull request #4737Pieter Wuille2014-09-011-28/+41
|\ \ | | | | | | | | | | | | | | | | | | 31e9a83 Use CSizeComputer to avoid counting sizes in SerializationOp (Pieter Wuille) 84881f8 rework overhauled serialization methods to non-static (Kamil Domanski) 5d96b4a remove fields of ser_streamplaceholder (Kamil Domanski) 3d796f8 overhaul serialization code (Kamil Domanski)
| * | Use CSizeComputer to avoid counting sizes in SerializationOpPieter Wuille2014-08-311-32/+16
| | |
| * | rework overhauled serialization methods to non-staticKamil Domanski2014-08-311-51/+51
| | | | | | | | | | | | | | | | | | | | | Thanks to Pieter Wuille for most of the work on this commit. I did not fixup the overhaul commit, because a rebase conflicted with "remove fields of ser_streamplaceholder". I prefer not to risk making a mistake while resolving it.
| * | overhaul serialization codeKamil Domanski2014-08-311-47/+76
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation of each class' serialization/deserialization is no longer passed within a macro. The implementation now lies within a template of form: template <typename T, typename Stream, typename Operation> inline static size_t SerializationOp(T thisPtr, Stream& s, Operation ser_action, int nType, int nVersion) { size_t nSerSize = 0; /* CODE */ return nSerSize; } In cases when codepath should depend on whether or not we are just deserializing (old fGetSize, fWrite, fRead flags) an additional clause can be used: bool fRead = boost::is_same<Operation, CSerActionUnserialize>(); The IMPLEMENT_SERIALIZE macro will now be a freestanding clause added within class' body (similiar to Qt's Q_OBJECT) to implement GetSerializeSize, Serialize and Unserialize. These are now wrappers around the "SerializationOp" template.
* | Merge pull request #4779Wladimir J. van der Laan2014-09-011-1/+2
|\ \ | |/ |/| | | 093303a add missing header end comments (Philip Kaufmann)
| * add missing header end commentsPhilip Kaufmann2014-08-281-1/+2
| | | | | | | | | | | | - ensures a consistent usage in header files - also add a blank line after the copyright header where missing - also remove orphan new-lines at the end of some files
* | Move CMerkleTx to wallet.cpp/hWladimir J. van der Laan2014-08-291-0/+57
| | | | | | | | It is only used by the wallet so it has no place in main.
* | Fix a few "Uninitialized scalar field" warningsWladimir J. van der Laan2014-08-281-0/+1
|/ | | | | | Fix a few warnings reported by Coverity. None of these is critical, but making sure that class fields are initialized can avoid heisenbugs.
* Merge pull request #4673Wladimir J. van der Laan2014-08-261-0/+3
|\ | | | | | | | | 1c5f0af [Qt] Add column Watch-only to transactions list (Cozz Lovan) 939ed97 Add boolean HaveWatchonly and signal NotifyWatchonlyChanged (Cozz Lovan)
| * Add boolean HaveWatchonly and signal NotifyWatchonlyChangedCozz Lovan2014-08-111-0/+3
| |
* | Split up util.cpp/hWladimir J. van der Laan2014-08-261-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
* | Move functions in wallet.h to implementation fileWladimir J. van der Laan2014-08-261-15/+3
| | | | | | | | Breaks compile-time dependency of wallet.h on util.
* | Remove all other print() methodsWladimir J. van der Laan2014-08-201-5/+0
| | | | | | | | All unused.