Håvard Anda Estensen
ea6b92b132
Enable gosec linter ( #5083 )
...
* Ignore pseudo random generators
* Enable gosec linter
2022-08-17 12:18:19 +07:00
Håvard Anda Estensen
8460fd8e25
Remove deprecated functions ( #5086 )
2022-08-17 12:17:32 +07:00
Alex Sharov
778792e20e
Sentry doc ( #5040 )
...
* save
* save
* save
2022-08-13 21:37:51 +07:00
Giulio rebuffo
8ade569cc5
Save PoW blocks for processing received through P2P ( #5015 )
...
* save terminal blocks
* ops
* save less PoW blocks
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-12 21:54:20 +02:00
Max Revitt
7a87da9497
fix(sentry): add locks in sentry grpc ( #4981 ) ( #5025 )
2022-08-12 21:18:43 +07:00
Giulio rebuffo
348be13508
fixed gossip post TTD ( #5012 )
...
* gossip all gossip
* gossip all gossip
* fixed tests
* fixed gossip post TTD
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-11 19:55:59 +02:00
Giulio rebuffo
b09de9e0d5
[P2P] gossip all gossip ( #4995 )
...
* gossip all gossip
* gossip all gossip
* fixed tests
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-10 22:08:56 +02:00
Andrew Ashikhmin
ea6305339b
Revert "Log data if cannot decode BlockBodiesPacket66 ( #4850 )" ( #4929 )
...
This reverts commit 7ae99884af
.
2022-08-04 12:01:36 +02:00
Alex Sharov
454cea4811
docs cli antipattern ( #4859 )
...
* save
* save
2022-07-29 09:48:24 +07:00
Andrew Ashikhmin
7ae99884af
Log data if cannot decode BlockBodiesPacket66 ( #4850 )
2022-07-28 17:26:34 +02:00
hexoscott
75151e0700
fix memory leak in HandleInboundMessage ( #4848 )
2022-07-28 12:19:34 +01:00
Artem Tsebrovskiy
a1777accd8
fixed passing of raw byte slices to tx processing ( #4782 )
2022-07-22 15:47:33 +07:00
Andrew Ashikhmin
eec5fa4d41
Add support for eth/67 ( #4564 )
...
* Add eth/67
* Listen to eth/66 on a separate port
* Fix compilation error
* Fix cfg66.ListenAddr
* Update erigon ports in README
* Expose port 30304 in docker
* P2pProtocolVersionFlag instead of second sentry
* Remove "66 by default" from usage
* Small comment
2022-07-08 11:14:16 +02:00
Andrew Ashikhmin
dc5d3ffaac
Revert "Switch from eth/66 to eth/67 ( #4549 )" ( #4562 )
...
This reverts commit 16e57aa8a2
.
2022-06-28 13:42:35 +02:00
Andrew Ashikhmin
16e57aa8a2
Switch from eth/66 to eth/67 ( #4549 )
...
* Switch from eth/66 to eth/67
* Fix a compilation error
* Update erigon-lib
* Refresh erigon-lib
2022-06-28 10:12:48 +02:00
Alex Sharov
359ae889b8
don't crush on p2p message handling panic ( #4557 )
...
* save
* save
2022-06-28 10:19:57 +06:00
ledgerwatch
b1572a15d5
No reorgs when fork choice head points to a canonical header ( #4466 )
...
* No reorgs when fork choice head points to a canonical header
* Return immediately
* Fix sentry
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-16 16:07:09 +01:00
ledgerwatch
df3eea6414
Not send sentry task to closed tasks channel ( #4467 )
...
* Not send sentry task to closed tasks channel
* Add comments
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-16 11:17:53 +01:00
ledgerwatch
1cc5b92dd8
Another fix for stuck header download ( #4433 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-11 08:13:40 +01:00
ledgerwatch
43f5f0ae27
Close peerInfo tasks channel ( #4429 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-10 11:59:31 +01:00
Alex Sharov
e146b66e35
more usage of dirs object #4390
2022-06-07 11:54:04 +07:00
Alex Sharov
7c79d6d453
Cfg dirs ( #4388 )
2022-06-07 11:00:37 +07:00
Alex Sharov
a53642b4bf
datadir.Dirs configuration object to group dir config ( #4387 )
2022-06-07 10:24:50 +07:00
ledgerwatch
b2f9b25300
For for overwritten anchor ( #4379 )
...
* For for overwritten anchor
* Switch to time types, log retry time in diagnostics
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-06 18:23:41 +01:00
ledgerwatch
4a5f97527b
Better diagnostic for stuck headers ( #4372 )
...
* More stuck headers diagnostics
* Temp print
* Remove temp print
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-05 15:00:13 +01:00
battlmonstr
0c5d1d64a3
observer: sentry candidates intake ( #4321 )
...
* sentry client: log connected peer info
* observer: unseen sentry peers report
* observer: refactoring node.go to node_utils
* observer: sentry candidates intake
2022-06-01 22:48:24 +01:00
Alex Sharov
955c669d21
Group few sync configs ( #4303 )
...
* save
* save
2022-05-30 17:08:49 +07:00
ledgerwatch
974e01bcd3
Allow skeleton requests to more peers ( #4290 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-05-28 13:38:22 +01:00
battlmonstr
da45be9319
sentry: log peer events in erigon ( #4275 )
...
* sentry: log peer events in erigon
* refactor pumpStreamLoop to support streams with arbitrary message types
* subscribe to PeerEvents
* fixup! use generics
2022-05-27 08:33:00 +07:00
Andrew Ashikhmin
86de64a2a3
TangerineWhistle instead of EIP150 & SpuriousDragon instead of EIP155/158 ( #4273 )
...
* EIP150Block -> TangerineWhistleBlock
* Merge EIP158Block into EIP155Block
* EIP155Block -> SpuriousDragonBlock
2022-05-26 12:08:59 +02:00
battlmonstr
8a47a7ce33
sentry: PeerById method ( #4260 )
2022-05-26 10:53:23 +07:00
battlmonstr
6b1f91407d
sentry: multi sentry client refactoring ( #4265 )
2022-05-26 10:45:35 +07:00
Alex Sharov
fc1a37e6dc
create turbo/services pkg ( #4269 )
2022-05-26 10:31:06 +07:00
Alex Sharov
52d6f1d551
kv_mdbx: atomic closed flag #464 ( #4247 )
2022-05-24 12:24:20 +07:00
ledgerwatch
6974a98aca
Clean anchors, forward sort of headers ( #4225 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-21 18:00:26 +01:00
battlmonstr
d845eb2a69
sentry: refactor eth handshake checks ( #4163 )
2022-05-16 20:28:03 +07:00
ledgerwatch
7125593cf5
Fix nil deference in ProcessHeadersPOS ( #4155 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-05-15 17:09:27 +01:00
ledgerwatch
e02c77bf5a
Further simplify header download, req/resp metrics ( #4121 )
...
* Further simplify header download, req/resp metrics
* Not break the loop
* Move anchors correctly
* Log anchor state
* Print minNum
* Print hash
* Always add links
* Remove obsolete test
* cleanup
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alex Sharp <alexsharp@alexs-macbook-pro.home>
2022-05-13 11:18:30 +01:00
Alex Sharov
4e0f3c8c4c
Sentry: batch events ( #4140 )
2022-05-13 11:00:44 +07:00
Alex Sharov
691ceb1c3d
save ( #4126 )
2022-05-12 10:31:45 +07:00
ledgerwatch
8001cf2ad6
Simplify header downloader ( #4104 )
...
* Simplify header downloader
* Remove VerifyQueue
* Fix
* More fixes
* Fix
* Break out of the loop
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-10 08:06:16 +01:00
Alex Sharov
2c26583f6f
Rename sentry.ControlServerImpl to sentry.MultyClient and sentry.SentryServerImpl to sentry.GrpcServer #444
2022-05-10 12:17:44 +07:00
ledgerwatch
ba987cf262
Remove preverified hashes ( #4088 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-06 15:15:01 +01:00
Giulio rebuffo
6927ffc54b
penalize naughty peers on PoS ( #4060 )
...
* penalize naughty peers
* lint
2022-05-04 10:39:34 +02:00
Andrew Ashikhmin
6c9d515968
No NewBlock gossip after Merge ( #3995 )
2022-04-27 14:03:06 +02:00
battlmonstr
07367c2312
sentry: refactor flags, add maxpeers. ( #3961 )
2022-04-25 21:47:25 +07:00
battlmonstr
fc3eecae5e
RPC: admin.peers() ( #3960 )
...
* RPC: admin.peers()
This RPC method returns information about the connected remote nodes.
https://geth.ethereum.org/docs/rpc/ns-admin#admin_peers
The peers are collected from all configured sentries.
See: https://github.com/ledgerwatch/interfaces/pull/102
Test with:
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "admin_peers", "params": [], "id":1}' localhost:8545
* save
* liner fix
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2022-04-25 14:40:04 +01:00
battlmonstr
3ad25c929c
Sentry GRPC: rename Peers to PeerEvents ( #3944 )
...
* Sentry GRPC: rename Peers to PeerEvents
see https://github.com/ledgerwatch/interfaces/pull/101
* Update to erigon-lib main
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-04-23 17:52:22 +01:00
Alex Sharov
89c3049244
limit amount of sentries in broadcasts ( #3920 )
...
* save
* save
2022-04-20 22:00:58 +07:00
ledgerwatch
f56d4c5881
Switch peerId from 256 to 512 bit (as in stable) ( #3862 )
...
* Switch peerId from 256 to 512 bit (as in stable)
* go mod tidy
* Fix some tests
* Fixed
* Fixes
* Fix tests
* Update to erigon-lib main
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-04-10 08:01:25 +01:00