Commit Graph

15770 Commits

Author SHA1 Message Date
Alex Sharov
d3a692286d
save (#4229) 2022-05-22 11:08:12 +01:00
ledgerwatch
9dc7067e9c
Fix snapshot merge and anchor removal (#4228)
* Print retire

* Print

* Print

* Print

* Print

* Not fail when block is not found

* Remove prints

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-22 11:08:03 +01:00
Enrique Jose Avila Asapche
2ec9733cee
default api list (#4227)
* default api list

* Revert "default api list"

This reverts commit 8f0bf6cb440b35b3ab628cc297fa6ff822038ed3.

* added engine to default

* added to erigon
2022-05-21 22:48:36 +02: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
ledgerwatch
e6cb086c90
More header download diagnostics (#4224)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-21 14:49:08 +01:00
battlmonstr
54cf932652
Makefile: pass docker build arguments (#4212)
Dockerfile requires some --build-arg options.
Fix "docker" target to pass them.
Fix GIT_TAG to reflect the most recent tag related to HEAD, instead of an unrelated most recent tag.
Use it as the image VERSION.

Image tags need to be passed explicitly if needed:

    DOCKER_FLAGS='-t erigon:latest' make docker
2022-05-21 10:21:35 +01:00
ledgerwatch
803bfff67e
Clean headers pointers when removing links (#4222)
* Clean headers pointers when removing links

* Replace the lock

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-21 08:59:30 +01:00
Giulio rebuffo
ea01c8e5b3
fixed kiln bug (#4221) 2022-05-21 10:33:00 +07:00
Alex Sharov
c2e0956e3e
return err on invalid syncmode (#4219)
* save

* save

* save
2022-05-20 16:04:38 +07:00
Igor Mandrigin
7f02ff81f3
Fix rpc.BlockNumberOrHash unmarshaling (#4218)
* add test

* fix unmarshaling bug

Co-authored-by: Igor Mandrigin <i@mandrigin.ru>
2022-05-20 16:04:24 +07:00
Alex Sharov
368c2e4a9f
up gods lib version (#4217) 2022-05-20 15:27:48 +07:00
Artem Tsebrovskiy
f4c8f44f61
removed obsolete trie variant (#4172) 2022-05-20 15:03:27 +07:00
Alex Sharov
b1b5a319e1
It's safe now to open snapshots at app start (#4216) 2022-05-20 14:46:04 +07:00
Alex Sharov
7ecdf51d92
methods to read single txn by txnID (#4215) 2022-05-20 14:12:12 +07:00
Alex Sharov
e328049353
Remove dependency on leveldb (#4213)
* save

* save

* save

* save

* save

* save
2022-05-20 11:24:28 +07:00
Alex Sharov
adc4b1bbb5
Snap: reduced memory footprint on building huffman table (#4214)
* save

* save

* save

* save
2022-05-20 11:24:19 +07:00
Giulio rebuffo
c66bde2df8
fixed miner.sigfile option (#4210) 2022-05-19 20:16:21 +07:00
Alex Sharov
c43ae65bba
Bor: GetTransactionReceipt (#4209) 2022-05-19 20:03:58 +07:00
Alex Sharov
ada46b0344
allow snap sync for mumbai chain (#4208)
* save

* mumbai
2022-05-19 19:31:02 +07:00
Alex Sharov
d9ed307807
allow --syncmode=snap for bor-mainnnet #4206 2022-05-19 18:54:50 +07:00
Alex Sharov
a95d86a99f
allow --syncmode=snap for bor-mainnnet (#4206)
* save

* save
2022-05-19 18:51:05 +07:00
Alex Sharov
10bcbf4a68
Snap: faster Erigon re-start (#4201) 2022-05-19 12:28:33 +07:00
Alex Sharov
2396765c1a
MatchPrefix: limit 2nd loop iterations #458 2022-05-19 12:28:19 +07:00
Alex Sharov
726ef081ce
option to disable runtime.ReadMemStats (#4200) 2022-05-19 11:48:07 +07:00
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