Commit Graph
5876 Commits
Author SHA1 Message Date
moneromooo-moneroandwowario 39e9fa05b8 core: fix --prune-blockchain not pruning if no blockchain exists 2019-06-23 08:00:10 +03:00
moneromooo-moneroandwowario e6c875a954 rpc: restrict the recent cutoff size in restricted RPC mode 2019-06-17 12:35:03 +03:00
moneromooo-moneroandwowario 12085c4c74 ensure no NULL is passed to memcpy
NULL is valid when size is 0, but memcpy uses nonnull attributes,
so let's not poke the bear
2019-06-17 12:34:54 +03:00
moneromooo-moneroandwowario 2fb6c1f80d serialization: check stream good flag at the end
just in case
2019-06-17 12:34:11 +03:00
moneromooo-moneroandwowario 8ad9d0f618 tree-hash: allocate variable memory on heap, not stack
Large amounts might run out of stack

Reported by guidov
2019-06-17 12:30:40 +03:00
moneromooo-moneroandwowario ddafd99cac cryptonote: throw on tx hash calculation error 2019-06-17 12:30:31 +03:00
moneromooo-moneroandwowario 26276d5df7 serialization: fail on read_varint error 2019-06-17 12:30:23 +03:00
moneromooo-moneroandwowario de536f49cb cryptonote_protocol: fix another potential P2P DoS
When asking for txes in a fluffy transaction, one might ask
for the same (large) tx many times
2019-06-17 12:30:16 +03:00
moneromooo-moneroandwowario 3fdf63bc90 cryptonote_protocol: expand basic DoS protection
Count transactions as well
2019-06-17 12:30:07 +03:00
anonimalandwowario 2f402f9a45 cryptonote_protocol_handler: prevent potential DoS
Essentially, one can send such a large amount of IDs that core exhausts
all free memory. This issue can theoretically be exploited using very
large CN blockchains, such as Monero.

This is a partial fix. Thanks and credit given to CryptoNote author
'cryptozoidberg' for collaboration and the fix. Also thanks to
'moneromooo'. Referencing HackerOne report #506595.
2019-06-17 12:29:59 +03:00
jwandGitHub 94390f8364 Merge pull request #216 from wowario/upstream
Upstream
2019-06-14 05:46:17 -07:00
jwandGitHub 5249d14063 Merge pull request #215 from wowario/masterb
bump version to 0.6.1.1 and update checkpoints.dat
2019-06-14 05:46:05 -07:00
moneromooo-moneroandwowario ae9de01824 Fix GCC 9.1 build warnings
GCC wants operator= aand copy ctor to be both defined, or neither
2019-06-14 13:47:11 +03:00
moneromooo-moneroandwowario 5227b3280c p2p: fix GCC 9.1 crash 2019-06-14 13:46:56 +03:00
ston1thandwowario 33634f6dfd miner: fix double free of thread attributes
issue: #5568
2019-06-14 13:45:07 +03:00
wowario da0c68074e bump version to 0.6.1.1 and update checkpoints.dat 2019-06-14 13:31:25 +03:00
fuwa 7683daa61f hotfix "no ring" error 2019-06-14 16:52:44 +08:00
jwandGitHub c3f0e58191 Merge pull request #209 from wowario/master
bump up to v0.6.1
2019-06-06 08:49:26 -07:00
jwandGitHub 1b96834767 Merge pull request #208 from fuwa0529/fix-bp
Fix tx error on testnet2
2019-06-06 08:49:05 -07:00
wowario ee9419998b bump up to v0.6.1 2019-06-06 12:19:14 +03:00
fuwa f3d415f7a0 fix old bulletproof conditional branches 2019-06-06 12:48:21 +08:00
fuwa 904349a75c wallet2: fix hf rules for small BP 2019-06-06 11:02:17 +08:00
wowario fdb1f180e4 correct RX_BLOCK_VERSION 2019-06-05 12:10:43 +03:00
jwandGitHub e757efb83d Merge pull request #204 from wowario/checkpoints
update checkpoints.dat
2019-06-02 15:02:33 -07:00
Hiroji KiyotakeandGitHub 29e13fe96a Merge branch 'dev-v0.6' into wow 2019-06-02 16:08:12 +00:00
wowario 5825907680 update checkpoints.dat 2019-06-02 10:06:19 +03:00
wowario 496c4babb6 update block synchronizing count fork height 2019-06-02 09:48:11 +03:00
wowario c7b73d31a5 update rpc mining_status 2019-06-02 09:10:16 +03:00
Howard Chuandwowario 3b9a06d5aa Proposed tweak for issue with finding seedblock hash
This patch isn't needed if we always restrict block-sync-size to <= SEEDHASH_EPOCH_LAG.
But otherwise, this will allow syncing with larger block-sync-sizes.
2019-06-02 08:27:38 +03:00
wowario a1258baf5a add RandomWOW 2019-06-02 08:03:48 +03:00
moneromooo-moneroandwowario baddb899f7 core: update pruning if using --prune-blockchain on a pruned blockchain
Avoids a massive amount of spurious warnings if the last update before
the daemon exited was a while ago and the daemon was syncing
2019-06-02 07:12:30 +03:00
moneromooo-moneroandwowario 19d4cbefe8 blockchain: do not try to pop blocks down to the genesis block 2019-06-02 07:12:19 +03:00
moneromooo-moneroandwowario af1a741699 core: do not commit half constructed batch db txn 2019-06-02 07:12:09 +03:00
Lee Clagettandwowario 07e86b1e85 Fix allow any cert mode in wallet rpc when configured over rpc 2019-06-02 07:11:53 +03:00
Lee Clagettandwowario 72c2f5c3e6 Add ssl_options support to monerod's rpc mode. 2019-06-02 07:11:40 +03:00
Lee Clagettandwowario 8566d1f9a4 Fix configuration bug; wallet2 --daemon-ssl-allow-any-cert now works. 2019-06-02 07:11:30 +03:00
Howard Chuandwowario 17b39ab7bc Fix #5553
Make sure the tip hash still matches the cached block
2019-06-02 07:10:53 +03:00
Howard Chuandwowario c319796355 RandomX integration
Support RandomX PoW algorithm
2019-05-31 11:32:21 +03:00
moneromooo-moneroandwowario 4dcd3cd0b2 blockchain: keep alternative blocks in LMDB
Alternative blocks are cleared on startup unless --keep-alt-blocks
is passed on the command line
2019-05-31 11:28:09 +03:00
jwandGitHub eb3a2b298f Merge pull request #201 from wowario/wallet
wallet: add unlock_time details to show_transfers
2019-05-30 21:01:42 -07:00
jwandGitHub 333ea74895 Merge pull request #200 from wowario/diff-fix
difficulty: revert to int64_t
2019-05-30 21:01:24 -07:00
moneromooo-moneroandwowario 31f865f8e4 wallet: add unlock_time details to show_transfers
also add a note when receiving the tx, because the user
might not notice the "XXX blocks to unlock" in the balance.
2019-05-31 03:35:42 +03:00
wowario 612bf0b58a difficulty: revert to int64_t 2019-05-31 03:18:47 +03:00
fuwa c73c7abfcd simplewallet: randomize pause_time for each churn 2019-05-25 00:35:10 +08:00
wowario 4abfc23006 silent check_block_rate 2019-05-17 04:49:40 +03:00
wowario 52c460d5b9 add v0.6 release name 2019-05-17 04:21:09 +03:00
wowario 6179aa7d35 sanity check: change to false #5434 2019-05-17 04:20:55 +03:00
wowario 268e2a0c96 sanity check: comment out #4691 2019-05-17 04:20:34 +03:00
fuwaandwowario 7af9353936 allow system libminiupnp, revert #6b8539 2019-05-17 04:20:23 +03:00
wowario f943a83b71 Cryptonight variant 4 aka cn/wow 2019-05-17 04:20:14 +03:00