Commit Graph

16639 Commits

Author SHA1 Message Date
Alex Sharov
001c344d66
erigon3 integration test fixes (#5624) 2022-10-05 10:55:08 +07:00
Alex Sharov
18f5f45d68
erigon3: integration tests makefile #5621 2022-10-05 09:53:03 +07:00
a
25a7cb38ef
[light client] gossip propogation (#5591)
* refactor gossip handler once again

* write packet

* comment

* make linter happy

* remove functional handler

* add codecstring as config parameter

* copy in dependency

* remove merge header

* pass lint

Co-authored-by: a <a@a.a>
2022-10-04 22:03:30 +02:00
Andrew Ashikhmin
2217b2785e
SysCallContract shouldn't increase nonce of SystemAddress (#5617)
* Test GnosisGenesisStateRoot

* Delete obsolete allocations

* SysCallContract shouldn't increase nonce of SystemAddress

* Max gas limit in SysCallContract

* Restore error swallowing for Bor
2022-10-04 18:02:17 +02:00
ledgerwatch
92bc23bd45
Return correct LastValidHash (#5616)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-10-04 13:38:47 +01:00
Alex Sharov
4e3c02f48f
eliasfano32.Max() method on serialized bytes (#5603)
* save

* Update erigon-lib to main

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-10-04 11:14:37 +01:00
ledgerwatch
fd52a788b7
Fix creation of block snapshots (#5579)
* Print snapshot prune

* More print

* Print

* Print

* Print

* Move snapshots stage forward

* Cleanup

* Fix tests

* Print

* Too much logging

* Remove print

* Log, check

* Revert

* No panic, print

* Fix tx numbering

* Harder condition to start retiring blocks

* Disable Pow verification after TTD is reached

* Fix POW verifying

* Print

* Prints

* Fix?

* cleanup

* Add migrations and hack

* More diagnostics

* More print

* Reset sequence only once

* Fix migration

* Remove print reset

* Fix lint

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-10-04 11:14:18 +01:00
Alex Sharov
39383d936d
erigon3: move tx.AsMessage() out of critical path (#5611)
* save

* save
2022-10-04 10:56:41 +01:00
Alex Sharov
15cac71f3f
madv helpers (#5610)
* save

* save

* save
2022-10-04 10:52:56 +01:00
hexoscott
b581bf30c0
Reintroduce oom fix (#5604)
* bring back oom fix for bodies with some new tweaks

* use in memory body cache when processing stages in memory
2022-10-04 10:44:23 +01:00
Alex Sharov
a03c43fe3c
erigon3: allow commit in parallel exec #5614 2022-10-04 13:51:30 +07:00
Alex Sharov
ede306baa5
erigon3: no overlap parallel tx 2022-10-04 13:40:27 +07:00
Enrique Jose Avila Asapche
fce9a665bb
warning of missing block and returning nil if no err (#5606)
* warning of missing block and returning nil if no err

* deleted message
2022-10-04 09:00:27 +07:00
Alex Sharov
2b4046f372
erigon3 recon fix overlap txs #5609 2022-10-04 08:59:35 +07:00
Enrique Jose Avila Asapche
0e2190f5d1
better retry (#5605) 2022-10-03 20:38:21 +02:00
Enrique Jose Avila Asapche
f2d95d16cc
Adding light client requesting (#5580)
* separated the encoding

* picking random peer node

* sending ping request

* updated enconding and reading

* requesting ping interval and more verbose vars

* disconnecting from unresponsive peers

* penalizing instead of disconnecting for irresponsiveness

* closing stream for streamCodec

* solved meged issues

* changed back

* separated const values

* requesting ping interval to 1 sec

* added closing of read and write stream && receiving responses!

* fixecd typo

* general sending request function

* added constants of resqresp topics

* fixed uncorrect name

* refactored sending requests

* added todo

* little detail

* moved to main

* no need to sleep

* sending request retries until timeout

* type

* lint
2022-10-03 11:05:59 +02:00
Andrew Ashikhmin
ffe983b06d
Fix callBlockRewardAbi (#5600)
* Add a comment

* Fix callBlockRewardAbi
2022-10-03 10:53:07 +02:00
Alex Sharov
20f50da285
r.cache = prevView.cache.Clone() 2022-10-03 09:50:17 +07:00
Andrew Ashikhmin
9ecc564d03
Demote "stage loop is busy" to debug (#5597) 2022-10-02 16:10:11 +01:00
Alex Sharov
fba6efb1c8
erigon3: a bit simplify reconstitution #5599 2022-10-02 20:37:28 +07:00
Alex Sharov
fda2748447
erigon3: no overlap tx, better defer rollback (#5598) 2022-10-02 19:54:26 +07:00
Alex Sharov
c38a9dcfab
Erigon3: don't commit in the middle of block execution (#5596) 2022-10-02 16:26:56 +07:00
Alex Sharov
afcd605fc5
remote rpcdaemon to create snapshots/history dir at startup #5594 2022-10-02 14:48:26 +07:00
Alex Sharov
37f76c9a9e
bitmapdb (#5593) 2022-10-02 10:54:40 +07:00
a
7c8b3c2ba1
[rpcdaemon] greatly increase speed of {eth,erigon}_getLogs (#5572) 2022-10-02 10:51:19 +07:00
Alex Sharov
1789e04c58
erigon3: nil ptr on reading header fix #5592 2022-10-02 10:24:13 +07:00
Alex Sharov
fa16d5e855
erigon3: step toward background snapshots build (#5588) 2022-10-02 10:21:17 +07:00
Alex Sharov
1b17a3226a
agg print stats at startup (#5586) 2022-10-01 09:29:28 +07:00
Giulio rebuffo
90bae9a4df
modularized pubsub (#5585)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-01 02:34:11 +02:00
Enrique Jose Avila Asapche
3aea208cd4
closing streams (#5583)
* closing streams

* done master
2022-10-01 00:25:17 +02:00
Giulio rebuffo
59df60a2c1
Added proper Message Id for Consensus Gossip subscription (#5584)
* first prototype

* Added Proper Message ID to gossip

* ops

* ops

* lint why?

* u kidding?

* just why

* maybe

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-30 23:53:54 +02:00
Leonard Chinonso
9d172ae125
Devnet Remake (#5532)
* Rebuilding the devnet tool for better quality

* Added README

* deleted former devnettest folder

* Correction changes

* Implementation node connection through enode for two nodes

* synced two nodes, moving to logging

* Fixed lint
2022-09-30 21:04:34 +01:00
a
2e91e05716
[lightclient] basic gossip handler (#5573)
* cleanup

* w

* remove connection timeout

* fix

* update packet

* remove pprof

Co-authored-by: a <a@a.a>
2022-09-30 21:49:45 +02:00
Giulio rebuffo
5a7aaeb8fe
Better memory management when peering (#5582)
* better memory management with peers

* better memory management with peers

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-30 20:21:48 +02:00
Giulio rebuffo
98ceb7cc9c
separation of handlers (#5581)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-30 19:07:13 +02:00
Alex Sharov
d4f6f22009
ef revert to unsafe.pointer use #661 #5578 2022-09-30 14:01:34 +07:00
Alex Sharov
8125505f09
up erigon-lib version #5576 2022-09-30 08:32:16 +07:00
Giulio rebuffo
3f1d5a4c92
Support for Goerli/Sepolia/Mainnet Fork ids on Consensus Layer (#5575)
* added proper chain config

* updated configs

* save progress

* fix lint

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-30 00:20:09 +02:00
ledgerwatch
7018c5e746
Ergonomic fixes for POS (#5574)
* Various POS fixes

* More quiet

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-09-29 22:17:16 +01:00
a
9f6fd488d2
[cl lightclient] - packet decoding & ssz code generation (#5558)
* added subscription to gossip

* added all handlers with logs

* disconnecting from peers with goodbye message received

* added time out for stream

* wip

* Remove unused

* remove extra structs

* status handler

* minor clean up

* add structs for altair light client

* begin writing out altair light client sync protocol to figure out what other structs are needed

* remove sszgen

* cleanup pt 1

* cleanup pt 2

* remove go 1.19 function

* less ambigious variable name

* run go fmt

* rename snappy_ssz to ssz_snappy to better align with wire name

* move more structs over

* poof set deadline

Co-authored-by: Enrique Jose Avila Asapche <eavilaasapche@gmail.com>
Co-authored-by: a <a@a.a>
2022-09-29 19:07:57 +02:00
Enrique Jose Avila Asapche
93add6cacf
Gossip subscription (#5567)
* added subscription to topics

* keeping track of topic subscription

* subscribing to beaconBlock

* listening to messages

* ops

* not processing our own messages

* ops
2022-09-29 13:39:42 +02:00
ledgerwatch
49aeb53988
Fail newPayload if execution is unsuccessful (#5553)
* Fail newPayload if execution is unsuccessful

* fix linter

* fix message

* no self-hosted

* try force ci

* back to unbuntu

* Remove unnecessary unwinds

* Fix canonicalising

* Quiet logs for in-memory exec

* Remove experimental overlay flag

* Fix sync test

* Fix test

* Fix lint

* Print hash in the end of the cycle

* Not notify headers if list is empty

* Supress timings and tables logs when no change in progress

* Reduce logging

* fix

* better log for pos download

* Better newPayload and forkChoice messages

* Fix lint

* simplify

* No duplication of download messages

* Reverse log for extension

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Igor Mandrigin <i@mandrigin.ru>
2022-09-29 06:38:13 +01:00
Alex Sharov
f4a7d2cf6d
erigon3: build .vi after download (#5568) 2022-09-29 12:14:51 +07:00
Enrique Jose Avila Asapche
c2a1558923
changed erigon logs fields (#5476)
* changed erigon logs fields

* lint

* Update erigon_receipts.go (#5485)

* lint

Co-authored-by: a <edward9.lee@gmail.com>
2022-09-28 20:46:42 +01:00
Enrique Jose Avila Asapche
f4c6e45f45
returning validator in POS trace (#5477) 2022-09-28 20:45:52 +01:00
Max Revitt
a4f8f74ae7
fix(ci): run docker job on github hosted runner (#5557)
Co-authored-by: Igor Mandrigin <mandrigin@users.noreply.github.com>
2022-09-28 19:31:36 +02:00
Håvard Anda Estensen
23d21f3b44
Enable unconvert linter (#5566) 2022-09-28 15:10:38 +01:00
Giulio rebuffo
f9c9ee5d07
Made handlers disconnection better. (#5556)
* made handlers a bit better

* made handlers a bit better

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-28 13:39:55 +02:00
Max Revitt
26b0b8a008
tweak(ci): make clear docker stage does not push image and prevent run on devel #5564 (#5565)
* tweak(ci): make clear docker stage does not push image and prevent run on devel #5564

* tweak(ci): stop and remove all containers after run
2022-09-28 12:19:17 +01:00
bgelb
c28b1d230b
run traceCall on top of state resulting from fully executed baseblock a.k.a. starting state of blockNumber+1 (#5555) 2022-09-28 08:30:58 +01:00