Philip Kaufmann
cf04d83624
add OpenSSL RAND_cleanup() on OpenSSL shutdown
...
- to securely erase the memory used by the PNRG
- also rework 2 comments in OpenSSL init
2014-06-26 11:04:31 +02:00
Wladimir J. van der Laan
75c82d4923
Move coins.cpp and keystore.cpp to libbitcoin_common
...
Prepare for introduction of `bitcoin-tx` tool.
2014-06-25 10:31:35 +02:00
Wladimir J. van der Laan
84ce18ca93
Remove unnecessary dependencies for bitcoin-cli
...
This commit removes all the unnecessary dependencies (key, core,
netbase, sync, ...) from bitcoin-cli.
To do this it shards the chain parameters into BaseParams, which
contains just the RPC port and data directory (as used by utils and
bitcoin-cli) and Params, with the rest.
2014-06-25 10:31:35 +02:00
Wladimir J. van der Laan
14f888ca80
Move network-time related functions to timedata.cpp/h
...
The network time-offset-mangement functions from util.cpp are moved to
timedata.(cpp|h). This breaks the dependency of util on netbase.
2014-06-25 09:24:50 +02:00
Wladimir J. van der Laan
208bf5b9e0
Merge pull request #3839
...
fd704c7
move pow constants to chainparams (jtimon)
df852d2
Refactor proof of work related functions out of main (jtimon)
2014-06-25 09:14:36 +02:00
Wladimir J. van der Laan
27383b9015
Merge pull request #4390
...
6dc90ed
replace 3 separate calls to WSAGetLastError() with 1 (Philip Kaufmann)
2014-06-25 07:20:42 +02:00
Whit J
e3aedbae9b
Consistent lettering
2014-06-24 17:23:05 -07:00
Wladimir J. van der Laan
6e8472ec7c
Merge pull request #4403
...
5fbb4c9
[Qt] fix links in about window not opening (Philip Kaufmann)
2014-06-24 18:07:45 +02:00
Wladimir J. van der Laan
0410d11b3a
Merge pull request #4130
...
1c750db
remove -tor compatibility code (only allow -onion) (Philip Kaufmann)
2014-06-24 17:51:32 +02:00
Wladimir J. van der Laan
5dd0bfefcb
Merge pull request #4169
...
0655fac
miner: indentation fixes, remove for (;;) (Philip Kaufmann)
2014-06-24 17:17:13 +02:00
Wladimir J. van der Laan
d4392c8989
Merge pull request #3674
...
77cbd46
Let -zapwallettxes recover transaction meta data (Cozz Lovan)
2014-06-24 17:04:52 +02:00
Philip Kaufmann
5fbb4c9b58
[Qt] fix links in about window not opening
...
- closes #4402
2014-06-24 16:36:14 +02:00
Philip Kaufmann
1c750dbd40
remove -tor compatibility code (only allow -onion)
...
- exit, if -tor option is found and give error to user
2014-06-24 16:07:20 +02:00
Philip Kaufmann
6dc90ed8fa
replace 3 separate calls to WSAGetLastError() with 1
2014-06-24 08:46:12 +02:00
jtimon
fd704c7b2c
move pow constants to chainparams
2014-06-23 23:10:24 +02:00
jtimon
df852d2bcc
Refactor proof of work related functions out of main
2014-06-23 23:10:24 +02:00
Cory Fields
f3967bcc50
build: fix build weirdness after 54372482
.
...
bitcoin-config.h moved, but the old file is likely to still exist when
reconfiguring or switching branches. This would've caused files to not rebuild
correctly, and other strange problems.
Make the path explicit so that the old one cannot be found.
Core libs use config/bitcoin-config.h.
Libs (like crypto) which don't want access to bitcoin's headers continue
to use -Iconfig and #include bitcoin-config.h.
2014-06-23 14:04:38 -04:00
Wladimir J. van der Laan
a652787737
Merge pull request #4314
...
b3c912d
[Qt] Change Coin control labels and tooltips because of non-rounding fees (Cozz Lovan)
2014-06-23 12:07:50 +02:00
Wladimir J. van der Laan
fa126effc2
Avoid undefined behavior using CFlatData in CScript serialization
...
`&vch[vch.size()]` and even `&vch[0]` on vectors can cause assertion
errors with VC in debug mode. This is the problem mentioned in #4239 .
The deeper problem with this is that we rely on undefined behavior.
- Add `begin_ptr` and `end_ptr` functions that get the beginning and end
pointer of vector in a reliable way that copes with empty vectors and
doesn't reference outside the vector
(see https://stackoverflow.com/questions/1339470/how-to-get-the-address-of-the-stdvector-buffer-start-most-elegantly/1339767#1339767 ).
- Add a convenience constructor to CFlatData that wraps a vector.
I added `begin_ptr` and `end_ptr` as separate functions as I imagine
they will be useful in more places.
2014-06-23 10:38:15 +02:00
Wladimir J. van der Laan
52d4abfdef
Merge pull request #4388
...
3dc1464
add missing vhListenSocket.clear(); to CNetCleanup() (Philip Kaufmann)
2831a03
remove unused CNode::Cleanup() (Philip Kaufmann)
2014-06-23 10:21:38 +02:00
Wladimir J. van der Laan
82f2bba1ad
Merge pull request #4391
...
b612bde
remove unneded class CNodeCombinedStats; from rpcconsole.cpp (Philip Kaufmann)
2014-06-23 10:01:07 +02:00
Philip Kaufmann
b612bde521
remove unneded class CNodeCombinedStats; from rpcconsole.cpp
...
- also 2 small style fixes
2014-06-23 08:06:52 +02:00
Pieter Wuille
d4e4e05435
Merge pull request #4309
...
d38da59
Code simplifications after CTransaction::GetHash() caching (Pieter Wuille)
4949004
Add CMutableTransaction and make CTransaction immutable. (Pieter Wuille)
2014-06-22 20:45:30 +02:00
Pieter Wuille
6b40eabbcf
Merge pull request #4381
...
806fd19
Allocate receive buffers in on the fly (Pieter Wuille)
2014-06-22 17:43:40 +02:00
Philip Kaufmann
3dc1464f0a
add missing vhListenSocket.clear(); to CNetCleanup()
2014-06-22 14:52:38 +02:00
Philip Kaufmann
2831a03b79
remove unused CNode::Cleanup()
2014-06-22 14:51:38 +02:00
Philip Kaufmann
0655fac0b1
miner: indentation fixes, remove for (;;)
...
- change a for (;;) into while (true), as we nowhere else use the first
- init nNonceFound to 0
- fix indentation in BitcoinMiner try/catch block
2014-06-22 00:33:42 +02:00
Pieter Wuille
d38da59bf6
Code simplifications after CTransaction::GetHash() caching
2014-06-22 00:06:17 +02:00
Pieter Wuille
4949004d68
Add CMutableTransaction and make CTransaction immutable.
...
In addition, introduce a cached hash inside CTransaction, to prevent
recalculating it over and over again.
2014-06-21 22:59:03 +02:00
Pieter Wuille
8f59251b83
Merge pull request #4100
...
a0495bb
Add <Hasher>::OUTPUT_SIZE (Pieter Wuille)
4791b99
crypto: create a separate lib for crypto functions (Cory Fields)
f2647cc
crypto: explicitly check for byte read/write functions (Cory Fields)
5437248
build: move bitcoin-config.h to its own directory (Cory Fields)
3820e01
Extend and move all crypto tests to crypto_tests.cpp (Pieter Wuille)
7ecd973
Move {Read,Write}{LE,BE}{32,64} to common.h and use builtins if possible (Pieter Wuille)
a5bc9c0
Add built-in RIPEMD-160 implementation (Pieter Wuille)
13b5dfe
Move crypto implementations to src/crypto/ (Pieter Wuille)
1cc344c
Add built-in SHA-1 implementation. (Pieter Wuille)
85aab2a
Switch miner.cpp to use sha2 instead of OpenSSL. (Pieter Wuille)
cf0c47b
Remove getwork() RPC call (Pieter Wuille)
7b4737c
Switch script.cpp and hash.cpp to use sha2.cpp instead of OpenSSL. (Pieter Wuille)
977cdad
Add a built-in SHA256/SHA512 implementation. (Pieter Wuille)
2014-06-21 22:52:46 +02:00
Jeff Garzik
b4ccf0a5c7
Merge pull request #4379 from Diapolo/cleanup_compat
...
small cleanup in src/compat .h and .cpp
2014-06-21 16:29:12 -04:00
Pieter Wuille
a0495bb68c
Add <Hasher>::OUTPUT_SIZE
2014-06-21 19:47:43 +02:00
Cory Fields
4791b99e2d
crypto: create a separate lib for crypto functions
...
This lib has no dependencies on other bitcoin functionality. Attempting to
use bitcoin headers will result in a failure to compile.
2014-06-21 19:47:43 +02:00
Cory Fields
f2647cc0e9
crypto: explicitly check for byte read/write functions
...
Don't depend on hard-coded platform lists
2014-06-21 19:47:43 +02:00
Cory Fields
54372482a8
build: move bitcoin-config.h to its own directory
...
This allows us to include its path without making other header includes valid.
2014-06-21 19:47:43 +02:00
Pieter Wuille
3820e01eb9
Extend and move all crypto tests to crypto_tests.cpp
2014-06-21 19:47:43 +02:00
Pieter Wuille
7ecd9739d9
Move {Read,Write}{LE,BE}{32,64} to common.h and use builtins if possible
2014-06-21 19:47:42 +02:00
Pieter Wuille
a5bc9c0917
Add built-in RIPEMD-160 implementation
2014-06-21 19:47:42 +02:00
Pieter Wuille
13b5dfef64
Move crypto implementations to src/crypto/
2014-06-21 19:47:42 +02:00
Pieter Wuille
1cc344ce42
Add built-in SHA-1 implementation.
2014-06-21 19:47:39 +02:00
Pieter Wuille
85aab2a088
Switch miner.cpp to use sha2 instead of OpenSSL.
2014-06-21 19:47:39 +02:00
Pieter Wuille
cf0c47b269
Remove getwork() RPC call
2014-06-21 19:47:39 +02:00
Pieter Wuille
7b4737c878
Switch script.cpp and hash.cpp to use sha2.cpp instead of OpenSSL.
2014-06-21 19:47:39 +02:00
Pieter Wuille
977cdadea8
Add a built-in SHA256/SHA512 implementation.
...
This also moves the HMAC-SHA512 implementation to sha2.cpp.
2014-06-21 19:47:39 +02:00
Wladimir J. van der Laan
540ce6aa10
Merge pull request #4380
...
38405ac
Add comment regarding experimental-use service bits (Peter Todd)
99ddc6c
Add nLocalServices info to RPC getinfo (Peter Todd)
2014-06-21 19:26:18 +02:00
Peter Todd
38405ac141
Add comment regarding experimental-use service bits
...
As per mailing list discussion.
2014-06-21 11:43:23 -04:00
Peter Todd
99ddc6cb70
Add nLocalServices info to RPC getinfo
...
Also show full 64 bits of services. Previously service bits >32 that
were advertised just didn't show up at all.
2014-06-21 11:43:19 -04:00
Pieter Wuille
806fd19ecb
Allocate receive buffers in on the fly
2014-06-21 17:00:38 +02:00
Philip Kaufmann
fc0c07eb64
small cleanup in src/compat .h and .cpp
...
- add license header
- fix include guards
- fix indentation
2014-06-21 14:39:17 +02:00
Pavel Vasin
ea3acaf383
AvailableCoins: acquire cs_main mutex
...
It's required when called from WalletModel
2014-06-20 16:32:57 +04:00