moneromooo-monero and wowario
4679168a57
protocol: fix wrong command in logs
...
this is not a levin packet, this is just its payload
2021-01-17 12:59:34 +03:00
moneromooo-monero and wowario
f17b506d3d
protocol: add calls to reserve where appropriate
2021-01-17 12:58:40 +03:00
Lee Clagett and wowario
9fc1c6dec5
Command max_bytes moved from dynamic map to static switch
2021-01-08 08:47:50 +03:00
moneromooo-monero and wowario
a0e757a104
protocol: handle receiving a block hash we've not added yet
2021-01-07 09:12:22 +03:00
moneromooo-monero and wowario
a27cf7b602
fix accessing an network address in a deleted context
...
Both drop_connection and add_host_fail can drop the connection,
which invalidates the context, and thus the address it contains.
Thanks to wfaressuissia[m] for lots of help and prodding when
debugging this
2021-01-04 09:46:37 +03:00
moneromooo-monero and wowario
f02e91ef83
add a max levin packet size by command type
2021-01-04 09:46:18 +03:00
moneromooo-monero and wowario
859a8752f4
protocol: remove unused (and cunningly uninitialized) field
2021-01-02 19:49:22 +03:00
moneromooo-monero and wowario
c44dbc582f
protocol: more sanity checks in new chain block hashes
2021-01-02 10:59:08 +03:00
moneromooo-monero and wowario
45a462eb91
protocol: don't reset last request time on an idle timer
...
this prevents losing time of "idle time" for a peer, which could
otherwise be reset by another timed sync command from the peer
2021-01-02 10:58:33 +03:00
Lee Clagett and wowario
b4206cea5a
Add aggressive restrictions to pre-handshake p2p buffer limit
2021-01-02 10:57:50 +03:00
moneromooo-monero and wowario
b56a9f5bad
protocol: fix false positives dropping peers
...
it'd trigger on reorgs
2021-01-02 10:56:20 +03:00
luigi1111 and wowario
4efba60bc1
Revert "Reject existing claimed blocks in sync mode"
2021-01-02 10:55:41 +03:00
moneromooo-monero and wowario
0afd50384f
protocol: drop nodes if they claim new data but only give stale data
...
Some joker is spending time actually doing this
2021-01-02 10:55:13 +03:00
moneromooo-monero and wowario
b042506baa
protocol: reject claimed block hashes that already are in the chain
2021-01-02 10:54:23 +03:00
moneromooo-monero and wowario
879715610d
protocol: drop peers we can't download anything from in sync mode
...
instead of the (incorrect) check for whether we think we might have
a user for it at some point in the near future. We can reconnect.
2021-01-02 10:54:15 +03:00
moneromooo-monero and wowario
f2949f7cf4
rpc: add a busy_syncing field to get_info
...
true if and pretty much only if new blocks are being added
2020-12-18 14:10:43 +03:00
moneromooo-monero and wowario
c9b9251fd4
protocol: include first new block in chain entry response
2020-12-13 07:52:44 +03:00
moneromooo and wowario
cd580e0e3c
protocol: stricter checks on received chain hash list
2020-12-13 07:52:22 +03:00
moneromooo-monero and wowario
801ac3ce56
protocol: revert incoming chain height check against local chain
...
We can actually request a chain that's further away from what we
have as we buffer more and more
2020-12-13 07:51:58 +03:00
moneromooo-monero and wowario
97d3f9d408
protocol: one more sanity check on usable data from a peer
2020-12-11 07:50:41 +03:00
moneromooo-monero and wowario
f4fac80752
protocol: add a sanity check to the number of block hashes sent
2020-12-11 07:50:02 +03:00
moneromooo-monero and wowario
516555402d
protocol: fix asking for pruned blocks for v10
...
Old format is still alloewd there, this is a two fork update
2020-12-11 07:49:33 +03:00
moneromooo-monero and wowario
a42b6750b1
protocol: drop origin IP if a block fails to verify in sync mode
...
It would otherwise be possible for a peer to send bad blocks,
then disconnect and reconnect again, escaping bans
2020-12-11 07:48:33 +03:00
moneromooo-monero and wowario
09a2b6f2e8
protocol: more restrictive checks on chain entry response
2020-12-11 07:48:06 +03:00
Lee Clagett and wowario
0b8bf308ce
Change epee binary output from std::stringstream to byte_stream
2020-12-11 07:46:14 +03:00
moneromooo-monero and wowario
eb6469b7a5
protocol: fix switchting to adding blocks if noone's adding the next span
2020-12-11 07:43:00 +03:00
moneromooo and wowario
27cfbe1a22
protocol: drop peers that don't reply to queries
2020-12-09 21:49:04 +03:00
moneromooo and wowario
0529d350ad
protocol: drop peers that decrease claimed height
2020-12-09 21:48:42 +03:00
moneromooo and wowario
868deaaf9e
protocol: add scoring system to drop peers that don't behave
2020-12-09 21:48:30 +03:00
Lee Clagett and wowario
3208d97f9c
Fix tx flush callback queueing
2020-12-04 09:41:45 +03:00
xiphon and wowario
6294fe26df
cryptonote_core: dandelion - use local height or median height if syncing
2020-11-26 09:36:28 +03:00
Howard Chu and wowario
41f5f36e16
Better log message for unusable anon networks
2020-11-26 09:34:06 +03:00
Lee Clagett and wowario
df5779790c
Switch to Dandelion++ fluff mode if no out connections for stem mode
2020-11-05 05:38:33 +03:00
moneromooo-monero and wowario
aae4bf32aa
protocol: reject empty incoming block messages
2020-11-05 05:37:56 +03:00
Lee Clagett and wowario
d37785db0c
Fix tx flush callback queueing
2020-11-05 05:37:26 +03:00
jwinterm
8345e5b7bc
Merge pull request 'upstream' ( #336 ) from wowario/wownero:upstream into master
...
Reviewed-on: https://git.wownero.com/wownero/wownero/pulls/336
2020-10-19 18:12:35 +00:00
xiphon and wowario
b8396218a3
Dandelion++: skip desynced peers in stem phase
2020-10-14 12:04:33 +03:00
wowario
86f12066f2
cryptonote_protocol: don't synced pruned blocks before HF_VERSION_SMALLER_BP
2020-09-25 13:26:25 +03:00
wowario
572d7ea5ef
initial commit
2020-09-19 17:44:34 +03:00
Alexander Blair
dd7fd2ef80
Merge pull request #6753
...
4ff2074c7 cryptonote_protocol: don't synced pruned blocks before v11 (cohcho)
2020-08-27 02:58:45 -07:00
Alexander Blair
c6c4ead44e
Merge pull request #6614
...
fb31167b1 Wallet, daemon: From 'help_advanced' back to 'help', and new 'apropos' command (rbrunner7)
2020-08-16 12:44:03 -07:00
Alexander Blair
461651fce5
Merge pull request #6542
...
35665df20 protocol: don't drop a connection if we can't get a compatible chain (moneromooo-monero)
2020-08-16 12:40:37 -07:00
cohcho and moneromooo-monero
4ff2074c74
cryptonote_protocol: don't synced pruned blocks before v11
...
There are a few Borromean proofs txes in the v8 era, and these
aren't supported by get_pruned_transaction_weight. Moreover, only
only the most recent variant of bulletproofs is currently supported.
2020-08-10 16:17:39 +00:00
Alexander Blair
c108c5e2f0
Merge pull request #6354
...
67ade8005 Add randomized delay when forwarding txes from i2p/tor -> ipv4/6 (Lee Clagett)
2020-08-09 06:42:49 -07:00
rbrunner7
fb31167b12
Wallet, daemon: From 'help_advanced' back to 'help', and new 'apropos' command
2020-07-24 07:12:11 +02:00
Alexander Blair
a0d179e528
Merge pull request #6512
...
5ef0607da Update copyright year to 2020 (SomaticFanatic)
2020-07-19 03:32:59 -07:00
luigi1111
f1334ebf64
Merge pull request #6566
...
567402c protocol: move the 'peer claims higher version' warning to debug (moneromooo-monero)
2020-07-08 17:08:58 -05:00
moneromooo-monero
567402c508
protocol: move the "peer claims higher version" warning to debug
...
Because there's a neverending supply of cunts claiming a wrong
version just to say "look at me" I guess
2020-05-19 16:14:53 +00:00
moneromooo-monero
f1d0457523
cryptonote_protocol: stricter limit to number of objects requested
...
Reported by xnbya
2020-05-19 10:33:03 +00:00
moneromooo-monero
bb5c5dff15
cryptonote_protocol: reject requests/notifications before handshake
...
Reported by xnbya
2020-05-19 10:33:02 +00:00