Pieter Wuille
aca3f961db
select transaction outputs separately
...
Update to SelectCoins and CreateTransaction to select source transaction outputs separately instead of per whole transaction.
14 years ago
Pieter Wuille
335e878be8
Spent per txout
...
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)
14 years ago
Gavin Andresen
b931ed8563
sendmany RPC command, to send to multiple recipients in one transaction.
14 years ago
Gavin Andresen
88abf70386
Make sure rate-limiting code is thread-safe
14 years ago
Gavin Andresen
5de8b54c51
Continuously rate-limit free transactions.
...
Changed algorithm to use continuous exponential function instead of discrete 10-minute window.
Changed -limitfreerelay to be kilobytes-per-minute instead of boolean.
14 years ago
Gavin Andresen
cbc920d474
shy patch from Hal
14 years ago
Gavin Andresen
395c1f44bd
Fix minimum transaction fee calculation mismatch between CreateTransaction and CreateBlock
14 years ago
Luke Dashjr
a14bf1946d
Bugfix: avoid sub-cent change (lost in fees) whenever possible
14 years ago
David FRANCOIS
98ba262a48
Reset testnet with a new genesis block
14 years ago
Gavin Andresen
bd7d9140f9
new checkpoint at block 105,000
14 years ago
Gavin Andresen
c90ea2bd6d
cpuid instruction clobbers eax/ebx/ecx/edx
14 years ago
Chris
8b8d59eefb
Don't use GetBoolArg() and mapArgs; use one or the other.
14 years ago
Gavin Andresen
d9574c2f14
Reconcile getbalance and listaccounts 0 in the shared-wallet case
...
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.
14 years ago
Gavin Andresen
1d23c74361
ReacceptWalletTransactions bugfix
...
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 "".
14 years ago
Gavin Andresen
ddb68acebe
Add address to listtransactions output
14 years ago
gavinandresen
809ee79592
New RPC command: listaccounts. New RPC setting -rpctimeout. And listtransactions '*'
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@203 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
986b5e257e
correction
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@200 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
97ee01ad89
added some DoS limits, removed safe mode
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@199 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
gavinandresen
a206a23980
IsStandard() check for CScripts: only relay/include in blocks CScripts we can understand.
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@197 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
f03304a9c7
preps for future client-only mode,
...
jgarzik's initial download speedup
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@195 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
gavinandresen
bdde31d787
All boolean options/flags now work the same way.
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@194 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
gavinandresen
bfd471f53e
JSON methods: listtransactions, gettransaction, move, sendfrom and getbalance <account>
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@193 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
776d0f3459
new getwork
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@189 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
51d9b435cd
small bugfix
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@186 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
f35e21e2e4
require some minimal priority for free transactions to slow down transaction spam
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@185 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
683bcb9154
efficiently sort transaction dependencies in one pass
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@184 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
e2a186af10
SelectCoins first pass tries not to use coins with less than 6 confirmations
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@177 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
461764cbbe
-paytxfee is now per KB,
...
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
14 years ago
gavinandresen
3b8848fa4e
Fix IsInitialBlockDownload if running on testnet
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@175 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
c891967b6f
bugfixes from Dean Gores,
...
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
14 years ago
s_nakamoto
2ce73dbe85
-- version 0.3.14 release
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@171 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
5cbf75324d
Gavin's TEST network as -testnet switch, misc fixes
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@168 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
83082f04a4
dkaparis: boost::bind build fix for c++0x
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@164 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
103849419a
key pool for safer wallet backup
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@163 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
b22c884231
recursive function to determine if own unconfirmed transaction can be spent
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@161 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
dc8adc3b48
Russian translation by eurekafag
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@160 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
a790fa46f4
don't count or spend payments until they have 1 confirmation,
...
misc cleanup,
changed internal version number from 312 to 31300
-- version 0.3.13
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@158 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
9b8eb4d690
changed free transactions per block threshold
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@157 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
8d13ca1f11
changed free transactions per block threshold
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@157 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
172f006020
only accept transactions sent by IP address if -allowreceivebyip is specified
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@156 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
6aeb45187b
only accept transactions sent by IP address if -allowreceivebyip is specified
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@156 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
efae3da41d
config option -rpcallowip= to accept json-rpc connections from another machine
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@155 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
fe37c35018
config option -rpcallowip= to accept json-rpc connections from another machine
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@155 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
3df62878c3
reorganize BitcoinMiner to make it easier to add different SHA256 routines
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@154 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
71cc095cb2
reorganize BitcoinMiner to make it easier to add different SHA256 routines
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@154 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
c39b06866e
fix build on non-intel architectures, thanks teknohog
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@152 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
2323664a37
fix build on non-intel architectures, thanks teknohog
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@152 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
4968232490
fix problem sending the last cent with sub-cent fractional change
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@151 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
00728c24e7
fix problem sending the last cent with sub-cent fractional change
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@151 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
7629d36a53
try to auto-detect whether to use 128-bit 4-way SSE2
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@150 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago