novacoin.git
12 years agoBump PROTOCOL_VERSION to 60001, thereby enabling BIP31
Jeff Garzik [Tue, 17 Apr 2012 16:16:46 +0000]
Bump PROTOCOL_VERSION to 60001, thereby enabling BIP31

12 years agoMerge pull request #1081 from jgarzik/pong
Jeff Garzik [Tue, 17 Apr 2012 15:51:17 +0000]
Merge pull request #1081 from jgarzik/pong

BIP 0031: pong message

12 years agoMerge pull request #1092 from laanwj/2012_04_sendcoins_setlabelfix
Wladimir J. van der Laan [Mon, 16 Apr 2012 12:41:39 +0000]
Merge pull request #1092 from laanwj/2012_04_sendcoins_setlabelfix

When sending coins, set label when selecting address that already has a label

12 years agoMerge pull request #1091 from Diapolo/GUI-BlockDL
Wladimir J. van der Laan [Mon, 16 Apr 2012 07:55:37 +0000]
Merge pull request #1091 from Diapolo/GUI-BlockDL

revert to default OS theme for progressbar (fix #1071)

12 years agoMerge pull request #1104 from laanwj/2012_04_clang
Jeff Garzik [Sun, 15 Apr 2012 18:39:15 +0000]
Merge pull request #1104 from laanwj/2012_04_clang

Enable and fix most compilation warnings

12 years agoMerge pull request #1084 from dooglus/validate_secret
Jeff Garzik [Sun, 15 Apr 2012 16:25:29 +0000]
Merge pull request #1084 from dooglus/validate_secret

importprivkey doesn't check that it is given a private key

12 years agoMerge pull request #1097 from laanwj/2012_04_runawayexception
Wladimir J. van der Laan [Sun, 15 Apr 2012 16:22:26 +0000]
Merge pull request #1097 from laanwj/2012_04_runawayexception

Show a message box when runaway exception happens

12 years agoMerge pull request #1100 from luke-jr/qrcode_errchk
Jeff Garzik [Sun, 15 Apr 2012 15:31:22 +0000]
Merge pull request #1100 from luke-jr/qrcode_errchk

Bugfix: Check that QRcode_encodeString didn't return NULL (error)

12 years agofix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
Wladimir J. van der Laan [Sun, 15 Apr 2012 11:27:00 +0000]
fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]

12 years agofix warnings: '&&' within '||' [-Wlogical-op-parentheses]
Wladimir J. van der Laan [Sun, 15 Apr 2012 11:03:28 +0000]
fix warnings: '&&' within '||' [-Wlogical-op-parentheses]

12 years agofix warnings: delete called on 'XX' that has virtual functions but non-virtual destru...
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:59:20 +0000]
fix warnings: delete called on 'XX' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]

12 years agofix warnings: unused variable 'XX' [-Wunused-variable]
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:53:14 +0000]
fix warnings: unused variable 'XX' [-Wunused-variable]

12 years agofix warnings: enumeration values 'XX' not handled in switch [-Wswitch-enum]
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:42:52 +0000]
fix warnings: enumeration values 'XX' not handled in switch [-Wswitch-enum]

12 years agofix warnings: 'XX' defined as a struct here but previously declared as a class [...
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:31:56 +0000]
fix warnings: 'XX' defined as a struct here but previously declared as a class [-Wmismatched-tags]

12 years agofix warnings: array subscript is of type 'char' [-Wchar-subscripts]
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:22:30 +0000]
fix warnings: array subscript is of type 'char' [-Wchar-subscripts]

12 years agowork around issue in boost::program_options that prevents from compiling in clang
Wladimir J. van der Laan [Sun, 15 Apr 2012 09:42:40 +0000]
work around issue in boost::program_options that prevents from compiling in clang

12 years agoenable all warnings except invalid-offsetof, sign-compare, unused-parameter
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:24:03 +0000]
enable all warnings except invalid-offsetof, sign-compare, unused-parameter

12 years agoBugfix: Check that QRcode_encodeString didn't return NULL (error)
Luke Dashjr [Sun, 15 Apr 2012 01:00:27 +0000]
Bugfix: Check that QRcode_encodeString didn't return NULL (error)

Without this, any error will segfault Bitcoin-Qt

12 years agoShow a message box when runaway exception happens
Wladimir J. van der Laan [Sat, 14 Apr 2012 07:41:05 +0000]
Show a message box when runaway exception happens

This is more clear to users than when the program simply disappears (usually during initialization). It still logs the message to the console and debug log as well.

12 years agoRename make_windows_icon.py to .sh as it is a shell script (fixes #1099)
Wladimir J. van der Laan [Sat, 14 Apr 2012 16:32:30 +0000]
Rename make_windows_icon.py to .sh as it is a shell script (fixes #1099)

12 years agoMerge pull request #1093 from jgarzik/tx-opt
Jeff Garzik [Sat, 14 Apr 2012 15:50:43 +0000]
Merge pull request #1093 from jgarzik/tx-opt

Database micro-optimization for "tx" network message

12 years agoMerge pull request #1089 from laanwj/2012_04_translationupdate
Wladimir J. van der Laan [Sat, 14 Apr 2012 06:47:50 +0000]
Merge pull request #1089 from laanwj/2012_04_translationupdate

Update translations for bitcoin core

12 years agoUpdate translations for bitcoin core
Wladimir J. van der Laan [Fri, 13 Apr 2012 06:45:26 +0000]
Update translations for bitcoin core

- Move scripts/qt to share/qt, to clean up toplevel directories
- Update english ts file which is used to source messages for Transifex
- In extract_strings_qt.py use a glob *.h *.cpp, this is safe now that the Wx UI files are removed

12 years agoMerge pull request #1096 from laanwj/2012_04_tick
Wladimir J. van der Laan [Sat, 14 Apr 2012 06:27:23 +0000]
Merge pull request #1096 from laanwj/2012_04_tick

Do not show green tick unless all known blocks are downloaded (fixes #921)

12 years agoDo not show green tick unless all known blocks are downloaded (fixes #921)
Wladimir J. van der Laan [Sat, 14 Apr 2012 06:21:22 +0000]
Do not show green tick unless all known blocks are downloaded (fixes #921)

12 years agoDatabase micro-optimization for "tx" network message
Jeff Garzik [Fri, 13 Apr 2012 21:48:15 +0000]
Database micro-optimization for "tx" network message

Open database once per "tx" message, rather than multiple times,
in the case of orphan transaction presence.

As a side effect, a now-unused CTransaction::AcceptToMemoryPool()
variant is removed.

12 years agoSet label when selecting an address that already has a label. Fixes #1080.
Wladimir J. van der Laan [Fri, 13 Apr 2012 19:08:46 +0000]
Set label when selecting an address that already has a label. Fixes #1080.

12 years agorevert to default OS theme for progressbar / fix small glitches in bitcoingui.cpp
Philip Kaufmann [Fri, 13 Apr 2012 16:25:56 +0000]
revert to default OS theme for progressbar / fix small glitches in bitcoingui.cpp

12 years agoAdd missing tooltip and key shortcut in settings dialog (#1088 without line break...
Wladimir J. van der Laan [Fri, 13 Apr 2012 07:16:46 +0000]
Add missing tooltip and key shortcut in settings dialog (#1088 without line break part)

12 years agoMerge pull request #1087 from sipa/fix_1086
Gavin Andresen [Fri, 13 Apr 2012 01:22:15 +0000]
Merge pull request #1087 from sipa/fix_1086

Fix #1086: add /testnet to passed datadir

12 years agoFix #1086: add /testnet to passed datadir
Pieter Wuille [Fri, 13 Apr 2012 01:11:14 +0000]
Fix #1086: add /testnet to passed datadir

12 years agoReplace several network protocol version numbers with named constants
Jeff Garzik [Fri, 13 Apr 2012 00:07:49 +0000]
Replace several network protocol version numbers with named constants
stored in version.h.

Also, a minor CAddress code reformat while we're in there, fixing
some incorrect indentation.

12 years agoCBitcoinSecret::SetString() now calls IsValid() to make sure it was passed something...
Chris Moore [Thu, 12 Apr 2012 20:13:08 +0000]
CBitcoinSecret::SetString() now calls IsValid() to make sure it was passed something with the correct version.

12 years agoMerge pull request #1041 from gavinandresen/listtransactionsfix
Gavin Andresen [Thu, 12 Apr 2012 19:20:51 +0000]
Merge pull request #1041 from gavinandresen/listtransactionsfix

Bug fix listtransactions from/count handling.

12 years agomake text in about box selectable (fixes #1055)
Wladimir J. van der Laan [Thu, 12 Apr 2012 18:50:18 +0000]
make text in about box selectable (fixes #1055)

12 years agoMerge pull request #1078 from Diapolo/QR-Code
Wladimir J. van der Laan [Thu, 12 Apr 2012 18:38:36 +0000]
Merge pull request #1078 from Diapolo/QR-Code

QR-Code code update

Fixes problems reported on forum: https://bitcointalk.org/index.php?topic=73695.msg839804#msg839804

12 years agoenable wordWrap on lblQRCode / small code comment change
Philip Kaufmann [Thu, 12 Apr 2012 18:21:02 +0000]
enable wordWrap on lblQRCode / small code comment change

12 years agolimit length of generated URI to 255 chars to prevent a DoS against the QR-Code dialog
Philip Kaufmann [Thu, 12 Apr 2012 16:39:22 +0000]
limit length of generated URI to 255 chars to prevent a DoS against the QR-Code dialog

12 years agoupdated to reflect pull-request suggestions / renamed some GUI elements
Philip Kaufmann [Wed, 11 Apr 2012 21:05:22 +0000]
updated to reflect pull-request suggestions / renamed some GUI elements

12 years agofixed amount part of URI in QR-Codes / removed (no label) string if we have NO label...
Philip Kaufmann [Wed, 11 Apr 2012 12:21:15 +0000]
fixed amount part of URI in QR-Codes / removed (no label) string if we have NO label / coding style updates / removed an unused variable

12 years agoRemove obsolete Win32 AffinityBugWorkaround()
Jeff Garzik [Thu, 12 Apr 2012 17:24:00 +0000]
Remove obsolete Win32 AffinityBugWorkaround()

Reference miner exists for testnet-in-a-box type situations, and as a
reference.  We don't care enough about highly optimized internal
mining to keep workarounds like this.

12 years agoversion.h: separate client, net sections. Move more constants to this file.
Jeff Garzik [Thu, 12 Apr 2012 16:23:58 +0000]
version.h: separate client, net sections.  Move more constants to this file.

* move PROTOCOL_VERSION to version.h

* move CLIENT_VERSION* to version.h, make available past cpp stage

* clearly separate client, network version portions of version.h

12 years agoBIP 0031: pong message
Jeff Garzik [Wed, 11 Apr 2012 16:38:03 +0000]
BIP 0031: pong message

Add a pong message that is sent in reply to a ping. It echoes back a nonce
field that is now added to the ping message. Send a nonce of zero in ping
messages.

Original author: Mike Hearn @ Google

Modified Mike's change to introduce a mild form of protocol documentation in
version.h.

12 years agoFix OSX build errors.
Gavin Andresen [Thu, 12 Apr 2012 15:14:46 +0000]
Fix OSX build errors.

12 years agoMerge pull request #855 from sje397/ToggleHide
Wladimir J. van der Laan [Thu, 12 Apr 2012 06:02:18 +0000]
Merge pull request #855 from sje397/ToggleHide

Toggle UI hide

12 years agoMerge pull request #1072 from sipa/boostpaths
Pieter Wuille [Wed, 11 Apr 2012 22:02:24 +0000]
Merge pull request #1072 from sipa/boostpaths

Use filesystem::path instead of manual string tinkering

12 years agoUse filesystem::path instead of manual string tinkering
Pieter Wuille [Mon, 9 Apr 2012 21:50:56 +0000]
Use filesystem::path instead of manual string tinkering

Where possible, use boost::filesystem::path instead of std::string or
char* for filenames. This avoids a lot of manual string tinkering, in
favor of path::operator/.

GetDataDir is also reworked significantly, it now only keeps two cached
directory names (the network-specific data dir, and the root data dir),
which are decided through a parameter instead of pre-initialized global
variables.

Finally, remove the "upgrade from 0.1.5" case where a debug.log in the
current directory has to be removed.

12 years agoMerge pull request #1083 from laanwj/2012_04_connectionicon
Wladimir J. van der Laan [Wed, 11 Apr 2012 18:06:26 +0000]
Merge pull request #1083 from laanwj/2012_04_connectionicon

Make 4th bar of connection icon green

12 years agoRemove path.make_preferred() calls, and fix compiler error in bitcoinrpc RE: boost...
Gavin Andresen [Wed, 11 Apr 2012 18:00:48 +0000]
Remove path.make_preferred() calls, and fix compiler error in bitcoinrpc RE: boost::system

12 years agoby popular request, make 4th bar of connection icon green
Wladimir J. van der Laan [Wed, 11 Apr 2012 17:59:15 +0000]
by popular request, make 4th bar of connection icon green

12 years agoMerge pull request #1077 from sipa/buildinfo
Gavin Andresen [Wed, 11 Apr 2012 17:35:44 +0000]
Merge pull request #1077 from sipa/buildinfo

Fix build.h dependencies

12 years agoFix build.h dependencies
Pieter Wuille [Wed, 11 Apr 2012 01:51:08 +0000]
Fix build.h dependencies

For Qt builds, the build.h file is moved to build/build.h. For regular
builds, it is moved to obj/build.h. This allows the Qt build to be done
in a different directory than the source, and without interfering with
other builds.

12 years agoForce regeneration of build.h in qmake builds
Pieter Wuille [Wed, 11 Apr 2012 00:21:29 +0000]
Force regeneration of build.h in qmake builds

12 years agoMerge pull request #1054 from sipa/buildinfo
Pieter Wuille [Tue, 10 Apr 2012 20:31:12 +0000]
Merge pull request #1054 from sipa/buildinfo

Build identification strings

12 years agoMerge pull request #1046 from laanwj/2012_04_rpcporterror
Wladimir J. van der Laan [Tue, 10 Apr 2012 20:14:47 +0000]
Merge pull request #1046 from laanwj/2012_04_rpcporterror

Show error message instead of exception crash when unable to bind RPC port

12 years agoBuild identification strings
Pieter Wuille [Sat, 7 Apr 2012 00:06:53 +0000]
Build identification strings

All client version information is moved to version.cpp, which optionally
(-DHAVE_BUILD_INFO) includes build.h. build.h is automatically generated
on supporting platforms via contrib/genbuild.sh, using git describe.

The git export-subst attribute is used to put the commit id statically
in version.cpp inside generated archives, and this value is used if no
build.h is present.

The gitian descriptors are modified to use git archive instead of a
copy, to create the src/ directory in the output. This way,
src/src/version.cpp will contain the static commit id. To prevent
gitian builds from getting the "-dirty" marker in their git-describe
generated identifiers, no touching of files or running sed on the
makefile is performed anymore. This does not seem to influence
determinism.

12 years agoToggle main window hide on tray icon click
sje397 [Fri, 17 Feb 2012 14:34:53 +0000]
Toggle main window hide on tray icon click

- converted openBictoinAction to toggleHideAction
- put GUIUtil functions into a namespace instead of a class
- put window-related functions together in optionsdialog

Reasoning:
- toggle is more typical behaviour
- it's more functional
- better UX

The typical issue with toggling visibility is that when a window
is obscured by other windows but in the 'shown' state, hiding it
isn't what you want. I've added an 'isObscured' function to GUIUtil
that checks several pixels in the window to see if they are visible
on the desktop so that an obscured but shown window can be raised.

Conflicts:

src/qt/guiutil.cpp
src/qt/guiutil.h

12 years agoMerge pull request #1070 from cardpuncher/patch-1
Pieter Wuille [Tue, 10 Apr 2012 10:41:09 +0000]
Merge pull request #1070 from cardpuncher/patch-1

Trivial: added comment lines in French & Turkish

12 years agoMerge pull request #1052 from sipa/scopedlocks
Pieter Wuille [Mon, 9 Apr 2012 20:25:17 +0000]
Merge pull request #1052 from sipa/scopedlocks

Use scoped locks instead of CRITICAL_BLOCK

12 years agoAdded comment lines in French & Turkish which basically mean "Bitcoin, virtual P2P...
cardpuncher [Mon, 9 Apr 2012 19:22:38 +0000]
Added comment lines in French & Turkish which basically mean "Bitcoin, virtual P2P cryptocurrency".

12 years agoMerge branch 'filesystem' of https://github.com/Diapolo/bitcoin
Gavin Andresen [Mon, 9 Apr 2012 14:41:59 +0000]
Merge branch 'filesystem' of https://github.com/Diapolo/bitcoin

12 years agoDo not report spurious deadlocks caused by TRY_LOCK
Pieter Wuille [Sat, 7 Apr 2012 16:55:29 +0000]
Do not report spurious deadlocks caused by TRY_LOCK

12 years agoSupport for parametrized locks in deadlock detector
Pieter Wuille [Sat, 7 Apr 2012 16:29:31 +0000]
Support for parametrized locks in deadlock detector

12 years agoUse scoped locks instead of CRITICAL_BLOCK
Pieter Wuille [Fri, 6 Apr 2012 16:39:12 +0000]
Use scoped locks instead of CRITICAL_BLOCK

12 years agoMerge pull request #987 from luke-jr/ipc_name_fix
Gregory Maxwell [Fri, 6 Apr 2012 18:22:24 +0000]
Merge pull request #987 from luke-jr/ipc_name_fix

Cleanup: Replace "URL" with "URI" where we aren't actually working with URLs

12 years agoBugfix: Replace "URL" with "URI" where we aren't actually working with URLs
Luke Dashjr [Sun, 25 Mar 2012 21:25:10 +0000]
Bugfix: Replace "URL" with "URI" where we aren't actually working with URLs

12 years agoShow error message instead of exception crash when unable to bind RPC port
Wladimir J. van der Laan [Thu, 5 Apr 2012 18:36:27 +0000]
Show error message instead of exception crash when unable to bind RPC port

Fixes issue #875

12 years agofixed small error in bitcoinrpc.cpp
Philip Kaufmann [Fri, 6 Apr 2012 13:31:28 +0000]
fixed small error in bitcoinrpc.cpp

12 years agoupdated util.cpp to use make_preferred()
Philip Kaufmann [Sat, 31 Mar 2012 13:22:45 +0000]
updated util.cpp to use make_preferred()

12 years agoupdated bitcoinrpc.cpp to use make_preferred() and removed double inclusion of boost...
Philip Kaufmann [Sat, 31 Mar 2012 13:05:55 +0000]
updated bitcoinrpc.cpp to use make_preferred() and removed double inclusion of boost/filesystem.hpp

12 years agoupdated db.cpp to use make_preferred()
Philip Kaufmann [Wed, 21 Mar 2012 21:15:28 +0000]
updated db.cpp to use make_preferred()

12 years agoMerge pull request #1033 from sipa/wait
Pieter Wuille [Fri, 6 Apr 2012 11:11:14 +0000]
Merge pull request #1033 from sipa/wait

Condition variables instead of polling

12 years agoMerge pull request #1051 from graingert/patch-1
Gregory Maxwell [Fri, 6 Apr 2012 02:21:03 +0000]
Merge pull request #1051 from graingert/patch-1

Change sign message bitcoin address tooltip to "The address to sign the ...

12 years agoChange sign message bitcoin address tooltip to "The address to sign the message with...
graingert [Fri, 6 Apr 2012 02:08:16 +0000]
Change sign message bitcoin address tooltip to "The address to sign the message with" Closes #1050

12 years agoMerge pull request #1047 from luke-jr/strlcpy_attribute
Gavin Andresen [Thu, 5 Apr 2012 23:41:20 +0000]
Merge pull request #1047 from luke-jr/strlcpy_attribute

Document strlcpy.h in assets-attribution.txt since it isn't MIT-licensed

12 years agoDocument strlcpy.h in assets-attribution.txt since it isn't MIT-licensed
Luke Dashjr [Thu, 5 Apr 2012 22:58:20 +0000]
Document strlcpy.h in assets-attribution.txt since it isn't MIT-licensed

12 years agoMerge pull request #1045 from sipa/fastblocks2
Pieter Wuille [Thu, 5 Apr 2012 20:02:16 +0000]
Merge pull request #1045 from sipa/fastblocks2

Flush on log size instead of transaction count

12 years agoFlush on log size instead of transaction count
Pieter Wuille [Thu, 5 Apr 2012 15:54:30 +0000]
Flush on log size instead of transaction count

12 years agoMerge pull request #1043 from Diapolo/misc
Gavin Andresen [Thu, 5 Apr 2012 14:36:23 +0000]
Merge pull request #1043 from Diapolo/misc

removed obsolete boost workaround (boost ticket #4258)

12 years agoMerge pull request #1042 from gavinandresen/use_ssl_cleanup
Gavin Andresen [Thu, 5 Apr 2012 14:34:45 +0000]
Merge pull request #1042 from gavinandresen/use_ssl_cleanup

Remove USE_SSL #define

12 years agoMerge pull request #1037 from gavinandresen/addmultisigenable
Gavin Andresen [Thu, 5 Apr 2012 14:34:19 +0000]
Merge pull request #1037 from gavinandresen/addmultisigenable

Enable addmultisigaddress RPC call for main network

12 years agoMerge pull request #1036 from gavinandresen/pubsubcleanup
Gavin Andresen [Thu, 5 Apr 2012 14:33:54 +0000]
Merge pull request #1036 from gavinandresen/pubsubcleanup

Remove half-implemented publish/subscribe system

12 years agoMerge pull request #1035 from gavinandresen/osxbuild
Gavin Andresen [Thu, 5 Apr 2012 14:33:00 +0000]
Merge pull request #1035 from gavinandresen/osxbuild

Add ifdef RELEASE to makefile.osx as the compile-for-older-macs flags

12 years agoMerge pull request #1039 from sipa/fix_955
Gregory Maxwell [Thu, 5 Apr 2012 13:17:05 +0000]
Merge pull request #1039 from sipa/fix_955

Fix #955: Verify status of encrypt/decrypt calls to detect failed padding

12 years agoremoved obsolete boost workaround (boost ticket #4258)
Philip Kaufmann [Thu, 5 Apr 2012 06:34:31 +0000]
removed obsolete boost workaround (boost ticket #4258)

12 years agoMerge pull request #1038 from Diapolo/misc
Wladimir J. van der Laan [Thu, 5 Apr 2012 05:52:34 +0000]
Merge pull request #1038 from Diapolo/misc

small misc syntactic fixes

12 years agoRemove USE_SSL #define
Gavin Andresen [Thu, 5 Apr 2012 01:19:27 +0000]
Remove USE_SSL #define

12 years agoBug fix listtransactions from/count handling.
Gavin Andresen [Thu, 5 Apr 2012 00:56:13 +0000]
Bug fix listtransactions from/count handling.

12 years agoVerify status of encrypt/decrypt calls to detect failed padding
Pieter Wuille [Wed, 4 Apr 2012 23:02:49 +0000]
Verify status of encrypt/decrypt calls to detect failed padding

12 years agoremoved an unneeded space in bitcoin-qt.pro
Philip Kaufmann [Mon, 2 Apr 2012 20:25:04 +0000]
removed an unneeded space in bitcoin-qt.pro

12 years agoremoved an unused / obsolete tag from bitcoin.qrc
Philip Kaufmann [Mon, 2 Apr 2012 20:22:26 +0000]
removed an unused / obsolete tag from bitcoin.qrc

12 years agoEnable addmultisigaddress RPC call for main network
Gavin Andresen [Wed, 4 Apr 2012 20:01:27 +0000]
Enable addmultisigaddress RPC call for main network

12 years agoRemove half-implemented publish/subscribe system
Gavin Andresen [Wed, 4 Apr 2012 19:56:00 +0000]
Remove half-implemented publish/subscribe system

12 years agoAdd ifdef RELEASE to makefile.osx as the compile-for-older-macs flags
Gavin Andresen [Wed, 4 Apr 2012 19:45:31 +0000]
Add ifdef RELEASE to makefile.osx as the compile-for-older-macs flags

12 years agoCondition variable for outbound connection slots
Pieter Wuille [Wed, 4 Apr 2012 14:01:57 +0000]
Condition variable for outbound connection slots

Keep a global counter for nOutbound, protected with its own waitable
critical section, and wait when all outbound slots are filled, rather
than polling.

This removes the (on average) 1 second delay between a lost connection
and a new connection attempt, and may speed up shutdowns.

12 years agoLocking system overhaul, add condition variables
Pieter Wuille [Mon, 2 Apr 2012 00:40:41 +0000]
Locking system overhaul, add condition variables

This commit simplifies the locking system: CCriticalSection becomes a
simple typedef for boost::interprocess::interprocess_recursive_mutex,
and CCriticalBlock and CTryCriticalBlock are replaced by a templated
CMutexLock, which wraps boost::interprocess::scoped_lock.

By making the lock type a template parameter, some critical sections
can now be changed to non-recursive locks, which support waiting via
condition variables. These are implemented in CWaitableCriticalSection
and WAITABLE_CRITICAL_BLOCK.

CWaitableCriticalSection is a wrapper for a different Boost mutex,
which supports waiting/notification via condition variables. This
should enable us to remove much of the used polling code. Important
is that this mutex is not recursive, so functions that perform the
locking must not call eachother.

Because boost::interprocess::scoped_lock does not support assigning
and copying, I had to revert to the older CRITICAL_BLOCK macros that
use a nested for loop instead of a simple if.

12 years agoMerge pull request #1019 from laanwj/2012_03_uirefactor
Pieter Wuille [Wed, 4 Apr 2012 12:03:07 +0000]
Merge pull request #1019 from laanwj/2012_03_uirefactor

Streamline UI ↔ Core interface

12 years agoMerge pull request #1025 from Diapolo/GUI-BlockDL
Wladimir J. van der Laan [Wed, 4 Apr 2012 11:36:09 +0000]
Merge pull request #1025 from Diapolo/GUI-BlockDL

modified block DL progressbar to be more informative and precise

12 years agoMove from noui.h / ui.h to one ui_interface.h with dummy implementation for the daemon.
Wladimir J. van der Laan [Wed, 4 Apr 2012 11:19:30 +0000]
Move from noui.h / ui.h to one ui_interface.h with dummy implementation for the daemon.

12 years agoUse a messagebox to display the error when -server is provided without providing...
Wladimir J. van der Laan [Sat, 31 Mar 2012 13:08:25 +0000]
Use a messagebox to display the error when -server is provided without providing a rpc password