aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix missing includes needed for Boost 1.46.Shane Wegner2011-06-191-0/+1
| |
* | CWallet classPieter Wuille2011-06-151-122/+134
| | | | | | | | | | | | | | | | | | | | | | | | * A new class CKeyStore manages private keys, and script.cpp depends on access to CKeyStore. * A new class CWallet extends CKeyStore, and contains all former wallet-specific globals; CWallet depends on script.cpp, not the other way around. * Wallet-specific functions in CTransaction/CTxIn/CTxOut (GetDebit, GetCredit, GetChange, IsMine, IsFromMe), are moved to CWallet, taking their former 'this' argument as an explicit parameter * CWalletTx objects know which CWallet they belong to, for convenience, so they have their own direct (and caching) GetDebit/... functions. * Some code was moved from CWalletDB to CWallet, such as handling of reserve keys. * Main.cpp keeps a set of all 'registered' wallets, which should be informed about updates to the block chain, and does not have any notion about any 'main' wallet. Function in main.cpp that require a wallet (such as GenerateCoins), take an explicit CWallet* argument. * The actual CWallet instance used by the application is defined in init.cpp as "CWallet* pwalletMain". rpc.cpp and ui.cpp use this variable. * Functions in main.cpp and db.cpp that are not used by other modules are marked static. * The code for handling the 'submitorder' message is removed, as it not really compatible with the idea that a node is independent from the wallet(s) connected to it, and obsolete anyway.
* | move wallet code to separate filePieter Wuille2011-06-151-1116/+165
|/ | | | | | This introduces two new source files, keystore.cpp and wallet.cpp with corresponding headers. Code is moved from main and db, in a preparation for a follow-up commit which introduces the classes CWallet and CKeyStore.
* Merge pull request #226 from jordanlewis/betterheadersJeff Garzik2011-06-141-0/+4
|\ | | | | Optimize header dependencies; improve Makefile dependency graph
| * Only include certain boost headers if necessary.Jordan Lewis2011-05-171-0/+1
| |
| * Only include init.h when we have toJordan Lewis2011-05-151-0/+1
| |
| * Only include net.h when we have toJordan Lewis2011-05-151-0/+1
| |
| * Only include db.h when we have to.Jordan Lewis2011-05-151-0/+1
| |
* | Merge pull request #264 from sipa/mintxfeefixJeff Garzik2011-06-051-3/+12
|\ \ | | | | | | Fix for small change outputs
| * | Fix for small change outputsPieter Wuille2011-05-251-3/+12
| |/ | | | | | | | | | | | | | | | | | | With the separation of CENT and MIN_TX_FEE, it is now reasonable to create change outputs between 0.01 and 0.0005, as these are spendable according to the policy, even though they require a fee to be paid. Also, when enough fee was already present, everything can go into a change output, without further increasing the fee.
* | Merge pull request #255 from sipa/rescanupdateJeff Garzik2011-06-051-2/+2
|\ \ | | | | | | Update transactions already in the wallet when rescanning.
| * | Update transactions already in the wallet when rescanning.Pieter Wuille2011-05-221-2/+2
| |/ | | | | | | | | | | | | | | When rescanning, if the scanned transaction is already in the wallet, it is skipped. However, if someone sends a transaction, does not wait for confirmation, switches wallets, waits for a block that contains his original transaction, and switches wallets again, a rescan will leave his wallet transaction (which has no merkle branch, so no confirmations) untouched.
* | bugfix: accept free transactionsPieter Wuille2011-05-281-1/+1
| |
* | Separate required fee for relaying and creationPieter Wuille2011-05-261-3/+3
|/ | | | | | | Transactions created with the new minimal fee policy would not be relayed by the network. Therefore, we separate the minimal fee that is necessary to relay and to create, leaving the creation one at the old amount, for now.
* make bitcoin include files more modularWladimir J. van der Laan2011-05-151-60/+58
|
* Add #ifdef USE_UPNP around usage of fUseUPnP to fix build failure.Daniel Holbert2011-05-121-2/+0
|
* Replace CENT with new constant MIN_TX_FEE, where appropriate.Jeff Garzik2011-05-111-1/+1
| | | | MIN_TX_FEE==CENT remains true (until next commit).
* Manual merge of jaromil's source tree reorg commit.Jeff Garzik2011-05-091-81/+5
| | | | | Conflicts: src/sha256.cpp
* directory re-organization (keeps the old build system)Jaromil2011-04-231-0/+4104
there is no internal modification of any file in this commit files are moved into directories according to established standards in sourcecode distribution; these directories contain: src - Files that are used in constructing the executable binaries, but are not installed. doc - Files in HTML and text format that document usage, quirks of the implementation, and contributor checklists. locale - Files that contain human language translation of strings used in the program contrib - Files contributed from distributions or other third party implementing scripts and auxiliary programs