3852 Commits

Author SHA1 Message Date
Jannis Froese
145bc31b83 don't send feeless transactions
(cherry picked from commit 9a2f7a86fca6e243db7745cb1b15b35ce1b97b2e)
2014-06-09 00:44:35 +02:00
leofidus
15dee2a91e Merge pull request #549 from leofidus/1.7-rpctests
Fix bash-based rpc tests
2014-06-07 16:27:59 +02:00
langerhans
e1f62f53da Merge pull request #543 from nameEO/patch-7
Add some translations...
2014-06-06 21:31:38 +02:00
langerhans
fd46ab57b2 Merge branch '1.7.2-dev-batch3' of github.com:rnicoll/dogecoin into rnicoll-1.7.2-dev-batch3
Conflicts:
	contrib/devtools/README.md
	contrib/devtools/symbol-check.py
	doc/build-unix.md
2014-06-06 20:55:33 +02:00
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
nameEO
54c6fa3e7a Add some translations...
Add some korean(South Korea) translations, and change several korean expressions to familiar.
※Use "bitcoin/src/qt/locale/bitcoin_ko_KR.ts" for reference purposes.
2014-05-31 22:29:18 +09:00
Wladimir J. van der Laan
789d78540c Log BerkeleyDB version at startup
Prints the actual version of BerkeleyDB that is linked against, if
wallet support is enabled.

Useful for troubleshooting.

For example:

    2014-05-01 07:44:02 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)

    2014-05-01 07:54:25 Using BerkeleyDB version Berkeley DB 5.1.29: (October 25, 20 11)
2014-05-29 22:18:13 +01:00
Philip Kaufmann
c8ccf30103 use standard __func__ instead of __PRETTY_FUNCTION__ 2014-05-29 22:06:22 +02:00
R E Broadley
587c08f3d2 Correct indentation 2014-05-29 22:05:44 +02:00
Wladimir J. van der Laan
f3b20b1289 locale update. again... 2014-05-29 22:05:21 +02:00
langerhans
764c15a800 Make dogechain.info and chain.so default items in transaction context menu 2014-05-29 20:49:19 +02:00
Cozz Lovan
c3f48712d4 [Qt] Optionally add third party links to transaction context menu 2014-05-29 20:34:21 +02:00
langerhans
51f2a42a55 Revert "Cleaned up version of #424" - In favor of the new custom URLs
This reverts commit a4a8784ce8f514cfbe563ab74d1e972be06accf2.
2014-05-29 20:34:05 +02:00
Pieter Wuille
a954ef8874 Split AcceptBlockHeader from AcceptBlock.
Also modify some connection logic to deal with non-full blocks in the index.
2014-05-29 20:20:13 +02:00
Pieter Wuille
4340df8960 Split up CheckBlock in a block and header version 2014-05-29 20:14:00 +02:00
Simon de la Rouviere
6cfb6d6033 Add MESSAGE_START_SIZE from chainparams when loading blocks from external files. 2014-05-29 20:07:53 +02:00
Wladimir J. van der Laan
5b910bbfe5 Add missing AssertLockHeld in ConnectBlock 2014-05-29 20:07:24 +02:00
Wladimir J. van der Laan
298a7ab2e3 qt: get required locks upfront in polling functions
This avoids the GUI from getting stuck on
periodical polls if the core is holding the locks for a longer time -
for example, during a wallet rescan.
2014-05-29 20:07:17 +02:00
Wladimir J. van der Laan
e4da390764 Add required locks in tests
Unit tests with DEBUG_LOCKORDER were running into assertions.
2014-05-29 20:06:49 +02:00
Cozz Lovan
8a75a1f87f [Qt] importwallet progress 2014-05-29 20:06:24 +02:00
Pieter Wuille
d8701eb7ad Replace DecodeBase58/EncodeBase58 with direct implementation.
This removes the bignum/OpenSSL dependency.

The base58 transformation code is also moved to a separate .cpp file.
2014-05-29 20:05:40 +02:00
Cory Fields
4697e9462c script: Add test for CScriptNum
Because this class replaces some usages of CBigNum, tests have been added to
verify that they function the same way. The only difference in their usage is
the handling of out-of-range numbers.

While operands are constrained to [-0x7FFFFFFF,0x7FFFFFFF], the results may
overflow. The overflowing result is technically unbounded, but in practice
it can be no bigger than the result of an operation on two operands. This
implementation limits them to the size of an int64.

CBigNum was unaware of this constraint, so it allowed for unbounded results,
which were then checked before use. CScriptNum asserts if an arithmetic
operation will overflow an int64_t, since scripts are not able to reach those
numbers anyway. Additionally, CScriptNum will throw an exception when
constructed from a vector containing more than 4 bytes This mimics the previous
CastToBigNum behavior.
2014-05-29 20:05:07 +02:00
Cory Fields
7036baf33e script: add additional script tests 2014-05-29 20:04:45 +02:00
Cory Fields
d3755d5afb script: remove bignum dependency 2014-05-29 20:04:32 +02:00
Cory Fields
0393a1a1d9 script: switch outside users to CScriptNum 2014-05-29 20:04:26 +02:00
Cory Fields
0a3b1250f1 script: switch to CScriptNum usage for scripts 2014-05-29 20:02:43 +02:00
Cory Fields
5c0c3e2081 script: add CScriptNum class
This class holds an int64_t and replaces the use of CBigInt for script
integrals.
2014-05-29 20:02:36 +02:00
Wladimir J. van der Laan
52861fb616 AddToWallet implies BindWallet
Now that AddToWallet is called when loading transactions from the
wallet database, BindWallet can be integrated into that and does not
need to be an extra step.

Leaves behaviour unchanged, but makes the
fFromLoadWallet/!fFromLoadWallet paths in AddToWallet a bit more
symmetric.
2014-05-29 19:52:30 +02:00
Wladimir J. van der Laan
1d03869b42 chainActive locking issues resolved 2014-05-29 19:47:54 +02:00
Wladimir J. van der Laan
813a7c8d90 Add AssertLockHeld for cs_main to ChainActive-using functions
All functions that use ChainActive but do not aquire the cs_main
lock themselves, need to be called with the cs_main lock held.

This commit adds assertions to all externally callable functions
that use chainActive or chainMostWork.

This will flag usages when built with -DDEBUG_LOCKORDER.
2014-05-29 19:41:50 +02:00
Wladimir J. van der Laan
0aa5238665 translation update 2014-05-29 19:40:50 +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