Commit graph

5876 commits

Author SHA1 Message Date
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
langerhans 944b9e52ab Merge pull request #540 from langerhans/btc-0.9.2-batch-4
BTC 0.9.2 batch 4
2014-06-06 20:49:00 +02:00
langerhans 9907dafaa9 Merge pull request #546 from IeuanG/patch-3
Fixed refs to bitcoin
2014-06-01 21:21:11 +02:00
IeuanG 4a0dc9f737 Update INSTALL 2014-06-01 20:19:28 +01:00
IeuanG bdc3680153 Fixed refs to bitcoin
Changed refs from bitcoin to dogecoin
2014-06-01 20:13:40 +01:00
langerhans 6406226f82 Merge pull request #545 from IeuanG/patch-2
Fixed the refs to bitcoin
2014-06-01 20:59:57 +02:00
IeuanG da0a9b4234 Fixed the refs to bitcoin
Changed refs from bitcoin to dogecoin. Am I in the right branch this time?
2014-06-01 19:58:24 +01:00
Wladimir J. van der Laan 746b3ec76e devtools: have symbol check script check for exported symbols
After last commit, our executables should export no symbols anymore.  To
make sure that this stays the case, verify this in the symbol checker
script.
2014-05-29 23:42:19 +01:00
Wladimir J. van der Laan 48a9c05875
devtools: add script to check symbols from Linux gitian executables
Add a script to check that the (Linux) executables produced by gitian
only contain allowed gcc, glibc and libstdc++ version symbols.  This
makes sure they are still compatible with the minimum supported Linux
distribution versions.

Conflicts:

	contrib/devtools/README.md
2014-05-29 23:41:58 +01:00
Wladimir J. van der Laan b88566cc0c
devtools: add a script to fetch and postprocess translations
Run this script from the root of the repository to update all translations from transifex.
It will do the following automatically:

- create a transifex configuration file
- fetch all translations
- post-process them into valid and committable format

Conflicts:

	contrib/devtools/README.md
2014-05-29 23:40:13 +01:00
Wladimir J. van der Laan 4154ed658f qt: add transifex configuration file
This is a project-wide configuration file and should be the same for
everyone.
Also remove mention of creating it yourself from the translation process.
2014-05-29 22:27:06 +01:00
Wladimir J. van der Laan bd1bc7db09
Update build instructions for Berkeley DB
- People were having problems with the .so when installing in
  alternative locations.
  Like gitian, build a static library with -fPIC that can
  be embedded into the executables.

- Add some missing steps

- Add reminder that BerkeleyDB is only needed when wallet support is
  enabled

Conflicts:

	doc/build-unix.md
2014-05-29 22:25:33 +01: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
Wladimir J. van der Laan 6cbf8affee
gitian: build against Qt 4.6
Should make it possible to run the resulting GUI executable on
Linux distributions that use Qt 4.6, such as Debian Wheezy and Tails.

Builds a mini-SDK for building against Qt 4.6. This includes the headers
as well as host utilities such as `lrelease`, `qrc` and `moc`.

This speeds up the gitian build a bit - libqt4-dev pulled in a lot of packages,
and is no longer needed as this provides a replacement of our own.

Note: This does not replace the Qt build with at static library. After this
commit we still build dynamically against the system Qt library. The only
difference is that compatibility with an older version is maintained. This
loses minor GUI functionality (such as setPlaceholderText) but still
allows integration into the window management of the host OS, unlike
when statically linking.

Conflicts:

	doc/release-process.md
2014-05-29 22:11:14 +01:00
Wladimir J. van der Laan 3d20cf3122
gitian: don't export any symbols from executable
This avoids conflicts between the libraries statically linked into bitcoin and any
libraries we may link dynamically (such as Qt and OpenSSL, see issue #4094).
It also avoids start-up overhead to not export any unnecessary symbols.
To do this, build a linker script that marks all symbols as local.

Conflicts:

	contrib/gitian-descriptors/gitian-linux.yml
2014-05-29 22:05:19 +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 6c4e457a23 Merge pull request #539 from patricklodder/1.7.2-dev-merge-btc-bootstrap-info
0.9.2 bootstrap info, refactored
2014-05-29 22:00:37 +02:00
Patrick Lodder 2aa2138d9c refactored bootstrap info for doge infra and screenshots 2014-05-29 23:58:06 +04:00
super3 8575bf9d6e Added Blockchain Bootstraping Tutorial
Per @laanwj request in #3724

Fixing Checkpoints Comment

Fixed Image Paths

Removed requirement.

Update Torrent Links.

Update Links 2

Link would not work.

2 Small Fixes

Changed in to from

@laanwj suggestion on safety
2014-05-29 23:47:26 +04:00
Matt Corallo 45120f08ee update Debian files (not much doge in there though, where is our Debian maintainer? :D) 2014-05-29 20:55:57 +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 a4a8784ce8.
2014-05-29 20:34:05 +02:00
Wladimir J. van der Laan 1231942969 devtools: add script to check symbols from Linux gitian executables
Add a script to check that the (Linux) executables produced by gitian
only contain allowed gcc, glibc and libstdc++ version symbols.  This
makes sure they are still compatible with the minimum supported Linux
distribution versions.
2014-05-29 20:21:21 +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
Michael Ford b4dbb4e5fe Revision in OS X plist 2014-05-29 20:09:24 +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
Altoidnerd 135960f8fe Point to BDB 5.1 2014-05-29 18:32:59 +02:00
Wladimir J. van der Laan d9c96f4fb3 Update doc/gitian-building.md for new gitian
The patch to make it possible to configure the LXC IPs has been merged
upstream. This means that it is no longer needed to patch gitian.
Remove that workaround.
2014-05-29 18:29:36 +02:00
langerhans 9e6df86fc7 Merge pull request #536 from langerhans/btc-0.9.2-batch-3
BTC 0.9.2 batch 3
2014-05-28 10:06:32 +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