aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
AgeCommit message (Collapse)Author
2011-05-06Merge branch 'remove-4way' of github.com:jgarzik/bitcoin into tmpJeff Garzik
Conflicts: makefile.unix
2011-05-03Merge pull request #173 from gavinandresen/testnet_isstandard.Gavin Andresen
Accept non-standard transactions on testnet.
2011-04-20Better wording for transaction fee notification messagesv0.3.21Gavin Andresen
2011-04-20Monitor incoming transactions for spends by (a copy of) your own walletPieter Wuille
2011-04-20Accept non-standard transactions on testnet.Gavin Andresen
2011-04-18Automatically rescan after restoring wallet.datPieter Wuille
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.
2011-04-13New checkpoint at block 118,000Gavin Andresen
2011-04-12Merge branch 'listimmature' of /Users/gavin/src/gavin_btcGavin Andresen
2011-04-12Merge branch 'spentpertxout' of https://github.com/sipa/bitcoinGavin Andresen
2011-04-12Bugfix for spentpertxout: slow startupPieter Wuille
When starting the client, ReacceptWalletTransaction didn't skip spent transactions in its loop, and processed all old spent transactions again.
2011-04-12Merge branch 'upnp' of https://github.com/TheBlueMatt/bitcoinGavin Andresen
2011-04-12Merge branch 'spentpertxout' of https://github.com/sipa/bitcoinGavin Andresen
2011-04-12select transaction outputs separatelyPieter Wuille
Update to SelectCoins and CreateTransaction to select source transaction outputs separately instead of per whole transaction.
2011-04-12Spent per txoutPieter Wuille
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)
2011-04-05Report immature coinbase transactions in listtransactionsGavin Andresen
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).
2011-04-04Fix deadlocks in setaccount, sendfrom RPC callsJeff Garzik
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
2011-04-03Remove 4way SSE2 scanhash implementation.Jeff Garzik
2011-03-30Allow UPnP mapping when USE_UPNP is defined and miniupnpc is installed at ↵Matt Corallo
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.
2011-03-14Merge branch 'shy'Gavin Andresen
2011-03-13Merge branch 'limitfree' of /Users/gavin/src/integration_btcGavin Andresen
2011-03-13Merge branch 'subcent-change' of https://github.com/tcatm/bitcoinGavin Andresen
2011-03-13sendmany RPC command, to send to multiple recipients in one transaction.Gavin Andresen
2011-03-13Make sure rate-limiting code is thread-safeGavin Andresen
2011-03-13Continuously rate-limit free transactions.Gavin Andresen
Changed algorithm to use continuous exponential function instead of discrete 10-minute window. Changed -limitfreerelay to be kilobytes-per-minute instead of boolean.
2011-03-05shy patch from HalGavin Andresen
2011-03-02Fix minimum transaction fee calculation mismatch between CreateTransaction ↵Gavin Andresen
and CreateBlock
2011-03-01Bugfix: avoid sub-cent change (lost in fees) whenever possibleLuke Dashjr
2011-02-03Reset testnet with a new genesis blockDavid FRANCOIS
2011-01-31new checkpoint at block 105,000Gavin Andresen
2011-01-22cpuid instruction clobbers eax/ebx/ecx/edxGavin Andresen
2011-01-20Merge branch '4wayswitch' of https://github.com/dooglus/bitcoin into integrationGavin Andresen
2011-01-20Don't use GetBoolArg() and mapArgs; use one or the other.Chris
2011-01-20Reconcile getbalance and listaccounts 0 in the shared-wallet caseGavin Andresen
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.
2011-01-19ReacceptWalletTransactions bugfixGavin Andresen
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 "".
2010-12-21Add address to listtransactions outputGavin Andresen
2010-12-16New RPC command: listaccounts. New RPC setting -rpctimeout. And ↵gavinandresen
listtransactions '*' git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@203 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-12corrections_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@200 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-12added some DoS limits, removed safe modes_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@199 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-07IsStandard() check for CScripts: only relay/include in blocks CScripts we ↵gavinandresen
can understand. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@197 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-05preps for future client-only mode,s_nakamoto
jgarzik's initial download speedup git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@195 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-12-03All boolean options/flags now work the same way.gavinandresen
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@194 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-30JSON methods: listtransactions, gettransaction, move, sendfrom and ↵gavinandresen
getbalance <account> git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@193 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-23new getworks_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@189 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-20small bugfixs_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@186 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-19require some minimal priority for free transactions to slow down transaction ↵s_nakamoto
spam git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@185 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-19efficiently sort transaction dependencies in one passs_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@184 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-09SelectCoins first pass tries not to use coins with less than 6 confirmationss_nakamoto
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@177 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-11-08-paytxfee is now per KB,s_nakamoto
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
2010-11-04Fix IsInitialBlockDownload if running on testnetgavinandresen
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@175 1a98c847-1fd6-4fd8-948a-caf3550aa51b
2010-10-23bugfixes from Dean Gores,s_nakamoto
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