Commit Graph

16400 Commits

Author SHA1 Message Date
Alex Sharov
68e35417fc
RetireBlocks: encapsulate delete logic 2022-07-23 11:09:16 +07:00
Alex Sharov
95f0338ddb
Pool: parse rlp chain id for non-legacy transactions #4802 2022-07-23 10:13:13 +07:00
Alex Sharov
62873649d9
lint up 47.2 (#4801) 2022-07-23 10:09:24 +07:00
Alex Sharov
6a759a34f8
pool: metrics (#4800) 2022-07-23 10:06:35 +07:00
Alex Sharov
dd4bae789b
Pool: parse rlp chain id for non-legacy transactions 2022-07-23 09:33:45 +07:00
Max Revitt
01641e3900
fix(ci): hive results workflow syntax (#4796) 2022-07-22 19:05:08 +03:00
Max Revitt
0d979e18aa
fix(readme): latest badge.svg gist links (#4795) 2022-07-22 18:18:45 +03:00
Max Revitt
37ba45a627
feat(ci): badges for hive and code coverage on devel (#4793)
* feat(ci): badges for hive and code coverage on devel

* feat(ci): hive CI tidy up (#2)

run hive on successful CI only
run on non-draft PR only
2022-07-22 17:09:50 +02:00
Max Revitt
d6001225e7
feat(makefile): add documentation and coverage command (#4792) 2022-07-22 14:26:18 +02:00
Max Revitt
d2bbf22e3d
hive - run on successful CI (#4791)
* feat(ci): run hive tests as part of CI

* feat(ci): hive CI tidy up (#2)

run hive on successful CI only
run on non-draft PR only
2022-07-22 14:26:05 +02:00
Alex Sharov
cd8b10f57e
snapshot merger: smaller interface (#4786)
* save

* save

* save
2022-07-22 16:54:05 +07:00
Giulio rebuffo
46a8c531ce
Optimized PoS header downloader (#4775)
* optimized PoS header downloader

* removed println

* comments

* ops

* Restore schedulePoSDownload params + simplify

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
Co-authored-by: yperbasis <andrey.ashikhmin@gmail.com>
2022-07-22 11:07:58 +02:00
Artem Tsebrovskiy
a1777accd8
fixed passing of raw byte slices to tx processing (#4782) 2022-07-22 15:47:33 +07:00
Giulio rebuffo
1d378b6618
Filter out bad tx with wrong chain id during block building phase. (#4783)
* filter out bad tx with wrong chain id

* report bad txs

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-22 09:18:19 +02:00
Alex Sharov
66758c7960
RetireBlocks: less arguments (#4785)
* save

* save
2022-07-22 13:44:42 +07:00
Andrew Ashikhmin
6060b87840
Fix binary vs raw confusion for PoS transaction (#4781)
* Replace PayloadMessage with Block

* RawTransactions -> BinaryTransactions for clarity

* add a log warning
2022-07-21 19:40:00 +02:00
Igor Mandrigin
42e59618a7
run engine tests on Hive 2022-07-21 14:50:03 +02:00
Max Revitt
770d7cf8bd
Hive CI output parse (#4737)
* feat(ci): run hive tests as part of CI

* feat(ci): add hive test runs and output parse

* feat(ci): parse hive output for forked repos
2022-07-21 14:47:36 +02:00
Giulio rebuffo
1becfc509b
extra reset before starting change in rewind side fork (#4774)
* extra reset before starting change

* extra reset before starting change

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-21 04:06:26 +02:00
Giulio rebuffo
7573a41069
fixed accumulator nil case (#4773)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-21 03:47:37 +02:00
Giulio rebuffo
73b028a5fd better payload cleanup (#4772)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-20 18:16:42 +02:00
Andrew Ashikhmin
9e8f625c53
Fix txn removal in PendingPool (#4770) 2022-07-20 18:28:58 +03:00
Andrew Ashikhmin
00769e3dff
Fix MDBX compilation on macOS (#4767) 2022-07-20 15:16:20 +02:00
Andrea Lanfranchi
f8c37be3b2
Only test and db-tools require submodule update (#4765) 2022-07-20 18:42:33 +07:00
Alex Sharov
2706b01cea
go mod (#4762) 2022-07-20 12:23:12 +02:00
Alex Sharov
1ecacde3a9
trackerslist: convert from git submodule to go package (#4761) 2022-07-20 09:47:58 +07:00
Alex Sharov
5805d963ea
erigon-snapshot: convert from git sumbodule to golang package (#4760) 2022-07-20 09:34:12 +07:00
Giulio rebuffo
d4f865d725
Added proper cleanup when we get notified of new height (#4753)
* added proper cleanup when we get notified of new height

* added extra cleanup

* removed bad if condition

* fixed hive tests

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-19 22:31:15 +02:00
Andrew Ashikhmin
d0399012c2
Fix txn removal in PendingPool (#4754) 2022-07-19 16:31:30 +02:00
Andrew Ashikhmin
1110c35033
Görli Terminal Total Difficulty (#4752) 2022-07-19 16:03:35 +02:00
Enrique Jose Avila Asapche
e768227d38
Merge range (#4749)
* added merge range into segments

* got rid of missing snapshot errors

* reusing RequestSnapshotDownload

* sleep out of download

* ops

* warning if we are missing snapshots
2022-07-19 19:27:54 +07:00
Alex Sharov
d3b424c9f6
Mdbx: GC BigFoot (#4750) 2022-07-19 16:53:18 +07:00
Andrew Ashikhmin
ab28089583
Still fixing index out of range in (*Accumulator) ChangeStorage (#4751) 2022-07-19 11:11:08 +02:00
Alex Sharov
b70abd7aaf
Grpc up v48 #532
* save

* save
2022-07-19 13:45:53 +07:00
Alex Sharov
bda2697bcc
linter version up #4745 2022-07-19 10:56:14 +07:00
Alex Sharov
c9306ab8d0
disable asserts in devel (#4746)
* save

* save
2022-07-19 10:54:44 +07:00
michaelscheung
c7da7a6d90
Support block parameter for integration stage_log_index (#4740)
* Support block parameter for integration stage_log_index

* Add logPrefix

* Skip stage_log_index if endBlock < startBlock

Co-authored-by: michaelscheung <michael.szeyu.cheung@gmail.com>
2022-07-19 10:48:22 +07:00
Alex Sharov
5d68f610bc
mdbx: use OS pagesize by default (but > 4Kb, and < 64Kb) #4743 2022-07-19 10:40:02 +07:00
nanevardanyan
59dda48567
eth: replace maps with etl.Collectors (#4707)
* WIP: eth: replace maps with etl.Collectors

* WIP: eth: replace maps with etl.Collectors in pruneOldLogChunks

* WIP: eth: use appendBuffer to avoid duplicates

* WIP: eth: replace with oldestEntrySortableBuffer
2022-07-19 08:11:37 +07:00
Andrew Ashikhmin
5862899979
Fix index out of range in (*Accumulator) ChangeStorage (#4738) 2022-07-18 19:03:38 +02:00
Enrique Jose Avila Asapche
8dceb6fe82
Auto download snapshots (#4729)
* refactored request download

* keeping track of missing snapshots

* using slice mergeRange

* request snapshots on reopen

* passing arguments

* passed in var

* Revert "passed in var"

This reverts commit 90478978dfa9f2a6dd5b1b051fc1d3f9e5f7a9c5.

* Revert "passing arguments"

This reverts commit 1e39c4152003796f6ff0bcfc188512d4a43bd18d.

* Revert "request snapshots on reopen"

This reverts commit d40212b973bc15db2b25cc1b0abb22051a3debb1.

* added downloadRequest
;

* downloading missing headers at start up

* there shouldnt be an error anymore

* not using nil;
;
2022-07-18 17:42:20 +03:00
Alex Sharov
b7acf6c108
compressor: generic sort (#4734) 2022-07-18 17:12:13 +07:00
Alex Sharov
15ca3d25c1
snapshots: mainnet to 15m #4733 2022-07-18 15:36:53 +07:00
Alex Sharov
13bf5c30c1
db migration fix: it was able run with delay #4732 2022-07-18 14:38:01 +07:00
Alex Sharov
ac9b7d8cc2
commitment: generic btree #4731 2022-07-18 12:19:46 +07:00
Giulio rebuffo
fb9f193349
fixed Two Block PoW Re-org to Higher-Height Chain (#4730)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-18 03:04:02 +02:00
Giulio rebuffo
8a754cd252
Added PoS download validation when applicable (#4728)
* added incomplete version of PoS download validation

* fixed stuff
2022-07-17 02:02:53 +02:00
Enrique Jose Avila Asapche
e04401491f
checking if we build torrent file (#4723)
* checking if we build torrent file

* only if torrentHash != nil

* clearer separation of scenario

* refactored Download

* comments

* ops

* not using magnet with empty hash

* moved log to top

* ops

* logs

* log warns

* bumped up log lvl

* log
2022-07-16 11:06:26 +03:00
Levi Aul
b6440eea1e
Add erigon_getBalanceChangesInBlock RPC endpoint (#4609)
* Add eth_getBalanceChangesInBlock RPC endpoint

* Fix lints

* added assertion for one test

* moved balance change api from eth to erigon

Co-authored-by: fatemebagherii <fa.bagheri.a@gmail.com>
2022-07-15 16:04:23 +02:00
Max Revitt
e8f83db208
Gas api unit tests (#4715)
* gas price initial unit tests

* tweak(makefile): gas price test timeout increase

increase test timeout in Makefile to 50s from 30s
to cater for increased test time unit testing
gas price logic.

Co-authored-by: Scott Fairclough <scott@hexosoft.co.uk>
2022-07-15 14:56:35 +02:00