Alex Sharov
64508a7d4e
Snap: call AddHeadersFromSnapshot only at initialCycle ( #4198 )
2022-05-19 10:38:53 +07:00
Giulio rebuffo
52c4846b26
deprecated old status ( #4196 )
2022-05-18 21:33:35 +02:00
ledgerwatch
e40332bdd8
Simplify skeleton requests, limit bor spanCache, more fine grained locking in HeaderDownload ( #4194 )
...
* Simplify skeleton requests
* Limit bor cache size
* In the middle of changing lists
* Fix
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-05-18 17:16:37 +01:00
battlmonstr
25b14edbf6
p2p: STUN external IP detection ( #4195 )
...
--nat stun is an automatic external IP detection alternative to manual --nat extip option.
It can be used both at home or on production servers without any extra setup.
It is fast (up to 5 ms) and more reliable than alternatives (as the request goes to the public internet).
This auto-detection is useful to run multiple instances of a service in cloud environments
where the node IPs are not known in advance.
2022-05-18 16:50:50 +01:00
Giulio rebuffo
1e3ad39202
added FCU hash on proposing ( #4193 )
2022-05-18 09:40:41 +02:00
Alex Sharov
78f1d01a82
Update readme.md ( #4192 )
2022-05-18 13:50:28 +07:00
Alex Sharov
80d1d8a114
Trackers: split file lines cross-platform way #4191
2022-05-18 10:28:14 +07:00
Giulio rebuffo
56fcb19578
fixed slow sync ( #4190 )
2022-05-17 22:41:40 +02:00
Giulio rebuffo
e383aae147
fixed proposing on invalid fcu ( #4189 )
2022-05-17 22:20:57 +02:00
Giulio rebuffo
1a811f0aa1
added latest valid hash ( #4188 )
2022-05-17 21:25:39 +02:00
ledgerwatch
ec08a284a6
Reduce insertQueue usage, throttle Skeleton requests ( #4185 )
...
* Reduce insertQueue usage, throttle Skeleton requests
* Cleanup
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-17 19:31:17 +01:00
Giulio rebuffo
80c562bdd3
0x00... hash resistant ( #4186 )
2022-05-17 20:01:20 +02:00
Giulio rebuffo
12829209c0
fixed bug in proposing ( #4184 )
2022-05-17 18:57:32 +02:00
Giulio rebuffo
23b648d7ce
ops ( #4183 )
2022-05-17 17:44:25 +02:00
Giulio rebuffo
01a98a4582
fixed finalized portion ( #4181 )
2022-05-17 15:26:47 +02:00
Alex Sharov
eb614bca88
nil pointer in admin_nodeInfo #4179
2022-05-17 17:42:49 +07:00
Alex Sharov
55a4fa75b4
HeadersPOS: to use snapshots ( #4178 )
2022-05-17 17:42:34 +07:00
Krishna Upadhyaya
75b93aca47
Updated README ( #4180 )
2022-05-17 17:41:40 +07:00
Håvard Anda Estensen
80c3371e3d
Remove duplicate file extension ( #4177 )
2022-05-17 10:43:30 +01:00
Alex Sharov
d2b4818d41
Decompress: to use less ram ( #4176 )
2022-05-17 15:12:15 +07:00
Håvard Anda Estensen
0a75065e7a
Use go:build lines and remove obsolete +build lines ( #4175 )
2022-05-17 14:46:53 +07:00
Alex Sharov
4e7807251a
Ensure snapshotDir not created by accident ( #4164 )
...
* save
* save
* save
2022-05-17 09:40:45 +07:00
leonardchinonso
3b87f8c726
Fix disabled value for --prune.*
flags ( #4165 )
...
* Changes:
* Proceeded to check if other h, r, t or c flags for 'before' and 'older' are set before returning from the default state of --prune
Concern:
* Does the 'disabled' value for '--prune=' need to be updated if the '--prune.*' flags are set but the '--prune=' flag is not?
* Modify mode.Initialised only when it is changed
* Updated layout for --prune=*
* save
* save
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2022-05-17 09:31:14 +07:00
Giulio rebuffo
e8a1e64df6
Revert "fixed finalized portion ( #4170 )" ( #4171 )
...
This reverts commit 46f9411e79
.
2022-05-16 23:22:16 +02:00
Giulio rebuffo
46f9411e79
fixed finalized portion ( #4170 )
2022-05-16 23:21:07 +02:00
battlmonstr
24b52393fa
CI: windows-2022 ( #4138 )
...
Use matrix.os in cache keys to not share caches between OS versions:
- runner.os = Windows
- matrix.os = windows-2022
2022-05-16 21:43:00 +01:00
ledgerwatch
a2a494a3d1
Fix eth_feeHistory ( #4168 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-16 21:42:23 +01:00
battlmonstr
d845eb2a69
sentry: refactor eth handshake checks ( #4163 )
2022-05-16 20:28:03 +07:00
battlmonstr
2fd2826b85
p2p: fix flaky TestUDPv5_callTimeoutReset ( #4166 )
...
The test fails sometimes on macOS CI with:
v5_udp_test.go:477: unexpected error: "RPC timeout"
Fixing by increasing the timeout from 120ms to 700ms,
and move the test to the integration suite, because it takes up to 1s now.
2022-05-16 20:24:54 +07:00
battlmonstr
3efcdc420f
lint: silence non-working go 1.18 lint rules ( #4167 )
...
https://github.com/golangci/golangci-lint/issues/2649
WARN [linters context] bodyclose is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649 .
WARN [linters context] gosimple is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649 .
WARN [linters context] staticcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649 .
WARN [linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649 .
WARN [linters context] unused is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649 .
2022-05-16 20:24:31 +07:00
Alex Sharov
e1dec529d4
Generic sort of slices (no allocs, inlinable) ( #4161 )
...
* save
* save
* save
* save
* save
2022-05-16 08:24:12 +01:00
ledgerwatch
24244a09c7
Fix interaction with beacon node ( #4157 )
...
* Fix interaction with beacon node
* Fix logging
* Fix logging and add comments
* Fix logging
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-15 23:32:38 +01:00
ledgerwatch
25208964e5
Export chainspecs into json files ( #4148 )
...
* Export chainspecs into json files
* Add sepolia
* Add more chains
* Extract rest of the chains
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-15 17:37:42 +01:00
ledgerwatch
eef8e4f366
Update skip_analysis.go ( #4156 )
2022-05-15 17:31:16 +01: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
Enrique Jose Avila Asapche
a9ce803c67
No hack skip cycle ( #4147 )
...
* added check method to hd
* goroutine to check if we have headers
* added initial cycle to Ethereum object
* stage loop will only run ones
* got rid of anchor print
* header stage skip cycle message
* increased original time by a 2 seconds
* for inside of stageloop
* simplified
* little fixes
* got rid of skipCycle
* simplified
* hmm
2022-05-15 15:11:18 +01:00
ledgerwatch
0b6532fec1
Fix race condition in ProcessHeadersPOS ( #4151 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-15 08:54:36 +01:00
ledgerwatch
0e457ba9d7
Restore skip analysis ( #4146 )
...
* Restore skip analysis optimisation
* Make checkChangeSets work with snapshots
* Add syncmode to checkChangeSets
* Add block number for BSC
* Fix lint
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-14 20:17:23 +01:00
Andrew Ashikhmin
eec804d320
Ropsten Merge TTD ( #4145 )
2022-05-13 21:22:48 +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
91e43e52a6
Snapsync for ropsten ( #4143 )
...
* save
* save
2022-05-13 14:58:03 +07:00
Alex Sharov
163e422e84
txn tip is u256 ( #4141 )
...
* save
* save
2022-05-13 12:21:25 +07:00
Alex Sharov
4e0f3c8c4c
Sentry: batch events ( #4140 )
2022-05-13 11:00:44 +07:00
battlmonstr
7754f53385
p2p ( #4119 ): treat slow integration tests ( #4136 )
...
* TestTable_ReadRandomNodesGetAll: refactor to integration and examples
* TestTable_bumpNoDuplicates: refactor to integration and examples
* TestUDPv4_smallNetConvergence: speed up from 1.7s to 0.3s by applying the test config
* TestUPNP_DDWRT: move to integration tests
* TestFairMix: split in 2, do more iterations in integration tests
* TestDialSched: speed up from 1s to 0.2s by removing the unexpected dial check,
(keep the check during the integration tests)
2022-05-13 10:18:55 +07:00
battlmonstr
eed90e58e3
eth: protocols/eth package cleanup ( #4139 )
...
eth.Peer is a geth legacy, which was replaced by sentry.
Some parts of the eth package are used in the sentry implementation.
2022-05-13 10:18:45 +07:00
Alex Sharov
0929df8915
Docker: use recommended way to install gcc (by build-base package) ( #4134 )
2022-05-12 15:17:24 +07:00
Alex Sharov
1b82acd7ff
it's ok to not have snapshots dir ( #4135 )
...
* save
* save
* save
2022-05-12 15:14:16 +07:00
Alex Sharov
da2b269034
fix linter warning ( #4133 )
2022-05-12 12:03:25 +07:00
Alex Sharov
de606406c9
Update README.md ( #4132 )
2022-05-12 11:50:29 +07:00
Alex Sharov
d95e6bf257
Parlia: less logs #4130
2022-05-12 11:24:52 +07:00