Wladimir J. van der Laan
6032e4f4e7
get rid of strlcpy.h
...
Don't use hand-rolled string manipulation routine with a fixed
buffer in the bitcoin core, instead make use of c++ strings and boost.
12 years ago
Philip Kaufmann
95e625d235
fix wrong (signed/unsigned) printf format specifier in bitcoinrpc.cpp
...
- also includes the required bitcoinstrings.cpp update
12 years ago
Gavin Andresen
cac6b389d1
Avoid crashes at shutdown due to printf() in global destructors.
12 years ago
Wladimir J. van der Laan
285746d3db
Add constants for HTTP status codes
12 years ago
Wladimir J. van der Laan
738835d7b8
Document RPC error codes
...
Replace all "magic values" in RPCError(...) by constants.
12 years ago
Wladimir J. van der Laan
61fd72695f
When datadir missing, show messagebox instead of printing error to stderr
12 years ago
Philip Kaufmann
81bbef2609
add LOCK() for proxy related data-structures
...
- fix #1560 by properly locking proxy related data-structures
- update GetProxy() and introduce GetNameProxy() to be able to use a
thread-safe local copy from proxyInfo and nameproxyInfo
- update usage of GetProxy() all over the source to match the new
behaviour, as it now fills a full proxyType object
- rename GetNameProxy() into HaveNameProxy() to be more clear
12 years ago
Wladimir J. van der Laan
366944431b
Pull changed translations from transifex
...
There was also a new translation available, "ja" (Japanese), however
almost nothing was filled in yet, so I'm not including it for this release.
12 years ago
Wladimir J. van der Laan
f1e262c8e1
Translation update for 0.7.1
...
Also clarify translation process that the package `gettext` is needed to run string extractor.
12 years ago
Wladimir J. van der Laan
bb353618f1
Send --help message to stdout i.s.o stderr
...
This allows fun stuff such as `bitcoin --help | less`, and more
easy piping to files.
Looking at other tools such as bash, gcc, they all send their help
text to stdout.
12 years ago
Wladimir J. van der Laan
529a4d4824
remove "checkorder" and "reply" P2P commands
...
These command are a leftover from send-to-IP transactions, which have been
removed a long time ago.
Also removes CNode::mapRequests and CNode::PushRequests, as these were
only used for the mentioned commands.
12 years ago
Philip Kaufmann
7bc65ff108
move most explicit getters in optionsmodel to header
...
- is more consistent and saves quite some lines of code
12 years ago
Wladimir J. van der Laan
827d8c2e0c
Revert "Remove -Wformat* warnings from makefiles"
...
This reverts commit 14ac0adcc7
.
12 years ago
Philip Kaufmann
d210f4f5b8
fix -Wformat warnings all over the source
12 years ago
Wladimir J. van der Laan
bcc292b22d
Extend printf warnings to error()
12 years ago
Wladimir J. van der Laan
d6b13283d1
data-driven base58 CBitcoinAddress/CBitcoinSecret tests
...
Arbitrary numbers of test vectors can be generated using the script
`gen_base58_test_vectors.py`.
12 years ago
Rune K. Svendsen
1bf66fcc0a
When encrypting the wallet, warn user that old backups will become useless.
...
Don't include HTML in translation strings. Do split the huge message over several lines.
Prettier lines
12 years ago
kjj2
31a8b70ee3
Add a backup warning to the encryptwallet RPC command
12 years ago
Philip Kaufmann
9c8dc7caf1
harmonize printf format characters
...
- remove the "%" character from format characters for (s)size_t and
ptrdiff_t and harmonize them with the ones for int64 and uint64
12 years ago
Pieter Wuille
2e3ffb2d82
Remove stack randomization
12 years ago
xanatos
50e01ee620
toHTML won't add empty wtx.mapValue elements
...
As the code was before, toHTML added empty elements to mapValue to check for their existance. Now first it check for their existance and then for their non-emptiness.
Removed a duplicated identical if
There are two equal ifs, one inside another. If the first one is true, then the second one is true.
12 years ago
Virgil Dupras
fee10d800e
Fixed compilation error with clang.
...
Previously, trying to compile with clang would result in the error: assigning to 'objc_object *' from incompatible type 'DockIconClickEventHandler *'
12 years ago
Wladimir J. van der Laan
14ac0adcc7
Remove -Wformat* warnings from makefiles
...
commit 5a1a3622
effectively enabled these warnings, but they need
to be fixed before being enabled in the general build scripts.
12 years ago
Jeff Garzik
189eb6a989
walletdb.h: remove dead code
12 years ago
Mark Friedenbach
95d7f00295
Documented bug in sign-extension behavior of opcodes OP_AND, OP_OR, and OP_XOR.
...
Due to a bug in the implementation of MakeSameSize(), using OP_AND, OP_OR, or OP_XOR with signed values of unequal size will result in the sign-value becoming part of the smaller integer, with nonsensical results. This patch documents the unexpected behavior and provides the basis of a solution should decision be made to fix the bug in the future.
12 years ago
Wladimir J. van der Laan
4d369ec30c
Update comment, we're no longer using boost::interprocess::scoped_lock
12 years ago
kjj2
b202d43076
Fix: when testnet=1 specified, change default ports to 18332 and 18333
12 years ago
Jeff Garzik
22f9b06903
Send 'mempool' P2P command at the start of each P2P session
...
to query remote node mempool contents.
12 years ago
Jeff Garzik
52c90a2b2b
Import $DataDir/bootstrap.dat automatically, if it exists.
...
As discussed on IRC. Intended to make using an external blockchain download
solution just a bit easier.
12 years ago
Jeff Garzik
93dd68e924
P2P: Do not request blocks from peers with fewer blocks than us
...
If the remote node has a shorter chain, do not waste our
special getblocks request on them.
12 years ago
kjj2
3731f5788e
Adds a stopdetach <detach> RPC command. <detach> defaults to true. Works just like stop, but overrides the commandline/config file
...
-detachdb option. Useful for upgrading, for example. Lets you use fast stops usually, but force a detach when needed. Also, allows
you to do a fast stop in a system normally configured for fast stops.
12 years ago
fanquake
ea9eaf9dec
Update Qt include
...
Update Qmenu include
This is to be more consistent with the rest of the source
Update Qt Includes
12 years ago
Philip Kaufmann
bb86cffa56
additional fix for #1843
...
- a shortcut on "receive coins" was used twice
12 years ago
fanquake
e1eb3d4451
Update Bugreport Links
...
Update Qt Links
Revert Qt source link
Update Qt links
12 years ago
fanquake
0eaaa83ba5
Update Bitcoin to use OpenSSL 1.0.1c
...
Bump deps tp 0.0.5
Small docs corrections
12 years ago
Wladimir J. van der Laan
38682648c2
Remove unnecessary text from tooltip in AddressBookPage
12 years ago
Philip Kaufmann
da9413d913
fix #1843 by changing 2 GUI shortcuts
12 years ago
Philip Kaufmann
81605d90f5
enhance Qt5 compatibility
...
- replace Q_WS_MAC (not supported anymore in Qt5) with Q_OS_MAC (supported
in Qt4/5)
12 years ago
Wladimir J. van der Laan
3ccbaa56f4
comment update: it's -> its
12 years ago
Pieter Wuille
58bc86e37f
Check for canonical public keys and signatures
...
Only enabled inside tests for now.
12 years ago
Gavin Andresen
f2b066da70
Update gitignore and Makefiles for build.h move from src/ to src/obj
12 years ago
Jeff Garzik
b1d3e95a0a
When rejected TX relay due to lack of fees, log full txid
12 years ago
Jeff Garzik
ea0796bde3
Trim trailing whitespace for src/*.{h,cpp}
12 years ago
Gavin Andresen
8f09e4cac4
Give makefiles 'test' and 'check' targets to compile and run unit tests
12 years ago
Gavin Andresen
5add0b0d0f
Bump client version to 0.7.0.99 now that 0.7.0 release is final.
12 years ago
Christian von Roques
48a10a3780
reimplement CBigNum's compact encoding of difficulty targets
...
Use shifts instead of going through the MPI representation of BIGNUMs.
Be careful to keep the meaning of 0x00800000 as sign bit.
12 years ago
Christian von Roques
6f0cecfc47
tests for SetCompact and GetCompact of CBigNum
12 years ago
Wladimir J. van der Laan
7fddf1210e
update comment, secure_allocator is defined in allocators.h
12 years ago
Philip Kaufmann
463a1cab43
fix signed/unsigned in strprintf and CNetAddr::GetByte()
...
- I checked every occurance of strprintf() in the code and used %u, where
unsigned vars are used
- the change to GetByte() was made, as ip is an unsigned char
12 years ago
Gavin Andresen
0a4e67afad
Bump client version number for 0.7.0rc3
12 years ago