aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* directory re-organization (keeps the old build system)Jaromil2011-04-231-4104/+0
| | | | | | | | | | | | | | | | | | | 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
* Better wording for transaction fee notification messagesv0.3.21Gavin Andresen2011-04-201-1/+1
|
* Monitor incoming transactions for spends by (a copy of) your own walletPieter Wuille2011-04-201-35/+11
|
* Automatically rescan after restoring wallet.datPieter Wuille2011-04-181-0/+9
| | | | | | | Information about the best known chain is added to wallet.dat. If this information does not match the data in blkindex.dat, a rescan is automatically performed, starting from the the last known block. When upgrading from a wallet which does not have this information, no rescan is done automatically.
* New checkpoint at block 118,000Gavin Andresen2011-04-131-3/+4
|
* Merge branch 'listimmature' of /Users/gavin/src/gavin_btcGavin Andresen2011-04-121-8/+10
|\
| * Report immature coinbase transactions in listtransactionsGavin Andresen2011-04-051-8/+10
| | | | | | | | | | Report coin generation transactions as 'category':'immature' until they have 120 confirmations (when they are reported as 'category':'generate', as before). If the block they are in is not part of the main chain (you lost a 'block race'), then they are reported as 'category':'orphan' (with 0 confirmations).
* | Merge branch 'spentpertxout' of https://github.com/sipa/bitcoinGavin Andresen2011-04-121-0/+2
|\ \
| * | Bugfix for spentpertxout: slow startupPieter Wuille2011-04-121-0/+2
| | | | | | | | | | | | When starting the client, ReacceptWalletTransaction didn't skip spent transactions in its loop, and processed all old spent transactions again.
* | | Merge branch 'upnp' of https://github.com/TheBlueMatt/bitcoinGavin Andresen2011-04-121-0/+8
|\ \ \
| * | | Allow UPnP mapping when USE_UPNP is defined and miniupnpc is installed at ↵Matt Corallo2011-03-301-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build time(statically linked). Thanks joepie91 for the translation of the new copyright notices into Dutch. Thanks sipa for the translation of the new copyright notices into French. Thanks megu for the translation of the new copyright notices into Spanish. Thanks justmoon/Blitzboom for the translation of the new copyright notices into German. Thanks Joozero for the translation of the new copyright notices into Italian. Remaining translations were provided by Google Translate.
* | | | Merge branch 'spentpertxout' of https://github.com/sipa/bitcoinGavin Andresen2011-04-121-79/+93
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| |
| * | select transaction outputs separatelyPieter Wuille2011-04-121-46/+62
| | | | | | | | | | | | Update to SelectCoins and CreateTransaction to select source transaction outputs separately instead of per whole transaction.
| * | Spent per txoutPieter Wuille2011-04-121-34/+32
| |/ | | | | | | | | | | | | Change some internal data structures to keep track of spentness of each wallet transaction output separately, to support partially-spent transactions: * an update to the data structures (vfSpent in CWalletTx instead of fSpent) * a backward-compatible update to the wallet disk format. Old clients reading back an updated wallet will ignore partially spent transactions when creating new ones, and may report a wrong balance, though. * some helper functions (CWalletTx: IsSpent, MarkSpent, MarkDirty to reset cached values, GetAvailableCredit which only counts unredeemed outputs)
* / Fix deadlocks in setaccount, sendfrom RPC callsJeff Garzik2011-04-041-18/+18
|/ | | | | | | | | | | | | | | | | | | | | | | | | SendMoney*() now requires caller to acquire cs_main. GetAccountAddress() now requires caller to acquire cs_main, cs_mapWallet. Ordering is intended to match these two callchains[1]: 1. CRITICAL_BLOCK(cs_main) ProcessMessage(pfrom, strCommand, vMsg) AddToWalletIfMine() AddToWallet(wtx) CRITICAL_BLOCK(cs_mapWallet) 2. CRITICAL_BLOCK(cs_main) ProcessMessage(pfrom, strCommand, vMsg) AddToWalletIfMine() AddToWallet(wtx) CRITICAL_BLOCK(cs_mapWallet) walletdb.WriteName(PubKeyToAddress(vchDefaultKey), "") CRITICAL_BLOCK(cs_mapAddressBook) Spotted by ArtForz. Additional deadlock fixes by Gavin. [1] http://www.bitcoin.org/smf/index.php?topic=4904.msg71897#msg71897
* Merge branch 'shy'Gavin Andresen2011-03-141-0/+4
|\
| * shy patch from HalGavin Andresen2011-03-051-0/+4
| |
* | Merge branch 'limitfree' of /Users/gavin/src/integration_btcGavin Andresen2011-03-131-12/+22
|\ \
| * | Make sure rate-limiting code is thread-safeGavin Andresen2011-03-131-10/+17
| | |
| * | Continuously rate-limit free transactions.Gavin Andresen2011-03-131-12/+15
| | | | | | | | | | | | | | | Changed algorithm to use continuous exponential function instead of discrete 10-minute window. Changed -limitfreerelay to be kilobytes-per-minute instead of boolean.
* | | Merge branch 'subcent-change' of https://github.com/tcatm/bitcoinGavin Andresen2011-03-131-7/+17
|\ \ \
| * | | Bugfix: avoid sub-cent change (lost in fees) whenever possibleLuke Dashjr2011-03-011-7/+17
| | |/ | |/|
* | | sendmany RPC command, to send to multiple recipients in one transaction.Gavin Andresen2011-03-131-16/+32
| |/ |/|
* | Fix minimum transaction fee calculation mismatch between CreateTransaction ↵Gavin Andresen2011-03-021-16/+28
|/ | | | and CreateBlock
* Reset testnet with a new genesis blockDavid FRANCOIS2011-02-031-3/+3
|
* new checkpoint at block 105,000Gavin Andresen2011-01-311-7/+8
|
* cpuid instruction clobbers eax/ebx/ecx/edxGavin Andresen2011-01-221-1/+1
|
* Merge branch '4wayswitch' of https://github.com/dooglus/bitcoin into integrationGavin Andresen2011-01-201-1/+1
|\
| * Don't use GetBoolArg() and mapArgs; use one or the other.Chris2011-01-201-1/+1
| |
* | Reconcile getbalance and listaccounts 0 in the shared-wallet caseGavin Andresen2011-01-201-2/+18
| | | | | | | | If you copied your wallet and used it on two different machines, the balance reported by getbalance and the sum(listaccounts) could disagree, because you might receive payments for an address that is in your wallet but not your address book. Now all such transactions are credited to the default empty-string account.
* | ReacceptWalletTransactions bugfixGavin Andresen2011-01-191-7/+66
|/ | | | | | | | | | | | | | | | | Fix two bugs that can happen if you copy your wallet to another machine and perform transactions on both. First, ReacceptWalletTransactions would notice if the other wallet spent coins, and would correctly mark the receiving transaction spent. However, it did not add the spending transaction to the wallet. Now it does. Second, account balances could get out of sync with 'getbalance' because coins received by the other copy of the wallet were not necessarily detected. Now ReacceptWalletTransactions will scan the entire blockchain for transactions that should be in the wallet if it runs across a 'spent in the other wallet' transaction. Finally, there was a small bug in the accounts getbalance code-- generated coins with between 100 and 119 confirmations were not being counted in the balance of account "".
* Add address to listtransactions outputGavin Andresen2010-12-211-18/+37
|
* New RPC command: listaccounts. New RPC setting -rpctimeout. And ↵gavinandresen2010-12-161-0/+57
| | | | | | listtransactions '*' git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@203 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* corrections_nakamoto2010-12-121-1/+0
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@200 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* added some DoS limits, removed safe modes_nakamoto2010-12-121-9/+36
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@199 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* IsStandard() check for CScripts: only relay/include in blocks CScripts we ↵gavinandresen2010-12-071-8/+12
| | | | | | can understand. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@197 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* preps for future client-only mode,s_nakamoto2010-12-051-19/+56
| | | | | | jgarzik's initial download speedup git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@195 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* All boolean options/flags now work the same way.gavinandresen2010-12-031-4/+4
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@194 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* JSON methods: listtransactions, gettransaction, move, sendfrom and ↵gavinandresen2010-11-301-1/+1
| | | | | | getbalance <account> git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@193 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* new getworks_nakamoto2010-11-231-239/+289
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@189 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* small bugfixs_nakamoto2010-11-201-1/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@186 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* require some minimal priority for free transactions to slow down transaction ↵s_nakamoto2010-11-191-2/+4
| | | | | | spam git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@185 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* efficiently sort transaction dependencies in one passs_nakamoto2010-11-191-36/+85
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@184 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* SelectCoins first pass tries not to use coins with less than 6 confirmationss_nakamoto2010-11-091-1/+13
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@177 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* -paytxfee is now per KB,s_nakamoto2010-11-081-17/+102
| | | | | | BitcoinMiner prioritise transactions by how old their dependencies are git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@176 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Fix IsInitialBlockDownload if running on testnetgavinandresen2010-11-041-1/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@175 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* bugfixes from Dean Gores,s_nakamoto2010-10-231-12/+67
| | | | | | | addr system changes, make sure no gen before block 74000 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@173 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* -- version 0.3.14 releasev0.3.14s_nakamoto2010-10-211-1/+1
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@171 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* Gavin's TEST network as -testnet switch, misc fixess_nakamoto2010-10-191-35/+67
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@168 1a98c847-1fd6-4fd8-948a-caf3550aa51b
* dkaparis: boost::bind build fix for c++0xs_nakamoto2010-10-111-5/+10
| | | | git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@164 1a98c847-1fd6-4fd8-948a-caf3550aa51b