novacoin.git
13 years agoSpent per txout
Pieter Wuille [Thu, 17 Mar 2011 21:51:59 +0000]
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)

13 years agodisable -daemon on windows; bitcoind forks only with -daemon set
tcatm [Sat, 9 Apr 2011 03:59:32 +0000]
disable -daemon on windows; bitcoind forks only with -daemon set

[added setsid() call to ui.cpp, to regain consistency with init.cpp -jgarzik]

13 years agorfc1123Time: increase buffer size for time string
Jeff Garzik [Sat, 9 Apr 2011 02:50:14 +0000]
rfc1123Time: increase buffer size for time string

Make sure we can accomodate all possibilities.

13 years agoReport immature coinbase transactions in listtransactions
Gavin Andresen [Sun, 27 Mar 2011 18:56:18 +0000]
Report immature coinbase transactions in listtransactions

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).

13 years agoFixed issue 76 -- RPC error where addresses from addressbook's sending tab appear...
Eric Swanson [Sun, 20 Mar 2011 22:32:39 +0000]
Fixed issue 76 -- RPC error where addresses from addressbook's sending tab appear in listaccounts

13 years agoMerge branch 'deadlock-fixes' of https://github.com/jgarzik/bitcoin
Gavin Andresen [Tue, 5 Apr 2011 23:34:06 +0000]
Merge branch 'deadlock-fixes' of https://github.com/jgarzik/bitcoin

13 years agoRPC sendmany must acquire cs_main lock
Jeff Garzik [Tue, 5 Apr 2011 19:15:20 +0000]
RPC sendmany must acquire cs_main lock

13 years agoFix deadlocks in setaccount, sendfrom RPC calls
Jeff Garzik [Tue, 5 Apr 2011 02:24:35 +0000]
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

13 years agoRemove 4way SSE2 scanhash implementation.
Jeff Garzik [Sun, 3 Apr 2011 18:21:52 +0000]
Remove 4way SSE2 scanhash implementation.

13 years agoUpdate DNS seed list
Jeff Garzik [Fri, 1 Apr 2011 15:33:35 +0000]
Update DNS seed list

13 years agoAllow UPnP mapping when USE_UPNP is defined and miniupnpc is installed at build time...
Matt Corallo [Sat, 26 Mar 2011 12:01:27 +0000]
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.

13 years agoallow coredumps by not catching SIGSEGV
tcatm [Fri, 25 Mar 2011 12:23:43 +0000]
allow coredumps by not catching SIGSEGV

13 years agoMerge branch 'master' of git://github.com/bitcoin/bitcoin
Jeff Garzik [Wed, 23 Mar 2011 22:28:50 +0000]
Merge branch 'master' of git://github.com/bitcoin/bitcoin

13 years ago[locale] Regenerate es, nl binary message catalogs
Jeff Garzik [Wed, 23 Mar 2011 22:27:09 +0000]
[locale] Regenerate es, nl binary message catalogs

13 years agoMerge branch 'master' of https://github.com/smola/bitcoin into tmp
Jeff Garzik [Wed, 23 Mar 2011 22:21:22 +0000]
Merge branch 'master' of https://github.com/smola/bitcoin into tmp

13 years agoMerge branch 'dutchloc' of https://github.com/sipa/bitcoin into tmp
Jeff Garzik [Wed, 23 Mar 2011 22:21:10 +0000]
Merge branch 'dutchloc' of https://github.com/sipa/bitcoin into tmp

13 years agocatch SIGINT, SIGHUP and SIGSEGV and shutdown cleanly
tcatm [Wed, 23 Mar 2011 17:27:30 +0000]
catch SIGINT, SIGHUP and SIGSEGV and shutdown cleanly

13 years agodaemon-mode: add sleep() loop to prevent defunct child process, call setsid() in...
tcatm [Mon, 21 Mar 2011 11:11:05 +0000]
daemon-mode: add sleep() loop to prevent defunct child process, call setsid() in child

13 years agoUpdated dutch translation
Sven Slootweg [Fri, 18 Mar 2011 23:44:57 +0000]
Updated dutch translation

13 years agoUpdate copyright in About box from 2010 to 2011
Gavin Andresen [Thu, 10 Mar 2011 15:48:32 +0000]
Update copyright in About box from 2010 to 2011

13 years agoUpdate Spanish translation.
Santiago M. Mola [Wed, 16 Mar 2011 19:56:03 +0000]
Update Spanish translation.

13 years agoFix -logtimestamps to only print time prefix once per output line
Jeff Garzik [Wed, 16 Mar 2011 19:42:04 +0000]
Fix -logtimestamps to only print time prefix once per output line

Incorporate BlueMatt's fix to only timestamp upon new line, and
move -logtimestamp checking outside OutputDebugPrintF() to better
future-proof it.

13 years agoMerge branch 'shy'
Gavin Andresen [Mon, 14 Mar 2011 13:15:06 +0000]
Merge branch 'shy'

13 years agoMerge branch 'dns-seed' of https://github.com/jgarzik/bitcoin
Gavin Andresen [Sun, 13 Mar 2011 21:15:59 +0000]
Merge branch 'dns-seed' of https://github.com/jgarzik/bitcoin

13 years agoMerge branch 'log-timestamp' of https://github.com/TheBlueMatt/bitcoin
Gavin Andresen [Sun, 13 Mar 2011 21:15:57 +0000]
Merge branch 'log-timestamp' of https://github.com/TheBlueMatt/bitcoin

13 years agoMerge branch 'limitfree' of /Users/gavin/src/integration_btc
Gavin Andresen [Sun, 13 Mar 2011 21:15:44 +0000]
Merge branch 'limitfree' of /Users/gavin/src/integration_btc

13 years agoMerge branch 'daemon-mode' of https://github.com/tcatm/bitcoin
Gavin Andresen [Sun, 13 Mar 2011 21:15:34 +0000]
Merge branch 'daemon-mode' of https://github.com/tcatm/bitcoin

13 years agoMerge branch 'subcent-change' of https://github.com/tcatm/bitcoin
Gavin Andresen [Sun, 13 Mar 2011 21:15:28 +0000]
Merge branch 'subcent-change' of https://github.com/tcatm/bitcoin

13 years agosendmany RPC command, to send to multiple recipients in one transaction.
Gavin Andresen [Thu, 16 Dec 2010 20:48:04 +0000]
sendmany RPC command, to send to multiple recipients in one transaction.

13 years agoMake sure rate-limiting code is thread-safe
Gavin Andresen [Sun, 13 Mar 2011 18:38:07 +0000]
Make sure rate-limiting code is thread-safe

13 years agoContinuously rate-limit free transactions.
Gavin Andresen [Fri, 11 Mar 2011 16:50:16 +0000]
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.

13 years agoremove from/message field from uiproject
tcatm [Sun, 13 Mar 2011 17:35:39 +0000]
remove from/message field from uiproject

13 years agoMerge branch 'smalltxfix' of https://github.com/gavinandresen/bitcoin-git into tmp
Jeff Garzik [Thu, 10 Mar 2011 19:32:19 +0000]
Merge branch 'smalltxfix' of https://github.com/gavinandresen/bitcoin-git into tmp

13 years agoMerge branch 'master' of https://github.com/devrandom/bitcoin into tmp
Jeff Garzik [Thu, 10 Mar 2011 17:58:49 +0000]
Merge branch 'master' of https://github.com/devrandom/bitcoin into tmp

13 years agoUpdate copyright in About box from 2010 to 2011
Gavin Andresen [Thu, 10 Mar 2011 15:48:32 +0000]
Update copyright in About box from 2010 to 2011

13 years agoBump version number to 0.3.21 (lest we forget)
Gavin Andresen [Thu, 10 Mar 2011 15:47:59 +0000]
Bump version number to 0.3.21 (lest we forget)

13 years agoOnly log timestamps if -logtimestamps is set.
Matt Corallo [Wed, 9 Mar 2011 20:48:11 +0000]
Only log timestamps if -logtimestamps is set.

13 years agoAdd timestamp prefix to each line in the debug log (this time with human-readable...
Matt Corallo [Wed, 9 Mar 2011 18:53:40 +0000]
Add timestamp prefix to each line in the debug log (this time with human-readable times)

13 years agodnsseed: fix printf
Jeff Garzik [Wed, 9 Mar 2011 03:55:29 +0000]
dnsseed: fix printf

13 years agoDNS seeding
Jeff Garzik [Wed, 9 Mar 2011 03:40:50 +0000]
DNS seeding

13 years agoshy patch from Hal
Gavin Andresen [Mon, 24 Jan 2011 15:42:17 +0000]
shy patch from Hal

13 years agoMerge branch 'TheBlueMatt-setaccountfix' into integration
tcatm [Sat, 5 Mar 2011 16:26:14 +0000]
Merge branch 'TheBlueMatt-setaccountfix' into integration

13 years agoMerge branch 'setaccountfix' of https://github.com/TheBlueMatt/bitcoin into TheBlueMa...
tcatm [Sat, 5 Mar 2011 16:24:34 +0000]
Merge branch 'setaccountfix' of https://github.com/TheBlueMatt/bitcoin into TheBlueMatt-setaccountfix

13 years agothrow JSONRPCError(-5, "Invalid bitcoin address") instead.
Matt Corallo [Sat, 5 Mar 2011 15:45:56 +0000]
throw JSONRPCError(-5, "Invalid bitcoin address") instead.

13 years agosetaccount should return if an invalid address is provided.
Matt Corallo [Sat, 5 Mar 2011 14:32:32 +0000]
setaccount should return if an invalid address is provided.
This prevents setaccount from creating new accounts which do not have any addresses.

13 years ago-help: do not show -server and -daemon in bitcoind
tcatm [Thu, 3 Mar 2011 21:34:13 +0000]
-help: do not show -server and -daemon in bitcoind

13 years agoforce fDaemon in bitcoind
tcatm [Thu, 3 Mar 2011 21:31:44 +0000]
force fDaemon in bitcoind

13 years agofix whitespace
tcatm [Thu, 3 Mar 2011 21:27:20 +0000]
fix whitespace

13 years agofix -daemon switch
tcatm [Thu, 3 Mar 2011 21:26:00 +0000]
fix -daemon switch

13 years agoMake send/receive limits bigger (10MB each)
Gavin Andresen [Thu, 3 Mar 2011 21:25:05 +0000]
Make send/receive limits bigger (10MB each)

13 years agoFix minimum transaction fee calculation mismatch between CreateTransaction and Create...
Gavin Andresen [Wed, 2 Mar 2011 21:27:24 +0000]
Fix minimum transaction fee calculation mismatch between CreateTransaction and CreateBlock

13 years agoMerge branch 'rounding'
Gavin Andresen [Wed, 2 Mar 2011 20:03:49 +0000]
Merge branch 'rounding'

13 years agoBugfix: avoid sub-cent change (lost in fees) whenever possible
Luke Dashjr [Fri, 28 Jan 2011 19:39:31 +0000]
Bugfix: avoid sub-cent change (lost in fees) whenever possible

13 years agoAvoid sprintf decimal-point localization
Gavin Andresen [Mon, 28 Feb 2011 21:34:36 +0000]
Avoid sprintf decimal-point localization

13 years agofix missing newline in help
tcatm [Mon, 28 Feb 2011 03:53:22 +0000]
fix missing newline in help

13 years agoMerge branch 'rounding' of https://github.com/gavinandresen/bitcoin-git into gavinand...
tcatm [Sat, 26 Feb 2011 03:37:13 +0000]
Merge branch 'rounding' of https://github.com/gavinandresen/bitcoin-git into gavinandresen-rounding

13 years agoAdded .gitignore, which prevents 'bitcoin' and 'bitcoind' from showing up in git.
Matt Giuca [Fri, 25 Feb 2011 07:40:43 +0000]
Added .gitignore, which prevents 'bitcoin' and 'bitcoind' from showing up in git.

13 years agoMerge branch 'mgiuca-wx-config' into integration
tcatm [Fri, 25 Feb 2011 23:59:55 +0000]
Merge branch 'mgiuca-wx-config' into integration

13 years agobuild-unix.txt: Updated (now OK to use wxWidgets > 2.9.0).
Matt Giuca [Fri, 25 Feb 2011 22:17:49 +0000]
build-unix.txt: Updated (now OK to use wxWidgets > 2.9.0).

13 years agomakefile.unix: Fixed errors building bitcoind without wxWidgets installed.
Matt Giuca [Fri, 25 Feb 2011 22:12:42 +0000]
makefile.unix: Fixed errors building bitcoind without wxWidgets installed.
    WXINCLUDEPATHS and WXLIBS now assigned with '=' instead of ':='.
    This means they are only evaluated on-demand, and they will never be
    requested by 'make bitcoind', so it won't try to call wx-config.

13 years agomakefile.unix: WXINCLUDEPATHS now only used for building GUI object files.
Matt Giuca [Fri, 25 Feb 2011 22:10:10 +0000]
makefile.unix: WXINCLUDEPATHS now only used for building GUI object files.
    Moved it out of CXXFLAGS and into the command-line for the GUI objects.
    It will no longer be invoked for non-GUI and crypto object files.

13 years agomakefile.unix: Removed redundant use of wx-config in DEFS (it was being included...
Matt Giuca [Fri, 25 Feb 2011 21:58:15 +0000]
makefile.unix: Removed redundant use of wx-config in DEFS (it was being included twice).
    Also changed wx-config --cppflags to --cxxflags. I am not sure what the
    difference is supposed to be, but --cppflags does not include -pthread.

13 years agoMerge https://github.com/ojab/bitcoin into wx-config
Matt Giuca [Fri, 25 Feb 2011 21:45:38 +0000]
Merge https://github.com/ojab/bitcoin into wx-config

13 years agoParseMoney: allow full precision
Gavin Andresen [Wed, 23 Feb 2011 21:26:15 +0000]
ParseMoney: allow full precision

13 years agoFormatMoney: show full-precision values
Gavin Andresen [Wed, 23 Feb 2011 21:01:17 +0000]
FormatMoney: show full-precision values

13 years agoDo not round input amounts; allow RPC full precision.
Gavin Andresen [Wed, 23 Feb 2011 19:41:19 +0000]
Do not round input amounts; allow RPC full precision.

13 years agoUse ValueFromAmount consistently
Gavin Andresen [Wed, 23 Feb 2011 19:24:16 +0000]
Use ValueFromAmount consistently

13 years agoBump version to 0.3.20.02
Gavin Andresen [Wed, 23 Feb 2011 19:12:20 +0000]
Bump version to 0.3.20.02

13 years agoSet SO_REUSEADDR on JSON port
tcatm [Wed, 23 Feb 2011 00:08:27 +0000]
Set SO_REUSEADDR on JSON port

13 years agoMerge branch 'master' of https://github.com/sandos/bitcoin into sandos-master
tcatm [Wed, 23 Feb 2011 00:07:43 +0000]
Merge branch 'master' of https://github.com/sandos/bitcoin into sandos-master

13 years agoremove From/Message fields from SendDialog
tcatm [Mon, 21 Feb 2011 14:56:58 +0000]
remove From/Message fields from SendDialog

13 years agoMerge branch 'master' of https://github.com/tcatm/bitcoin into tcatm-master
tcatm [Tue, 22 Feb 2011 02:00:09 +0000]
Merge branch 'master' of https://github.com/tcatm/bitcoin into tcatm-master

13 years agoChanged setup for mingw toolchain
Gavin Andresen [Fri, 18 Feb 2011 15:39:24 +0000]
Changed setup for mingw toolchain

13 years agoWindows mingw32 makefile and build notes (thanks m0mchil)
Gavin Andresen [Fri, 18 Feb 2011 14:49:00 +0000]
Windows mingw32 makefile and build notes (thanks m0mchil)

13 years agoBump version to 0.3.20.01
Gavin Andresen [Fri, 18 Feb 2011 00:22:08 +0000]
Bump version to 0.3.20.01

13 years agomove gitian descriptor file
devrandom [Thu, 17 Feb 2011 09:53:52 +0000]
move gitian descriptor file

13 years agoSet maxconnections default to 125
Gavin Andresen [Wed, 16 Feb 2011 19:43:04 +0000]
Set maxconnections default to 125

13 years agoDenial-of-service flood control
Gavin Andresen [Wed, 16 Feb 2011 18:18:11 +0000]
Denial-of-service flood control
Drop connections that are either sending messages too fast to handle or are processing messages so slowly data starts to back up.
Adds two new options:
  -maxreceivebuffer  Default: 2000 (2000*1000 bytes)
  -maxsendbuffer     Default: 256  (256*1000 bytes)

13 years agoUpdate windows build process for 0.3.20 release
Gavin Andresen [Mon, 14 Feb 2011 17:25:34 +0000]
Update windows build process for 0.3.20 release

13 years agoVisual C++ compatibility fixes
Gavin Andresen [Fri, 11 Feb 2011 00:24:22 +0000]
Visual C++ compatibility fixes

13 years agoSet SO_REUSEADDR for JSON-RPC port
sandos [Thu, 10 Feb 2011 08:25:42 +0000]
Set SO_REUSEADDR for JSON-RPC port

13 years agoAdded 320 fresh seednodes to replace the old ones.
Daniel Folkinshteyn [Sun, 6 Feb 2011 20:10:02 +0000]
Added 320 fresh seednodes to replace the old ones.

Thanks to MagicalTux for providing the data for node uptime
Thanks to sgornick for scapy script to test node connectivity

Closes https://github.com/bitcoin/bitcoin/issues#issue/22

13 years agoReset testnet with a new genesis block
David FRANCOIS [Thu, 3 Feb 2011 13:21:21 +0000]
Reset testnet with a new genesis block

13 years agoadd gitian build descriptor
devrandom [Tue, 1 Feb 2011 17:27:14 +0000]
add gitian build descriptor

13 years agonew checkpoint at block 105,000
Gavin Andresen [Mon, 31 Jan 2011 16:26:02 +0000]
new checkpoint at block 105,000

13 years agodo not create 'Your Address' account
tcatm [Mon, 31 Jan 2011 15:42:28 +0000]
do not create 'Your Address' account

13 years ago1. Change hardcoded g++ to $(CXX)
ojab [Mon, 31 Jan 2011 12:07:55 +0000]
1. Change hardcoded g++ to $(CXX)
2. Change CFLAGS to CXXFLAGS
3. Add binaries to clean target
4. Generate wxWidgets includes/ldflags/etc from wx-config

13 years agoExplicitly state that make -f makfile.unix is the way to build
Gavin Andresen [Tue, 25 Jan 2011 14:29:13 +0000]
Explicitly state that make -f makfile.unix is the way to build

13 years agoDon't scan the time offsets vector repeatedly once we've displayed the warning that...
Chris Moore [Tue, 25 Jan 2011 00:25:41 +0000]
Don't scan the time offsets vector repeatedly once we've displayed the warning that the user's clock may be wrong.

13 years agoRepeatedly resetting the timestamp for seed nodes in the database was slow. Only...
Chris Moore [Mon, 24 Jan 2011 22:47:36 +0000]
Repeatedly resetting the timestamp for seed nodes in the database was slow.  Only update the database if it's a real change.

13 years agoBump version number to 0.3.20
Gavin Andresen [Mon, 24 Jan 2011 16:13:25 +0000]
Bump version number to 0.3.20

13 years agoFix -maxconnections. It used to account for the 8 outbound connections twice when...
Chris Moore [Sun, 23 Jan 2011 08:08:09 +0000]
Fix -maxconnections.  It used to account for the 8 outbound connections twice when calculating the number of slots left for incoming connections.

13 years agocpuid instruction clobbers eax/ebx/ecx/edx
Gavin Andresen [Sat, 22 Jan 2011 21:04:07 +0000]
cpuid instruction clobbers eax/ebx/ecx/edx

13 years agoMerge branch show-version-in-help-2 of https://github.com/dooglus/bitcoin
Chris Moore [Fri, 21 Jan 2011 20:14:20 +0000]
Merge branch show-version-in-help-2 of https://github.com/dooglus/bitcoin

13 years agoMerge branch 'display-version-in-help' of https://github.com/mhanne/bitcoin
Chris Moore [Fri, 21 Jan 2011 20:09:32 +0000]
Merge branch 'display-version-in-help' of https://github.com/mhanne/bitcoin

13 years agoMerge branch 'rpcssl-help' of github.com:dooglus/bitcoin into dooglus-rpcssl-help
Chris Moore [Fri, 21 Jan 2011 19:59:56 +0000]
Merge branch 'rpcssl-help' of github.com:dooglus/bitcoin into dooglus-rpcssl-help

13 years agoThe -rpcssl command line option is a boolean, like -server, -daemon, -testnet, etc...
Chris Moore [Fri, 21 Jan 2011 18:14:33 +0000]
The -rpcssl command line option is a boolean, like -server, -daemon, -testnet, etc.  Specifying -rpcssl=1 is the same as just -rpcssl, as for any other boolean flag, so let's show it the same in the help text.

13 years agoUpdated development process description
Gavin Andresen [Fri, 21 Jan 2011 15:52:48 +0000]
Updated development process description

13 years agoAdd const bool VERSION_IS_BETA to serialize.h and use it when formatting the version...
Chris Moore [Fri, 21 Jan 2011 10:37:34 +0000]
Add const bool VERSION_IS_BETA to serialize.h and use it when formatting the version string.  Show the version string in --help text too.

13 years agoAdd -rescan option to --help output
Gavin Andresen [Thu, 20 Jan 2011 21:29:07 +0000]
Add -rescan option to --help output