Jeff Garzik
f5f1878ba1
Fix deadlocks in setaccount, sendfrom RPC calls
...
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
14 years ago
Matt Corallo
8bb5edc1c9
Allow UPnP mapping when USE_UPNP is defined and miniupnpc is installed at 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.
14 years ago
tcatm
b1ca5eb58a
do not create 'Your Address' account
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
865c3a2383
fix wallet.dat compatibility problem if you downgrade from 0.3.17 and then upgrade again
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@196 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
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
84d7c981dc
added boost tuples to serialize.h
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@192 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
gavinandresen
e4ff4e6898
Depracate "label" API, replacing with account
...
New RPC methods: move, sendfrom
Change to getbalance (now takes optional [account] argument)
Renamed methods with "label" in their names.
sendtoaddress returns hexadecimal transaction ID instead of "sent".
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@188 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
298a771494
added transaction fee setting in UI options menu,
...
cut free transaction area from 50KB to 26KB
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@187 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
gavinandresen
c285051c08
testnet and keypoololdest added to RPC getinfo output. And RPC now sends proper HTTP Date headers.
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@172 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
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
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
fdbf76d4f4
dropped DB_PRIVATE from dbenv.open
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@153 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
c8ad9b8375
dropped DB_PRIVATE from dbenv.open
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@153 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
f1e1fb4bde
cleanup,
...
catch some recoverable exceptions and continue
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@148 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
8c9479c6bb
cleanup,
...
catch some recoverable exceptions and continue
-- version 0.3.12 release
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@148 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
d743f03552
Gavin Andresen: json-rpc return standard error objects with error code numbers,
...
json-rpc command line client return exit code,
added rpc backupwallet command
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@147 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
0a61b0df12
propset svn:eol-style native
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@146 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
Satoshi Nakamoto
7a37c906a1
block index checking on load, extra redundant checks, misc refactoring
14 years ago
s_nakamoto
05454818dc
block index checking on load, extra redundant checks, misc refactoring
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@140 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
Satoshi Nakamoto
43deefa435
do an extra CheckBlock in ConnectBlock
14 years ago
Satoshi Nakamoto
21ca2d833b
erase the bad chain after disconnecting it
14 years ago
Satoshi Nakamoto
bb3fd02930
blocks-1,
...
verify block chain on load, so wouldn't have needed to delete blk*.dat, it would have done a reorg automatically
14 years ago
s_nakamoto
44a0de1861
do an extra CheckBlock in ConnectBlock
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@139 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
a01d5876fa
erase the bad chain after disconnecting it
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@138 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
15399da9fe
blocks-1,
...
verify block chain on load, so wouldn't have needed to delete blk*.dat, it would have done a reorg automatically
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@137 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
Satoshi Nakamoto
b34e8c3c36
new safety feature displays a warning message and locks down RPC if it detects a problem that may require an upgrade
...
-- version 0.3.8
14 years ago
s_nakamoto
2c06be915d
new safety feature displays a warning message and locks down RPC if it detects a problem that may require an upgrade
...
-- version 0.3.8
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@122 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
Satoshi Nakamoto
b6dc3b517b
bitcoind now compiles without wxWidgets or wxBase
14 years ago
Satoshi Nakamoto
40cd036941
Gavin Andresen's JSON-RPC HTTP authentication,
...
faster initial block download
-- version 0.3.3
14 years ago
s_nakamoto
793200e5e9
bitcoind now compiles without wxWidgets or wxBase
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@112 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
3b7cd5d89a
Gavin Andresen's JSON-RPC HTTP authentication,
...
faster initial block download
-- version 0.3.3
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@109 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
Gavin Andresen
9d2174b6f5
version 0.3.1 rc1
14 years ago
s_nakamoto
a30b56ebe7
fix openssl linkage problems,
...
disable minimize to tray on Linux because it has too many problems including a CPU peg bug
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@103 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
Gavin Andresen
8bd66202c3
Fix CRLF
14 years ago
s_nakamoto
f93d5f9ffe
automatically change displayed address whenever it receives anything,
...
added help and -? for daemon command line rpc commands,
only relay addr messages to 5 random nodes to save bandwidth,
started setting wtx.fFromMe flag,
trickle out tx inventory messages to protect privacy
-- version 0.2.10
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@81 1a98c847-1fd6-4fd8-948a-caf3550aa51b
14 years ago
s_nakamoto
3b318ed095
automatically change displayed address whenever it receives anything,
...
added help and -? for daemon command line rpc commands,
only relay addr messages to 5 random nodes to save bandwidth,
started setting wtx.fFromMe flag,
trickle out tx inventory messages to protect privacy
-- version 0.2.10
14 years ago
s_nakamoto
0184604aaf
transaction filter tabs instead of view->show generated
...
-- version 0.2.5
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@69 1a98c847-1fd6-4fd8-948a-caf3550aa51b
15 years ago
s_nakamoto
ee618d7540
transaction filter tabs instead of view->show generated
...
-- version 0.2.5
15 years ago
s_nakamoto
5253d1ab77
strip out unfinished product, review and market stuff,
...
enable _() instead of wxT() in uiproject.fbp so it uses wxGetTranslation for the wxFormBuilder generated part of the UI
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@64 1a98c847-1fd6-4fd8-948a-caf3550aa51b
15 years ago
s_nakamoto
cc4b78d59f
strip out unfinished product, review and market stuff,
...
enable _() instead of wxT() in uiproject.fbp so it uses wxGetTranslation for the wxFormBuilder generated part of the UI
15 years ago
s_nakamoto
53d508072b
update fSpent flag on wallet transactions if they're seen spent in case copy of wallet.dat was used elsewhere or restored from backup,
...
better error dialog box if try to spend already spent coins,
got rid of unused notebook with only one tab on main dialog,
nicer looking About dialog,
resize About dialog better on linux
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@55 1a98c847-1fd6-4fd8-948a-caf3550aa51b
15 years ago
s_nakamoto
2939cab06d
update fSpent flag on wallet transactions if they're seen spent in case copy of wallet.dat was used elsewhere or restored from backup,
...
better error dialog box if try to spend already spent coins,
got rid of unused notebook with only one tab on main dialog,
nicer looking About dialog,
resize About dialog better on linux
15 years ago
s_nakamoto
cb0f89646f
simplify AddAddress,
...
readcompactsize limit,
fixed a 64-bit compile error in serialize.h,
change status "# blocks" to "# confirmations" and widen the column.
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@53 1a98c847-1fd6-4fd8-948a-caf3550aa51b
15 years ago
s_nakamoto
80264be428
simplify AddAddress,
...
readcompactsize limit,
fixed a 64-bit compile error in serialize.h,
change status "# blocks" to "# confirmations" and widen the column.
15 years ago
s_nakamoto
e899779450
restrict file permissions on linux to the user only
...
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@47 1a98c847-1fd6-4fd8-948a-caf3550aa51b
15 years ago