Commit Graph

1222 Commits

Author SHA1 Message Date
Riccardo Spagni
b0eec52b5a
Merge pull request #396
93aadbd unit_tests: initialize a field to silence a valgrind report (moneromooo-monero)
b0a98b2 unit_tests: initialize enough to silence valgrind (moneromooo-monero)
555d90b berkeleydb: fix delete/free mismatch (moneromooo-monero)
2015-09-07 10:37:14 +02:00
Riccardo Spagni
061a2bda4d
Merge pull request #395
008a54d blockchain: change code to mirror original CN code (moneromooo-monero)
0c85237 blockchain: fix return value on out of range start offset (moneromooo-monero)
a474d66 blockchain: fix offset/height comparisons in get_blocks (moneromooo-monero)
d28ca8e blockchain: make some flag setting code closer to the original code (moneromooo-monero)
d166113 blockchain: rework loop to match the original code in complete_timestamps_vector (moneromooo-monero)
4707ccf blockchain: fix sizing of timestamps and cumulative_difficulty vectors (moneromooo-monero)
5e3d56d blockchain: match original code's error return in switch_to_alternative_blockchain (moneromooo-monero)
a33dcdd blockchain: fix rollback height in failure path (moneromooo-monero)
1208cc8 blockchain: match original code early out in rollback_blockchain_switching (moneromooo-monero)
2015-09-07 10:36:36 +02:00
moneromooo-monero
93aadbd1e4
unit_tests: initialize a field to silence a valgrind report
A memory chunk is split in two, and the concatenation of the
two parts compared to the original, triggering a comparison
with uninitialized (with a copy of itself, but valgrind does
not realize that).
2015-09-02 19:05:02 +01:00
moneromooo-monero
b0a98b2cec
unit_tests: initialize enough to silence valgrind 2015-09-02 18:50:30 +01:00
moneromooo-monero
555d90b2c9
berkeleydb: fix delete/free mismatch
Despite being C++, the stats object is allocated by the underlying
C layer using malloc(3).
2015-09-02 18:17:18 +01:00
moneromooo-monero
008a54ddc4
blockchain: change code to mirror original CN code
I'm not quite sure the two are equivalent, so use the original
CN expression for safety and verification purposes.
2015-08-30 16:02:58 +01:00
moneromooo-monero
0c8523711b
blockchain: fix return value on out of range start offset
The original code would go through the normal code and
end up returning true with an empty set.
2015-08-30 16:02:53 +01:00
moneromooo-monero
a474d66c98
blockchain: fix offset/height comparisons in get_blocks 2015-08-30 16:02:48 +01:00
moneromooo-monero
d28ca8ef41
blockchain: make some flag setting code closer to the original code
It should not matter in practice, but it makes for simpler double
checking when comparing both.
2015-08-30 16:02:42 +01:00
moneromooo-monero
d16611360d
blockchain: rework loop to match the original code in complete_timestamps_vector 2015-08-30 16:02:36 +01:00
moneromooo-monero
4707ccf1c3
blockchain: fix sizing of timestamps and cumulative_difficulty vectors 2015-08-30 16:02:31 +01:00
moneromooo-monero
5e3d56d6e3
blockchain: match original code's error return in switch_to_alternative_blockchain 2015-08-30 16:02:24 +01:00
moneromooo-monero
a33dcdd400
blockchain: fix rollback height in failure path
The original code rolls back to split_height, which can be
different from the current height if a block was succesfully
added but a subsequent one fails.
2015-08-30 16:02:18 +01:00
moneromooo-monero
1208cc8fa4
blockchain: match original code early out in rollback_blockchain_switching 2015-08-30 16:02:10 +01:00
Riccardo Spagni
6a10ffd4c6 Merge branch 'moneromooo-monero-fd-leak' into development 2015-08-30 16:34:38 +02:00
Riccardo Spagni
48ac53d59c Merge branch 'fd-leak' of https://github.com/moneromooo-monero/bitmonero into moneromooo-monero-fd-leak 2015-08-30 16:34:19 +02:00
Riccardo Spagni
cf88e4dd24
Merge pull request #394
3c10239 unbound: use the mini event fallback implementation (moneromooo-monero)
4e138a0 dns_utils: remove unnecessary string conversion (moneromooo-monero)
f928468 dns_utils: factor the fetching code for different DNS record types (moneromooo-monero)
4ef0da1 dns_utils: simplify string handling and fix leak (moneromooo-monero)
ae5f28c dns_utils: add a const where possible (moneromooo-monero)
f43d465 dns_utils: lock access to the singleton (moneromooo-monero)
5990344 dns: make ctor private (moneromooo-monero)
2015-08-30 16:30:35 +02:00
moneromooo-monero
3c10239327
unbound: use the mini event fallback implementation
Using libevent seems to have high peaks of file descriptor use,
which can cause failure to create fds in other parts of bitmonerod.
The fallback implementation seems to run fine in a significantly
tighter file descriptor limit.
2015-08-30 15:21:24 +01:00
moneromooo-monero
4e138a02df
dns_utils: remove unnecessary string conversion 2015-08-30 15:04:18 +01:00
moneromooo-monero
f928468b9b
dns_utils: factor the fetching code for different DNS record types 2015-08-30 15:04:09 +01:00
moneromooo-monero
4ef0da184d
dns_utils: simplify string handling and fix leak 2015-08-30 15:03:59 +01:00
Riccardo Spagni
3daece9439 Merge branch 'oranjuice-zmq' into development 2015-08-29 23:46:33 +02:00
Riccardo Spagni
290a4d35d6 Merge branch 'zmq' of https://github.com/oranjuice/bitmonero into oranjuice-zmq 2015-08-29 23:46:20 +02:00
Riccardo Spagni
b727efdb3d
Merge pull request #391
b19456d Re-enable optimized slow-hash if someone is trying to compile w/MSVC (disabling it was unintentional) (Javier Smooth)
2015-08-29 23:44:15 +02:00
Oran Juice
1f8103767c
Rebase 2015-08-30 00:08:56 +05:30
Oran Juice
3a51390716 Rebase 2015-08-29 22:47:47 +05:30
moneromooo-monero
ae5f28cb51
dns_utils: add a const where possible 2015-08-27 21:08:55 +01:00
moneromooo-monero
f43d465da2
dns_utils: lock access to the singleton
This avoids races which could result in two objects being created
2015-08-27 21:08:03 +01:00
moneromooo-monero
5990344cb0
dns: make ctor private
This ensures one can't instanciate a DNSResolver object by
mistake, but uses the singleton. A separate create static
function is added for cases where a new object is explicitely
needed.
2015-08-27 21:06:09 +01:00
Javier Smooth
b19456dc6d Re-enable optimized slow-hash if someone is trying to compile w/MSVC (disabling it was unintentional) 2015-08-26 10:30:22 -07:00
Riccardo Spagni
a1af0feb06
Merge pull request #390
5dc53c2 wallet: use mutex protected random generation api (moneromooo-monero)
2015-08-26 19:24:09 +02:00
Riccardo Spagni
41e2323ddc
Merge pull request #388
813e758 blockchain: remove obsolete call to libc srand (moneromooo-monero)
2015-08-26 19:23:42 +02:00
Riccardo Spagni
1fb2bc9850
Merge pull request #387
e20a3ae simplewallet: add a store-tx-keys option to set (moneromooo-monero)
2015-08-26 19:23:18 +02:00
moneromooo-monero
5dc53c2cb0
wallet: use mutex protected random generation api 2015-08-26 08:28:58 +01:00
moneromooo-monero
813e758b62
blockchain: remove obsolete call to libc srand
crypto::rand is now used for output selection
2015-08-24 21:58:19 +01:00
moneromooo-monero
e20a3ae011
simplewallet: add a store-tx-keys option to set
To enable storing tx keys in the (now encrypted) wallet cache.
2015-08-24 21:52:34 +01:00
Riccardo Spagni
96104ff2b5
Merge pull request #386
d91eb8c wallet: only return tx keys via RPC if requested (moneromooo-monero)
2015-08-24 21:38:29 +02:00
Riccardo Spagni
32077d3810
Merge pull request #385
0a4bc84 Added ref10 shen_ed25519_ref code, which includes code that can replace crypto-ops with a version straight from Bernstein's ref 10 (ShenNoether)
0d70fdc revert to 776b4fc91a (ShenNoether)
b01f286 Added shen_ed25519_ref to crypto ops subfolder, the point is to directly have bitmonero's crypto code come from bernstein et al's ref 10 code (ShenNoether)
2015-08-24 19:21:31 +02:00
Riccardo Spagni
6b7be9f89b
Merge pull request #383
3b5330e use correct unsigned type (roman)
59cc92b removed some gcc warnings. mainly unused variables. (roman)
2015-08-24 19:21:04 +02:00
Riccardo Spagni
c24a7e8fc0
Merge pull request #381
f197599 wallet: encrypt the cache file (moneromooo-monero)
98c76a3 chacha8: add a key generation variant that take a pointer and size (moneromooo-monero)
2015-08-24 19:20:36 +02:00
Riccardo Spagni
10f5e00b21
Merge pull request #380
6c99571 make tx keys available to the user (moneromooo-monero)
2015-08-24 19:20:12 +02:00
moneromooo-monero
d91eb8c7b4
wallet: only return tx keys via RPC if requested
To get the tx keys returned via RPC, set the "get_tx_key" or
"get_tx_keys" request field to true (defaults to false).
2015-08-24 17:36:44 +01:00
ShenNoether
0a4bc84b2f Added ref10 shen_ed25519_ref code, which includes code that can replace crypto-ops with a version straight from Bernstein's ref 10 2015-08-23 14:48:50 -06:00
ShenNoether
0d70fdca8c revert to 776b4fc91a 2015-08-23 14:46:44 -06:00
ShenNoether
b01f286473 Added shen_ed25519_ref to crypto ops subfolder, the point is to directly have bitmonero's crypto code come from bernstein et al's ref 10 code 2015-08-23 14:18:59 -06:00
roman
3b5330e895 use correct unsigned type 2015-08-23 21:10:24 +02:00
roman
59cc92b388 removed some gcc warnings. mainly unused variables. 2015-08-23 17:59:24 +02:00
moneromooo-monero
f19759992c
wallet: encrypt the cache file
It contains private data, such as a record of transactions.
The key is derived from the view and spend secret keys.

The encryption currently is one shot, so may require a lot of
memory for large wallet caches.
2015-08-22 21:04:50 +01:00
moneromooo-monero
98c76a388c
chacha8: add a key generation variant that take a pointer and size 2015-08-22 17:41:03 +01:00
moneromooo-monero
6c995710d8
make tx keys available to the user
They are also stored in the cache file, to be retrieved using
a new get_tx_key command.
2015-08-19 21:11:48 +01:00