4078 Commits

Author SHA1 Message Date
Wladimir J. van der Laan
35fc9351d0 Improve robustness of DER recoding code
Add some defensive programming on top of #5634.

This copies the respective OpenSSL code in ECDSA_verify in
OpenSSL pre-1.0.1k (e.g. https://github.com/openssl/openssl/blob/OpenSSL_1_0_1j/crypto/ecdsa/ecs_vrf.c#L89)
more closely.

As reported by @sergiodemianlerner.

Github-Pull: #5640
Rebased-From: c6b7b29f232c651f898eeffb93f36c8f537c56d2
2015-01-12 20:20:01 +00:00
Wladimir J. van der Laan
3835f3d091 fail immediately on an empty signature
Github-Pull: #5634
Rebased-From: 8dccba6a45db0466370726ed462b9da2eae43bce
2015-01-11 20:54:55 +01:00
Cory Fields
6fa9a5e31a consensus: guard against openssl's new strict DER checks
New versions of OpenSSL will reject non-canonical DER signatures. However,
it'll happily decode them. Decode then re-encode before verification in order
to ensure that it is properly consumed.

Github-Pull: #5634
Rebased-From: 488ed32f2ada1d1dd108fc245d025c4d5f252783
2015-01-11 20:54:47 +01:00
langerhans
e5f85a3b99 Adjust version for 1.8.2 2014-12-24 23:11:46 +01:00
langerhans
432ce93412 Bump to release version 2014-12-20 20:21:50 +01:00
langerhans
93d0ddad73 Introduce -maxoutconnections= to set the maximum number of outbound connections 2014-12-20 18:11:15 +01:00
langerhans
e993b12278 Add %i to -blocknotify and replace it by the height of the block that the notification is about 2014-12-20 17:21:29 +01:00
Daniel Kraft
876f23f5f1 Remove unreachable code.
The removed case (pcHead == script.end()) can never be reached, since
we explicitly error out above if that is the case.  It is legacy from
Namecoin's merge-mining, which does not forbid this case earlier.
2014-11-21 11:22:28 +01:00
Abderraouf Adjal
438c40dcf9 optionsmodel.cpp; Use HTTPS with dogechain.info 2014-11-17 23:02:33 +01:00
nameEO
5f6b382db2 Update bitcoin_ko_KR.ts
1. Fix some mistakes(typo, omission, spacing).
2. Re-adjust sentences to proper form.
3. Replace translation of certain words to better one.
4, Update legacy translations of upstream.
-----------------------------------------------------------------------------
I commit this first, and will commit another updates after 'translation resources' updates.

thanks.
2014-10-25 19:44:10 +09:00
langerhans
ea2f35aace Merge pull request #726 from Andymeows/1.8.1-dev
Add a warning message about printing paper wallets while online
2014-10-05 18:11:35 +02:00
Andymeows
a1257a223f When printing paper wallets, add a warning message about security if connected to any peers.
Regenerate addresses at the end of the loop so that the shown wallet is the first to print.
Elaborating on the message after paper wallets are printed about ensuring print quality.
2014-10-04 21:13:26 -05:00
Ross Nicoll
66ba4b436a
Switched to older QT API calls to that paper wallet printing is compatible with Qt 4.6.4. 2014-10-04 20:49:47 +01:00
langerhans
e3de091a6a Merge pull request #721 from rnicoll/1.8.1-dev-orphan
Stricter handling of orphan transactions
2014-10-04 20:25:26 +02:00
Ross Nicoll
77f17ccf20
Add checkpoints for 371,337 and 400,000 blocks, as well as intermediary blocks. 2014-10-04 19:12:52 +01:00
Gavin Andresen
e67aacadd5 Stricter handling of orphan transactions
Prevent denial-of-service attacks by banning
peers that send us invalid orphan transactions
and only storing orphan transactions given to
us by a peer while the peer is connected.

Rebased-From: c74332c67806ed92e6e18de174671a7c30608780

Conflicts:
	src/main.cpp
2014-10-04 01:25:58 +01:00
Ross Nicoll
76ebacb657 Merge pull request #718 from michilumin/1.8.1-dev-limit-orphan-tx
1.8.1 dev limit orphan tx
2014-09-28 13:29:04 +00:00
shshshsh
5cda7594f0 Make max number of orphan blocks kept in memory a startup parameter (fixes #4253)
Rebased-From: 7b45d943b29a443f1ac808c9ee4eeed6df0db9cc

Conflicts:
	src/init.cpp
	src/main.h
2014-09-27 20:03:01 -06:00
Gavin Andresen
8a88bb6550 Store fewer orphan tx by default, add -maxorphantx option
There is no reason to store thousands of orphan transactions;
normally an orphan's parents will either be broadcast or
mined reasonably quickly.

This pull drops the maximum number of orphans from 10,000 down
to 100, and adds a command-line option (-maxorphantx) that is
just like -maxorphanblocks to override the default.

Conflicts:
	src/main.h
2014-09-27 14:33:07 -06:00
michilumin
94cf9e41d5
Initial check in of branch for conflict resolution 2014-09-27 14:30:53 -06:00
langerhans
649b819fe9 Merge pull request #716 from patricklodder/1.8.1-dev-lang-cleanup
Locale cleanup
2014-09-25 21:58:38 +02:00
langerhans
921685ceab Merge pull request #715 from patricklodder/1.8.1-dev-nl-update
NL translation update
2014-09-25 21:54:56 +02:00
Patrick Lodder
331609fe3e Clean up all locale .ts files
Used the new update-translations.py script to clean up all
locale files. Unlike bitcoin/bitcoin, we're keeping the
unfinished translation tags in place as long as we have
manual translations (whereas bitcoin uses transifex)
2014-09-25 00:43:39 +02:00
Patrick Lodder
d00af20df5 Fix translation sprintf and qt string formats
Some translations had non-matching formats, the update-translations
script would normally remove those and set it to "unfinished".
However, since those are fairly trivial to fix, those have been
manually corrected before doing a cleanup run with the update script.
2014-09-25 00:43:39 +02:00
Patrick Lodder
25573eb06b locale fix: DogecoinS -> DOGECOINS
Fix wrong capitalization in wallet encryption warning message:

"If you encrypt your wallet and lose your passphrase, you will
LOSE ALL OF YOUR DOGECOINS"
2014-09-25 00:18:43 +02:00
Patrick Lodder
e37485b5af NL translation update 2014-09-24 23:22:09 +02:00
langerhans
d2f8f916bb Merge pull request #708 from rnicoll/1.8.1-dev-millisleep
Remove useless MilliSleep() from network code
2014-09-23 23:22:30 +02:00
langerhans
df29b21b43 Merge pull request #707 from rnicoll/1.8.1-dup-orphan
Avoid repeated lookups in mapOrphanTransactions and mapOrphanTransactionsByPrev
2014-09-23 23:21:30 +02:00
langerhans
80105d09bc Merge pull request #704 from patricklodder/1.8.1-dev-lang-update
Language update from upstream
2014-09-23 23:20:48 +02:00
langerhans
038a247ff9 Merge pull request #701 from rnicoll/1.8-dev-elliptic-curve
Fail with a friendlier message on missing OpenSSL EC support
2014-09-23 23:19:37 +02:00
Ross Nicoll
7cebf77b53 Merge pull request #713 from michilumin/1.8.1-dev-limit-mapaskfor
1.8.1 dev limit mapaskfor
2014-09-22 20:06:43 +00:00
Ross Nicoll
3d45325b09 Merge pull request #712 from michilumin/1.8.1-dev-libc-compat
1.8.1 dev libc compat
2014-09-22 18:11:16 +00:00
Wladimir J. van der Laan
4ada10ac12 Limit CNode::mapAskFor
Tighten resource constraints on CNode.

Rebased-From: d4168c8
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-09-21 21:43:49 -06:00
Patrick Lodder
c6e0ab9a40 change "Bitcoin" into "Dogecoin" in *.ts after translation sync
with bitcoin/bitcoin
2014-09-20 16:03:52 +02:00
Patrick Lodder
fae9b5b3ce Revert cyrillic in bitcoin_de_AT.ts 2014-09-20 16:03:31 +02:00
phantomcircuit
6a15955363 remove useless millisleep
reduces time to service requests improving performance

Rebased-From: 9189f5fe4df1ac7ea6ca75ceada867beafda90a9
2014-09-18 21:43:56 +01:00
Gavin Andresen
678ea26b47 Fix crashing bug caused by orphan(s) with duplicate prevout.hash
Rebased-From: def2fdb
Rebased-By: Wladimir J. van der Laan
2014-09-18 20:56:27 +01:00
Wladimir J. van der Laan
5819a76d39 Avoid repeated lookups in mapOrphanTransactions and mapOrphanTransactionsByPrev
Rebased-From: 89d91f6
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
2014-09-18 20:56:16 +01:00
Andrew Poelstra
118d5dfe43 key.cpp: fail with a friendlier message on missing ssl EC support
Previously if bitcoind is linked with an OpenSSL which is compiled
without EC support, this is seen as an assertion failure "pKey !=
NULL" at key.cpp:134, which occurs after several seconds. It is an
esoteric piece of knowledge to interpret this as "oops, I linked
with the wrong OpenSSL", and because of the delay it may not even
be noticed.

The new output is

: OpenSSL appears to lack support for elliptic curve cryptography. For
more information, visit
https://en.bitcoin.it/wiki/OpenSSL_and_EC_Libraries
: Initialization sanity check failed. Bitcoin Core is shutting down.

which occurs immediately after attempted startup.

This also blocks in an InitSanityCheck() function which currently only
checks for EC support but should eventually do more. See #4081.
2014-09-18 20:29:35 +01:00
langerhans
576928108a Merge pull request #695 from michilumin/1.8.1-dev-string-length
1.8.1 dev string length
2014-09-18 17:36:24 +02:00
Wladimir J. van der Laan
02b9c56da5 qt: Language update for 0.9.3
cherry-picked from: bitcoin #e6abbce

NOTE: bitcoin_ko_KR.ts only contained translations that were
overwriting custom dogecoin-specific translations done by
@nameEO, those have been skipped.
2014-09-14 23:44:43 +02:00
Cory Fields
9082dfbb3f libc-compat: add new symbol that's now needed
Rebased-From: 565e569
2014-09-11 20:39:42 -06:00
Andymeows
c71d666465 :Changing the amount input from text to a double. This will facilitate loading address with fractional dogecoins. 2014-09-08 00:14:28 -05:00
Andymeows
b2e4d66dca Adding an early return for values that indicate 0 DOGE to send to the paper wallets.
Add the ability to send fractional amounts to paper wallets
2014-09-07 01:00:34 -05:00
Andy Mornes
621e99b702 Removing duplicate verticallabel.cpp from Makefile.am
Adding constants in place of raw numbers
Adding early exits from for loops
2014-09-04 23:01:26 -04:00
Andymeows
4655221935 Adding a missing backslash 2014-09-01 02:29:38 -04:00
Andy Mornes
2c16a446d7 Wrapping a string for translation 2014-09-01 02:20:50 -04:00
Andy Mornes
e6d2af98a6 Fixing whitespace 2014-09-01 00:16:42 -04:00
Andymeows
be602d7ce4 Demoting QRImageWidget to simpler QLabels.
Disabling wallet interaction when the wallet isn't enabled
2014-09-01 00:13:59 -04:00
Andymeows
b56c5b6ff5 Separating the code utilizing the QR Code library and making it conditional 2014-08-31 23:43:47 -04:00