Commit Graph

16291 Commits

Author SHA1 Message Date
Alex Sharov
25d85d88c5
state erigon22: use right db (#5028) 2022-08-12 21:45:09 +07:00
Max Revitt
7a87da9497
fix(sentry): add locks in sentry grpc (#4981) (#5025) 2022-08-12 21:18:43 +07:00
fynn.z
6a4cd468c7
fix stage sync hang at a mined block (#5018) 2022-08-12 17:01:50 +07:00
Enrique Jose Avila Asapche
bec93b54e6
erigon-lib nill ptr check (#5021) 2022-08-12 17:01:31 +07:00
Andrew Ashikhmin
a5efcd721a
Mainnet Terminal Total Difficulty (#5020) 2022-08-12 16:22:33 +07:00
Alex Sharov
4594ce5ef7
erigon22: history.v2 flag, align rpcdaemon22 (#5016)
* save

* save

* save

* save

* save
2022-08-12 16:13:14 +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
nanevardanyan
8749fb4a70
cmd: make sure chain config is initialized before accessing it (#5006)
* cmd: make sure chain config is initialied before accessing it

* cmd: avoid using lazy field directly
2022-08-11 23:44:11 +07:00
Enrique Jose Avila Asapche
30df8a9765
Solving log index out of bound error (#5009) 2022-08-11 19:08:20 +03:00
Max Revitt
9732b3435c
feat(hiveci): thorax dockerhub repo with updated hive (#5005) 2022-08-11 21:43:16 +07:00
Alex Sharov
206f41811d
save (#5010) 2022-08-11 21:37:14 +07:00
Alex Sharov
a7d07ad04d
erigon22 add to exec stage (#5008)
* save

* save

* save
2022-08-11 21:06:41 +07:00
Andrew Ashikhmin
2fc084c321
erigon-lib: Various fixes and improvements of MemoryMutation (#4990)
* erigon-lib: Various fixes and improvements of MemoryMutation

* Switch back to main branch of erigon-lib
2022-08-11 10:43:00 +02:00
Alex Sharov
61d3b6c297
erigon22 use initialSync variable (#5004) 2022-08-11 12:08:27 +07:00
Henrique Barcelos
f868bf6678
docs: add --authrpc.port flag to instructions to run multiple instances on the same host (#4994)
* Multiple instances: add `--authrpc.port` flag

Fix #4993.

* Fix instructions for running multiple instance in one machine

* Refactor: reorganize the order of the flags
2022-08-11 11:37:02 +07:00
Alex Sharov
d643da3db8
erigon22 move exec to own package (#5003)
* save

* save
2022-08-11 11:36:13 +07:00
Alex Sharov
e786cbac24
E22 step2 (#5002) 2022-08-11 11:19:59 +07:00
Alex Sharov
f83032533f
Revert "move exec22 to package, call it from stage_exec (#5000)" (#5001)
This reverts commit efa6dfd8ce.
2022-08-11 11:18:23 +07:00
Alex Sharov
efa6dfd8ce
move exec22 to package, call it from stage_exec (#5000) 2022-08-11 11:17:03 +07:00
Alex Sharov
18757053cf
fix merge conflict (#4998) 2022-08-11 09:18:17 +07:00
fenghaojiang
12cf311b7c
feat: add erigon_getLogs with timestamp field to erigon rpcdaemon and fix the issue 4982 (#4968)
* add_abigen_error_handle

* add abigen error type test code

* add field timestamp in `eth_getLogs` api

add field timestamp in `eth_getLogs` api

* undo add field timestamp in `eth_getLogs`

* add `erigon_getLogs` api and add field `timestamp`

add `erigon_getLogs` api and add field `timestamp`

* feat: add `erigon_getLogs` with timestamp field to erigon rpcdaemon

feat: add `erigon_getLogs` with timestamp field to erigon rpcdaemon

* fix: issue `4982` roaring out of range

fix: issue 4982 roaring out of range

* convert rangeEnd to latest

convert rangeEnd to latest when range end is a big value that go out of range of MaxUint32

* add begin condition

add begin condition in case of bigger than latest block

* add annotation to unreachable code
2022-08-11 09:16:40 +07: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
Enrique Jose Avila Asapche
816ecc56db
Get logs fix (#4992)
* getting header number from snapshots

* Revert "getting header number from snapshots"

This reverts commit b2a899ae6b1a18d5eb769522c30caa3aebd060e7.

* using latest executed block number && snapshots

* printing bimaps

* log info

* more logs

* more logs

* logs

* ops

* nil ptr

* log topic

* more print

* ops

* storing bor logs

* got rid of the logs

* clearing buf
2022-08-10 19:03:22 +03:00
Enrique Jose Avila Asapche
8e96958fa9
having transactions (#4991)
* having transactions

* checking if we have field

* ops
2022-08-10 22:59:40 +07:00
DenrianWeiss
93a9e00e3a
fix eth_gasPrice RPC issue. (#4943)
* [fix] eth_gasPrice RPC issue.
big.Int's Add method will save the result to self, since oracle.SuggestTipCap might come from gpo.lastPrice, this will change all following rpc result

* [fix] add big library

* [fix] set default result for gasResult
2022-08-10 20:18:14 +07:00
Giulio rebuffo
0863048d6d
added P2P gossip for newBlock66 (#4987)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-10 14:56:06 +02:00
Alex Sharov
351cd49c21
go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
Alex Sharov
0beb295745
torrent: try burst limit fix panic (#4983)
* save

* save
2022-08-10 18:52:36 +07:00
Alex Sharov
cebb44b486
up_metrics version (#4986)
* save

* save

* save
2022-08-10 18:39:27 +07:00
Giulio rebuffo
17e3f17ca0
removed goroutine from sealing (#4984)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-10 13:08:00 +02:00
Alex Sharov
e702e48bc3
disable StateCache when rpcdaemon when embedded #4985 2022-08-10 17:30:02 +07:00
hexoscott
a573f8356f
rpc: concurrent map issue with log subscription fix (#4971)
* rpc: concurrent map issue with log subscription fix

* rpc: subscription changes around locking
2022-08-10 16:01:53 +07:00
Enrique Jose Avila Asapche
832d9fd3ec
notifying header if cannonical (#4930)
* notifying header if cannonical

* checking if header is cannonical at notification

* getting hash from rlp

* adding to headerRlp if cannonical

* declaration
2022-08-10 11:22:11 +07:00
cgst
f560f3788f
HeaderByHash segment loop should break on result (#4969) 2022-08-09 15:03:39 +07:00
Alex Sharov
bd721b9fd7
Erigon22: reduce amount of variables. progress object and use of db.update (#4967)
* save

* save

* save

* save

* save
2022-08-09 11:46:57 +07:00
Alex Sharov
b717ff5df5
erigon22: move worker to package (#4966)
* save

* save

* save

* save

* save
2022-08-09 10:39:34 +07:00
Alex Sharov
9595c239c2
erigon22: optimize index.add #571 (#4965)
* save

* bsc
2022-08-09 10:28:36 +07:00
fenghaojiang
5540db0529
add erigon_getLogs api and add field timestamp (#4964)
* add_abigen_error_handle

* add abigen error type test code

* add field timestamp in `eth_getLogs` api

add field timestamp in `eth_getLogs` api

* undo add field timestamp in `eth_getLogs`

* add `erigon_getLogs` api and add field `timestamp`

add `erigon_getLogs` api and add field `timestamp`
2022-08-09 10:00:36 +07:00
Giulio rebuffo
6d86b3a403
use of memory batch (#4961)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-08 18:20:12 +02:00
Enrique Jose Avila Asapche
0d08bd096f
disabled hive test (#4959) 2022-08-08 15:19:39 +03:00
Enrique Jose Avila Asapche
c12d298f1c
new rpc block number (#4953)
* new rpc block number

* log

* ops
2022-08-08 19:07:24 +07:00
Giulio rebuffo
7a64fe44eb
UX improvement for pre-merge sync with Teku (#4955)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-08 11:26:34 +02:00
Alex Sharov
1b20322b60
snap: no tmp subfolder (#4940)
* save

* save

* save

* save

* save
2022-08-08 09:24:39 +07:00
fenghaojiang
bc7921a8ab
add field timestamp to eth_getLogs response (#4950)
* add_abigen_error_handle

* add abigen error type test code

* add field timestamp in `eth_getLogs` api

add field timestamp in `eth_getLogs` api
2022-08-08 09:17:32 +07:00
Dan Kelly
cce64f6a33
Fix rpc json #4838 (#4894)
* Fixing RPC JSON errors

* Use local rpc mod

* Revert "Use local rpc mod"

This reverts commit 61d06a72d218f5ecb84e9e4ddddf8762a04f714c.

* Make handle error accessible

* Port fixes to rpcdaemon22

* Remove unused...

* ... and use correct function name

* Handle errors outside iterator loop. Fix missing rpcdaemon22 error handling

* Bubble up higher level errors to the top-level object

* Fix linter error - semi-colon..
2022-08-08 09:15:58 +07:00
Enrique Jose Avila Asapche
a02c71c006
added VRS hard-coded values (#4949) 2022-08-06 19:05:51 +03:00
Giulio rebuffo
a481b77489
removed incarnation updates and removed side forks past fcu (#4944)
* removed incarnation updates and removed side forks past fcu

* has

* fixed hive

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-05 18:07:27 +02:00
Max Revitt
8b475564d9
feat(ci): hive xunit output parse (#4945) 2022-08-05 17:28:56 +03:00
Alex Sharov
7a2e7e8c06
enable_remote_rpcdaemon (#4938) 2022-08-05 10:15:40 +07:00
Alex Sharov
05e5634653
snap indexing: fix logging #4937 2022-08-05 09:01:17 +07:00