aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-2564/+0
| | | | could once be renamed from /src/wallet to /src/legacywallet.
* c++11: MOVEONLY: move function definitions out of the headerCory Fields2015-02-031-0/+187
| | | | | 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-2/+2
|\ | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | 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]>
* | Merge pull request #5675Wladimir J. van der Laan2015-02-031-2/+6
|\ \ | | | | | | | | | 2d9b0b7 Fix priority calculation in CreateTransaction (Alex Morcos)
| * | Fix priority calculation in CreateTransactionAlex Morcos2015-01-161-2/+6
| | | | | | | | | | | | Make this projection of priority in 1 block match the calculation in the low priority reject code.
* | | Remove whitespaces before double colon in errors and logsPavel Janík2015-01-311-9/+9
| |/ |/|
* | Merge pull request #4805Wladimir J. van der Laan2015-01-261-8/+14
|\ \ | |/ |/| | | 44bc988 [Wallet] Do not flush the wallet in AddToWalletIfInvolvingMe(..) (Cozz Lovan)
| * [Wallet] Do not flush the wallet in AddToWalletIfInvolvingMe(..)Cozz Lovan2014-10-031-8/+14
| |
* | Replace direct use of 0 with SetNull and IsNullWladimir J. van der Laan2015-01-051-5/+5
| | | | | | | | | | | | Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
* | Merge pull request #5508Pieter Wuille2015-01-041-1/+0
|\ \ | | | | | | | | | 146c0a7 Add RandAddSeedPerfmon to MakeNewKey (21E14)
| * | Add RandAddSeedPerfmon to MakeNewKey21E142014-12-181-1/+0
| | |
* | | Merge pull request #5485Wladimir J. van der Laan2014-12-231-19/+28
|\ \ \ | | | | | | | | | | | | 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-19/+28
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #2340Wladimir J. van der Laan2014-12-191-1/+27
|\ \ \ | |/ / |/| | | | | ba7fcc8 Discourage fee sniping with nLockTime (Peter Todd)
| * | Discourage fee sniping with nLockTimePeter Todd2014-10-131-1/+27
| | |
* | | Move SendMoney() to rpcwallet.cpp.Pavel Janík2014-12-021-40/+0
| | |
* | | [Qt] Fix wallet-lock in CWallet::GetAccountAddresses(..)Cozz Lovan2014-11-291-1/+1
| | |
* | | Merge pull request #5209Wladimir J. van der Laan2014-11-261-1/+1
|\ \ \ | | | | | | | | | | | | 9b1627d [Wallet] Reduce minTxFee for transaction creation to 1000 satoshis (Cozz Lovan)
| * | | [Wallet] Reduce minTxFee for transaction creation to 1000 satoshisCozz Lovan2014-11-041-1/+1
| | | |
* | | | Add sanity check after key generationPieter Wuille2014-11-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a sanity check to prevent cosmic rays from flipping a bit in the generated public key, or bugs in the elliptic curve code. This is simply done by signing a (randomized) message, and verifying the result.
* | | | [Qt] Add Smartfee to GUICozz Lovan2014-11-191-5/+5
| | | |
* | | | [Wallet] Prevent user from paying a non-sense feeCozz Lovan2014-11-191-0/+3
| | | |
* | | | [Wallet] Add global boolean whether to pay at least the custom fee ↵Cozz Lovan2014-11-191-1/+5
| | | | | | | | | | | | | | | | (default=true)
* | | | [Wallet] Add global boolean whether to send free transactions (default=true)Cozz Lovan2014-11-191-1/+2
| | | |
* | | | Make sure that GetRandomBytes never failsWladimir J. van der Laan2014-11-071-4/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | We're using GetRandomBytes in several contexts where it's either unwieldy to return an error, or an error would mean a fatal exception anyhow. @gmaxwell checked OpenSSL a while ago and discovered that it never actually fails, but it can't hurt to be a bit paranoid here.
* | | Update comments in wallet to be doxygen compatibleMichael Ford2014-10-281-30/+46
| | |
* | | Make CBlockIndex* returned by GetDepthInMainChain const.Daniel Kraft2014-10-241-2/+2
| | | | | | | | | | | | | | | | | | Make the CBlockIndex* (optionally) returned by GetDepthInMainChain const. This prevents accidental modification. The result is for reading its properties rather than modifying it.
* | | script: move CScriptID to standard.h and add a ctor for creating them from ↵Cory Fields2014-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CScripts This allows for a reversal of the current behavior. This: CScript foo; CScriptID bar(foo.GetID()); Becomes: CScript foo; CScriptID bar(foo); This way, CScript is no longer dependent on CScriptID or Hash();
* | | Merge pull request #4937Wladimir J. van der Laan2014-10-131-0/+21
|\ \ \ | |/ / |/| | | | | ccca27a [Wallet] Watch-only fixes (Cozz Lovan)
| * | [Wallet] Watch-only fixesCozz Lovan2014-10-031-0/+21
| |/
* | Merge pull request #4996Pieter Wuille2014-10-081-6/+20
|\ \ | |/ |/| | | | | | | 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)
| * change exit(1) to an assert in CWallet::EncryptWalletPhilip Kaufmann2014-10-011-2/+4
| |
| * fix possible memory leaks in CWallet::EncryptWalletPhilip Kaufmann2014-10-011-6/+18
| | | | | | | | | | | | | | - 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-54/+54
|/
* Merge pull request #4787Wladimir J. van der Laan2014-09-221-32/+18
|\ | | | | | | 4b0deb3 Clean up CMerkleTx::SetMerkleBranch. (Daniel Kraft)
| * Clean up CMerkleTx::SetMerkleBranch.Daniel Kraft2014-08-301-32/+18
| | | | | | | | | | | | 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.
* | Move CTxDestination from script/script to script/standardPieter Wuille2014-09-161-4/+3
| |
* | Merge pull request #4825Pieter Wuille2014-09-161-4/+4
|\ \ | | | | | | | | | 8d657a6 Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false' (ENikS)
| * | Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'ENikS2014-09-061-4/+4
| |/
* | Move CAffectedKeysVisitor to wallet.cpp (remove ExtractAffectedKeys)jtimon2014-09-101-1/+34
| |
* | Merge pull request #4868Pieter Wuille2014-09-091-1/+1
|\ \ | | | | | | | | | | | | 2c2cc5d Remove some unnecessary c_strs() in logging and the GUI (Philip Kaufmann) f7d0a86 netbase: Use .data() instead of .c_str() on binary string (Wladimir J. van der Laan)
| * | Remove some unnecessary c_strs() in logging and the GUIPhilip Kaufmann2014-09-091-1/+1
| | | | | | | | | | | | | | | Includes `core: remove unneeded c_str() / Qt: replace c_str() with Qt code` by P. Kaufmann.
* | | Separate script/signjtimon2014-09-081-0/+2
|/ /
* / Introduce BlockMap type for mapBlockIndexPieter Wuille2014-09-041-3/+3
|/
* Move CMerkleTx to wallet.cpp/hWladimir J. van der Laan2014-08-291-0/+99
| | | | It is only used by the wallet so it has no place in main.
* Merge pull request #4673Wladimir J. van der Laan2014-08-261-0/+1
|\ | | | | | | | | 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/+1
| |
* | Split up util.cpp/hWladimir J. van der Laan2014-08-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.