3822 Commits

Author SHA1 Message Date
Jannis Froese
8826b6bdc4 Make rewards in regtest mode less random
This allows sane testing. Regtest mode is primarily intended for automated
testing, so this simplification makes sense
2014-06-02 21:51:04 +02:00
Jannis Froese
72bfa77114 fix regtest mining in internal miner
Regtest-mode is a special case for the internal miner. The setgenerate
RPC code is written with this assumption. Code taken from current Bitcoin
0.9
2014-06-02 21:51:04 +02:00
Jannis Froese
44f5b19a90 change remaining printf to LogPrintf in miner.cpp 2014-06-02 21:51:03 +02:00
langerhans
464394c832 Supply working pre-generated sighash test vectors. 2014-05-26 21:51:41 +02:00
langerhans
0b97f55c66 Missed a line in one commit 2014-05-26 21:43:49 +02:00
Warren Togami
f5d6f82338 VERSION obtained from source instead of the previous git tag.
Drawback: The version string is no longer a valid git identifier.
          For this reason the 'g' short hash prefix has been removed.

Exception: When building directly from a tag this behaves exactly like the previous behavior.
           This allows formatting release versions with precision     i.e. v0.9.2
           This also allows arbitrary topicbranch names               i.e. v0.9.1-glibc-compat
2014-05-26 21:34:40 +02:00
Philip Kaufmann
3e2a2c9cd4 [Qt] catch Windows shutdown events while client is running
- prevents unsafe shutdowns on Windows, which is known to be
  able to cause problems with wallet.dat
- if a users ends a Windows session, this will initiate a client shutdown
  and show a Windows dialog, that tells the user what is going on (for
  Windows Vista and higher it will even show a reason for blocking the
  Windows session end)
2014-05-26 21:18:41 +02:00
rxl
97cedff301 Improve and expand base58 comments
update comments so doxygen will pick them up
2014-05-26 21:15:01 +02:00
Cory Fields
28befb4c53 build: add symbol for upcoming gcc 4.9's libstdc++ 2014-05-26 21:02:53 +02:00
Cory Fields
4952ef8bf1 build: add an option for enabling glibc back-compat
Using "./configure --enable-glibc-back-compat" will attempt to be
compatible with a target running glibc abi 2.9 and libstdc++ abi 3.4.
2014-05-26 20:55:28 +02:00
Cory Fields
975cb511ee build: add glibc/libstdc++ back-compat stubs
glibc/libstdc++ have added new symbols in later releases. When running a new
binary against an older glibc, the run-time linker is unable to resolve the
new symbols and the binary refuses to run.

This can be fixed by adding our own versions of those functions, so that the
build-time linker does not emit undefined symbols for them.

This enables our binary releases to work on older Linux distros, while not
incurring the downsides of a fully static binary.
2014-05-26 20:55:05 +02:00
Gregory Maxwell
2def10fd70 Correct some proxy related socket leaks. 2014-05-26 20:54:03 +02:00
Gregory Maxwell
b9ad84bb6c Prevent socket leak in ThreadSocketHandler.
When we are over our outbound limit ThreadSocketHandler would try to
 keep the connection if the peer was addnoded.

This didn't actually work for two reasons: It didn't actually run
 the accept code due to mistaken code flow, and because we have a
 limited number of outbound semaphores it couldn't actually use the
 connection.

Instead it leaked the socket, which might have caused issue #4034.

This patch just takes out the non-functioning white-listing for now.
2014-05-26 20:53:05 +02:00
Luke Dashjr
2f2de3e983 Bugfix: configure: Look in libx32 subdirectory for boost libraries 2014-05-26 20:40:34 +02:00
Hector Jusforgues
560170eada Fix a typo in RPC signrawtransaction help 2014-05-26 20:27:51 +02:00
Cory Fields
071d7d2613 build: Sync ax_boost_base.m4 with upstream.
This should fix 32bit boost detection on Ubuntu Saucy+. Fixes #3945.
2014-05-26 20:20:47 +02:00
Wladimir J. van der Laan
c5b35deae6 Show error message if ReadConfigFile fails
A runaway exception was raised if ReadConfigFile fails (usually
due to a parse error in bitcoin.conf). Show an error message instead.

Fixes #4013.
2014-05-26 20:20:11 +02:00
Gregory Maxwell
5b0ac349e4 Move assert(pindexNew); to above where we dereference pindexNew. 2014-05-26 20:15:04 +02:00
Cozz Lovan
8c541fea46 [Qt] rescan progress 2014-05-26 20:02:44 +02:00
Philip Kaufmann
21fe4683e8 [Qt] small cleanup of coincontroldialog 2014-05-26 19:53:20 +02:00
Philip Kaufmann
dac9eb4bcb unified and better log/error messages for CDBEnv/CDB 2014-05-26 19:49:21 +02:00
Manuel Araoz
fa51037024 Add code generating data/sighash.json test data 2014-05-26 19:41:56 +02:00
Manuel Araoz
b43c35599c Add sighash tests from data file 2014-05-26 19:41:48 +02:00
paveljanik
06ce2db0e5 Use new daemon name 2014-05-26 19:37:14 +02:00
Brandon Dahler
c969e6fa09 Wrap create_directory calls in try catch-blocks 2014-05-26 19:34:50 +02:00
Wladimir J. van der Laan
252ece1830 Fix typo in createmultisig help
iCreateMultisig is not a thing.

[Also dogeify it]
2014-05-26 19:26:14 +02:00
Wladimir J. van der Laan
a1b637a4d9 Organize RPCCommands table 2014-05-26 19:01:54 +02:00
Wladimir J. van der Laan
75b762fe13 qt: Don't require db_cxx.h when wallet disabled
Fix #3978.
2014-05-26 19:00:02 +02:00
Wladimir J. van der Laan
58a49fea2f build: improve missing boost error reporting 2014-05-26 18:57:48 +02:00
Wladimir J. van der Laan
a8f53a2a28 Fix printblocktree output (bitcoin/bitcoin@af4c2ac8ce) 2014-05-26 18:54:49 +02:00
Bardi Harborow
26d3a89b1c nHighTransactionFeeWarning (bitcoin/bitcoin@ffeb47366d) 2014-05-26 18:52:13 +02:00
langerhans
af86d72a64 s/bit/doge in comment 2014-05-26 12:32:34 +02:00
Yoichi Hirai
b4c8ca4f7e remove an assignment which is never used. 2014-05-25 18:58:11 +02:00
Wladimir J. van der Laan
6510c1ef3a 'sendrawtransaction' improvements
- Make it report the reject code and reason
- Make it possible to re-send transactions that are already in the mempool
2014-05-25 18:57:45 +02:00
Pieter Wuille
30f5429536 Per-peer block download tracking and stalled download detection.
Keep track of which block is being requested (and to be requested) from
each peer, and limit the number of blocks in-flight per peer. In addition,
detect stalled downloads, and disconnect if they persist for too long.

This means blocks are never requested twice, and should eliminate duplicate
downloads during synchronization.
2014-05-25 18:56:47 +02:00
Philip Kaufmann
79a331b05c add constant for shared GUI core par settings. 2014-05-25 18:41:57 +02:00
Philip Kaufmann
d7c3df5b61 Fix formatting 2014-05-25 18:31:44 +02:00
gubatron
ddaef95da7 [QT] Fixes feel when resizing the last column on tables (issue #2862)
Re-submitting this pull request with a single commit.

This patch introduces a GUIUtil class that is used when setting up the 2 tables we have so far on the Qt-GUI.
In the past you could only resize the last column, which has BTC amounts from the right border of the column header, something that was rather unnatural.

If a new table were ever to be added to the interface, fixing the last columns resizing behavior is rather simple. Just look at how we initialize here a TableViewLastColumnResizingFixer object when setting up the table header's behavior, and then how we override the resize event of the component (can be the table, or the dialog) and we invoke columnResizingFixer->stretchColumnWidth(columnIndex);
2014-05-25 18:22:55 +02:00
Haakon Nilsen
79b5e762cf qt: Enable and disable the Show and Remove buttons for requested payments history
based on whether any entry is selected.
2014-05-25 18:22:23 +02:00
Wladimir J. van der Laan
a67c57889a Remove duplicate from src/makefile.am
chainparams.cpp should not be in both libbitcoin_common and
libbitcoin_server. Also re-sort the sources list.
2014-05-25 18:13:56 +02:00
Cozz Lovan
836eca6b2f Improve command line options output 2014-05-25 18:11:40 +02:00
Wladimir J. van der Laan
85f6c2b70d qt: Only override -datadir if different from the default
Fixes #3905.
2014-05-25 18:05:08 +02:00
Wladimir J. van der Laan
c805f0b799 qt: Do proper boost::path conversion
Convert from QString unicode from/to the OS-dependent locale
as used by boost::filesystem::path as needed.

Solves #3916.
2014-05-25 18:04:27 +02:00
Wladimir J. van der Laan
c88b4903c1 Fix test build after d138598
Building the tests was giving some vague error message about a doubly-defined
symbol.

The solution is to define ShutdownRequested in test_bitcoin.cpp as well
so that init.cpp does not get pulled in.
2014-05-25 18:03:15 +02:00
Luke Dashjr
a4797f9bdb Update moved and dead links 2014-05-25 18:02:48 +02:00
Gavin Andresen
c26c37e554 Fix regression tests
Taught bitcoind to close the HTTP connection after it gets a 'stop' command,
to make it easier for the regression tests to cleanly stop.
Move bitcoinrpc files to correct location.
Tidied up the python-based regression tests.
2014-05-25 18:01:33 +02:00
Isidoro Ghezzi
027432787b RPC command getmininginfo showing right genproclimit 2014-05-25 17:56:49 +02:00
Chris Beams
c29370420c Remove stale gitignore 2014-05-25 17:56:17 +02:00
Wladimir J. van der Laan
8b49e71470 Translation update (from bitcoin/bitcoin@788590736d) 2014-05-24 22:28:49 +02:00
Philip Kaufmann
0ad5389437 [Qt] remove space from translation of client bitness
- its rather easy to leave out the space on Transifex, so remove it from
  the string
2014-05-24 19:04:50 +02:00