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
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
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
Pieter Wuille
1653f97c8f
Do not consider blocked networks local
13 years ago
Pieter Wuille
9fc0a15cd4
Merge pull request #1285 from sipa/initerror
...
Improve error reporting at startup
13 years ago
Pieter Wuille
af4006b3f5
Enforce -nodiscover better
13 years ago
Wladimir J. van der Laan
b07ea7c74b
Merge pull request #1178 from laanwj/2012_05_move_startonsystemstartup
...
Move GetStartOnSystemStartup and SetStartOnSystemStartup to GUI code
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
82f66082b9
Merge pull request #1270 from laanwj/2012_05_overviewpage2
...
When a transaction is clicked on overview page, focus it on history page
13 years ago
Wladimir J. van der Laan
3986a05c62
Merge pull request #1274 from Diapolo/QR_Code
...
rename "QR-Code Dialog" to "QR Code Dialog" in qrcodedialog.ui as this spelling is used all over the code
13 years ago
Wladimir J. van der Laan
6da3b29e37
Merge pull request #1275 from Diapolo/askpassphrasedialog
...
remove string "TextLabel" from warningLabel, as this is unneeded and as ...
13 years ago
Wladimir J. van der Laan
df1a110d2e
Merge pull request #1268 from Diapolo/transactiondialog
...
change size of transactiondialog, to allow display of transaction-id wit...
13 years ago
Jeff Garzik
80af836ce0
Merge pull request #1277 from Diapolo/IPv6_IPv4_strings
...
use "IPv6" and "IPv4" in strings as these are the official spellings
13 years ago
Gregory Maxwell
6f7d45a323
Merge pull request #1272 from sipa/ipv6fixes
...
A few IPv6 fixes
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
Pieter Wuille
a6cd0b08f6
Partially revert f621326: xCXXFLAGS
13 years ago
Gregory Maxwell
85a2229264
Merge pull request #1269 from laanwj/2012_05_consoleimprovements
...
UI console improvements
13 years ago
Philip Kaufmann
5e19030aa1
remove string "TextLabel" from warningLabel, as this is unneeded and as such is a silly translation less to do :)
13 years ago
Philip Kaufmann
4dca553e66
set minimum size allowed by Qt Creator and rename "QR-Code Dialog" to "QR Code Dialog" as this spelling is used all over the code
13 years ago
Wladimir J. van der Laan
ae744c8b78
RPC console: don't crash on invalid input exception
13 years ago
Wladimir J. van der Laan
c6aa86afc2
Convert RPC console to QTextEdit instead of QTableView
...
* This allows copy/pasting whole or partial messages
* Handle output more consistently in console
* No more scrollbars-in-scrollbars: by setting per-pixel scrolling on the table, cells can have any height
* Decorations for "request" and "reply" are changed to the txin and txout icons instead of colored squares
13 years ago
Pieter Wuille
839c4e7966
Fix initialization of inaddr_any
13 years ago
Jeff Garzik
d960a335f8
Merge pull request #1266 from Diapolo/tab_to_space
...
convert 4 tabs into 4 x 4 spaces in bitcoinrpc.cpp
13 years ago
Wladimir J. van der Laan
3ef1f41550
When a transaction is clicked on overview page, focus it on history page
13 years ago
Wladimir J. van der Laan
97ec4e50b1
Merge pull request #1263 from Diapolo/RPCCon_ClientStartupTime
...
GUI: add the client startup time to the debug window...
13 years ago
Wladimir J. van der Laan
591b5c0f41
Merge pull request #1267 from Diapolo/sendcoinsdialog
...
add Alt-Shortcut for "Clear All" in sendcoinsdialog.ui
13 years ago
Philip Kaufmann
55f19cb809
change size of transactiondialog, to allow display of transaction-id without an ugly line-break
13 years ago
Philip Kaufmann
a24ea3dab7
add Alt-Shortcut for "Clear All" in sendcoinsdialog.ui
13 years ago
Philip Kaufmann
bc05562730
convert 4 tabs into 4 x 4 spaces in bitcoinrpc.cpp
13 years ago
Wladimir J. van der Laan
4830ff923e
Merge pull request #1265 from laanwj/2012_05_fixredundantbuild
...
Speed up build in Qt creator in common case
13 years ago
Wladimir J. van der Laan
ffd8060a98
Speed up build in Qt creator in common case
...
- Generate *.qm only when needed (and when qmake is run), this avoids a long qrc compile and link step every time
- Generate build.h every time, but only trigger link when it changed (like makefile.unix)
13 years ago
Wladimir J. van der Laan
661834d02b
Merge pull request #1261 from laanwj/2012_05_escapecsv
...
Properly escape strings when exporting CSV
13 years ago
Gregory Maxwell
9dfa3c3e04
Merge pull request #1264 from fanquake/master
...
Correct Date
13 years ago
Fordy
46667ba3e4
Correct Date
13 years ago
Fordy
8bb9660baa
Correct Date
13 years ago
Pieter Wuille
a3878873f3
Merge pull request #1021 from sipa/ipv6
...
IPv6 node support
13 years ago
Gregory Maxwell
c05271901a
Merge pull request #1260 from sipa/splitsync
...
Split synchronization mechanisms from util.{h,cpp}
13 years ago
Philip Kaufmann
d2f7778cc7
add the client startup time to the debug window / rename Version label to Client, which is better suiting now / add IBeamCursor for selectable text on the information page / make ">" sign on RPC page untranslatable / re-order XML-file tags to match real GUI element order
13 years ago
Wladimir J. van der Laan
875f71d4ef
Properly escape " in strings when exporting CSV
13 years ago
Jeff Garzik
b34c5f3c0f
Merge pull request #1101 from jgarzik/http11
...
Multithreaded JSON-RPC with HTTP 1.1 Keep-Alive support
13 years ago
Pieter Wuille
7f3ccb59da
Split synchronization mechanisms from util.{h,cpp}
13 years ago
Gregory Maxwell
eb793429f1
Merge pull request #1255 from sipa/fixversion
...
Fix version numbers of archive builds
13 years ago
Pieter Wuille
5456ef3092
Use polling instead of boost's broken semaphore on OSX
13 years ago