Jeff Garzik
f9dd136a09
Revert "use _strnicmp (ISO C++) instead of deprecated strnicmp (POSIX) and add missing "#define strncasecmp _strnicmp" in init.cpp"
...
This reverts commit f4ac41806a
.
Reason: breaks build.
13 years ago
R E Broadley
757cec9ddd
Should only be mapped when the getdata is done.
...
Without this change, mappings will be created even after AlreadyHave equals true, and will never be erased.
13 years ago
R E Broadley
53d0e6dd6a
Report how long DBFlush took.
13 years ago
Philip Kaufmann
f4ac41806a
use _strnicmp (ISO C++) instead of deprecated strnicmp (POSIX) and add missing "#define strncasecmp _strnicmp" in init.cpp
13 years ago
R E Broadley
83e047eaa7
Was showing a negative number. Changes to positive, since negative (T minus) usually indicates a future event.
13 years ago
Gavin Andresen
f718aedd9f
Refactor: GetRandHash() method for util
13 years ago
Gavin Andresen
096e06dbb5
Refactor: move code from key.h to key.cpp
13 years ago
Philip Kaufmann
c26f3a9bd1
add 2 labels to the overviewpage that display Wallet and Transaction status (obsolete or current) / cleanup overviewpage XML ui-file
13 years ago
Wladimir J. van der Laan
8ece75aee1
Add icon for debug window
13 years ago
R E Broadley
1d764d631f
Corrected grammar. As per Principle Of Least Surprise.
13 years ago
R E Broadley
8c35bfbadf
Add /bin/sh to bitcoin-qt.pro - as some filesystems don't have the execute flag.
13 years ago
Philip Kaufmann
5f9861953e
fix RenameOver() and FileCommit() functions, to not generate compilation errors
13 years ago
Philip Kaufmann
8b4d653663
allow translation of "options" used in the --help message / split translation of RPC console welcome message and remove the need to take care of "<br>" / remove some spaces in strings and misc other stuff related to translations
13 years ago
Jeff Garzik
928d3a011c
CAddrDB: Replace BDB-managed addr.dat with internally managed peers.dat
13 years ago
Jeff Garzik
768e5d52fb
Add new utility functions FileCommit(), RenameOver()
13 years ago
Wladimir J. van der Laan
adc704563c
Add missing Q_OBJECT in bitcoin.cpp
...
Fixes translating HelpMessageBox strings.
13 years ago
Wladimir J. van der Laan
746ea6bd86
Update bitcoinstrings.cpp and bitcoin_en.ts
13 years ago
Philip Kaufmann
cd8c905dfe
add 4 new translations bg, el_GR, fr and pt_PT (based on transifex fetch from today)
13 years ago
Jeff Garzik
a7d45c5a7a
Remove dead code: CTxDB::EraseBlockIndex(), CBlockIndex::EraseBlockFromDisk()
13 years ago
Pieter Wuille
385f730f31
Hopefully final fix for the stuck blockchain issue
...
Immediately issue a "getblocks", instead of a "getdata" (which will
trigger the relevant "inv" to be sent anyway), and only do so when
the previous set of invs led us into a known and attached part of
the block tree.
13 years ago
Philip Kaufmann
34aa3112c8
adapt user-experience from messagepage / move placeholderTexts from XML to source to avoid a problem with Qt < 4.7 / add eventFilter for address field to select text when clicking in / add Clear All button / rework strings
13 years ago
Philip Kaufmann
8892579f8b
fix DebugLog file opens twice after clicking "Open" in RPC Console Information tab
13 years ago
Ricardo M. Correia
5849bd472a
Fix signed subtraction overflow in CBigNum::setint64().
...
As noticed by sipa (Pieter Wuille), this can happen when CBigNum::setint64() is
called with an integer value of INT64_MIN (-2^63).
When compiled with -ftrapv, the program would crash. Otherwise, it would
execute an undefined operation (although in practice, usually the correct one).
13 years ago
Ricardo M. Correia
62e0453ce0
Add test case for CBigNum::setint64().
...
One of the test cases currently aborts when using gcc's flag -ftrapv, due to
negating an INT64_MIN int64 variable, which is an undefined operation.
This will be fixed in a subsequent commit.
13 years ago
Wladimir J. van der Laan
29b79e4c0e
Get rid of snprintf (except one) with fixed buffers, shorten code
...
- Use strprintf or vstrprintf instead of snprintf
13 years ago
Wladimir J. van der Laan
5a060b8dc8
RPC console: scroll to the end when user enters a command
...
- Ensures that the command and reply is visible
13 years ago
Pieter Wuille
91dace35a1
Do not listen on blocked networks
13 years ago
Pieter Wuille
55bb0cfbb6
Allow binding to the any address, and report failure
13 years ago
Pieter Wuille
0f1707de67
-onlynet instead of -blocknet
13 years ago
Philip Kaufmann
966ae00fe4
make CheckDiskSpace() use a global static const uint64 for checking required disk space and remove 2 ugly spaces from a message string
13 years ago
Jeff Garzik
0fb78eae34
Always check return values of TxnBegin() and TxnCommit()
13 years ago
Ricardo M. Correia
fe78c9ae8b
Don't overflow signed ints in CBigNum::setint64().
...
CBigNum::setint64() does 'n <<= 8', where n is of type "long long".
This leads to shifting onto and past the sign bit, which is undefined
behavior in C++11 and can cause problems in the future.
13 years ago
Pieter Wuille
ca81464697
Use getnameinfo() to get canonical IPv6 addresses
13 years ago
Pieter Wuille
09b4e26a44
Really do not consider blocked networks local
13 years ago
Ricardo M. Correia
4843b55fd1
Make CNetAddr::GetHash() return an unsigned val.
...
This prevents an undefined operation in main.cpp, when shifting the hash value
left by 32 bits.
Shifting a signed int left into the sign bit is undefined in C++11.
13 years ago
Philip Kaufmann
51ce20d5da
update some strings used as warning messages in sendcoinsdialog.cpp
13 years ago
Wladimir J. van der Laan
9f5b11e6fd
Move help message out of AppInit2
...
- Solves #1278 , attempts to address #1049
- Removes \t's from help message that are removed afterwards anyway
- Moves UI-specific command-line options help to UI code
- Moves "-detachdb" out of #ifdef USE_UPNP
13 years ago
Pieter Wuille
1653f97c8f
Do not consider blocked networks local
13 years ago
Pieter Wuille
8f737d28a6
Only encode IPv4 addresses in IRC nicks
13 years ago
Philip Kaufmann
0985816bf6
ensure that no double timestamps show up in the debug.log, by removing manual timestamps from the source (now only -logtimestamps parameter adds timestamps to debug.log)
13 years ago
Pieter Wuille
af4006b3f5
Enforce -nodiscover better
13 years ago
Pieter Wuille
ac7c7ab99a
Improve error reporting at startup
13 years ago
Wladimir J. van der Laan
67d4cbab46
Move GetStartOnSystemStartup and SetStartOnSystemStartup to GUI code
13 years ago
Wladimir J. van der Laan
99fdc1d829
Prevent tooltip filter from ever causing infinite loops
13 years ago
Pieter Wuille
22db3f2c77
Fix warning about uninitialized value
...
Only reported when using -flto.
13 years ago
Pieter Wuille
5a3cb32e59
Take -port into account when resolving -bind's
13 years ago
Philip Kaufmann
ea933b03b4
use "IPv6" and "IPv4" in strings as these are the official spellings and make ParseNetwork() in netbase.cpp case-insensitive
13 years ago
Pieter Wuille
139d2f7c29
Keep local service information per address
...
Keep local service information per CNetAddr instead of per CService,
but move the port into the information kept on it.
13 years ago
Pieter Wuille
89b5616d10
Do not signal outbound semaphore if uninitialized
13 years ago
Pieter Wuille
45dcf63a62
Only check for port# after : in ConnectSocketByName
13 years ago