Alex Sharov
fb2294d124
Erigon22: basic txNum forward/unwind ( #5176 )
2022-08-25 12:24:01 +07:00
Alex Sharov
69fbfc9bef
Snapshots: Erigon update list in db only after Downloader confirmation, rpcdaemon read list from db ( #5150 )
2022-08-23 16:28:07 +07:00
Enrique Jose Avila Asapche
c0de0488c8
added removal of bor logs when deleting receipts ( #5105 )
2022-08-19 08:57:24 +07:00
Alex Sharov
6df6640868
erigon22: prune - check key existance ( #5059 )
2022-08-15 14:36:57 +07:00
Alex Sharov
4f007ae43e
erigon22: use chainDB instead of db22 for everything ( #5034 )
2022-08-13 12:08:15 +07:00
Alex Sharov
e27f669a3f
erigon2.2: save stage progress to chainDB, can run "integration stage_exec" and "state erigon22" on same datadir ( #5033 )
2022-08-13 11:17:24 +07:00
Alex Sharov
40535837c9
Simplify write body ( #5031 )
...
* save
* save
2022-08-13 00:14:42 +07:00
Alex Sharov
25d85d88c5
state erigon22: use right db ( #5028 )
2022-08-12 21:45:09 +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
Enrique Jose Avila Asapche
30df8a9765
Solving log index out of bound error ( #5009 )
2022-08-11 19:08:20 +03: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
Alex Sharov
539d14669a
fix empty sn list ( #4881 )
2022-08-01 11:49:37 +07:00
Alex Sharov
aee4b53788
save list of snapshots in db ( #4777 )
...
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
2022-07-28 16:57:38 +07:00
Alex Sharov
b6ea28ea80
kv.Del() remove second parameter ( #4832 )
...
* save
* save
* save
* save
* save
* save
* save
2022-07-26 12:47:05 +07:00
Alex Sharov
68e35417fc
RetireBlocks: encapsulate delete logic
2022-07-23 11:09:16 +07:00
Levi Aul
8de866028a
Additional bor RPC fixes ( #4675 )
...
* Add borTx to GetBlockByHash; ensure borTxs have hashes; don't try to derive sender for borTxs
* Surface borReceipt logs in eth_getLogs
* Check for existence of borReceipt before synthesizing a borTx
2022-07-09 09:15:22 +06:00
Levi Aul
7b80744768
Ensure (fake) Bor txs + receipts are returned from all relevant RPC methods ( #4663 )
...
* Ensure fake Bor txs + receipts are returned from all relevant RPC methods
* Add rest of bor implementation for eth_getBlockByNumber
* Use TxLookup index to find Bor txs
* Fix txHash on emitted borTxs and borReceipts
* Fix checks given that borTxs get registered in TxLookup; remove useless ref indirections
2022-07-07 14:40:50 +06:00
Enrique Jose Avila Asapche
70bf7dbc11
getting amount from non canonical bucket ( #4648 )
2022-07-06 16:25:29 +06:00
Alex Sharov
ff847cd459
Snapshots: save initial list to db, to avoid future snapshots downloading #4625
2022-07-04 18:44:15 +06:00
Giulio rebuffo
8e3c099490
fix panic ( #4620 )
2022-07-03 18:45:27 +02:00
Giulio rebuffo
c422b8c4da
better ancestor check ( #4617 )
2022-07-03 13:34:35 +02:00
Giulio rebuffo
3fc51f5ef7
Revert "Proper Pos block checker when INVALID/ACCEPTED status is sent ( #4604 )" ( #4616 )
...
This reverts commit e90e03ae31
.
2022-07-03 13:11:16 +02:00
Giulio rebuffo
e90e03ae31
Proper Pos block checker when INVALID/ACCEPTED status is sent ( #4604 )
...
* added proper PoS block checker
* proper invalid lvh
* p
* fixed smol thingy
* fix more
* fixed engine API
* fixed engine API
* better nil hash
* added 0x0 checks
* full support
2022-07-03 11:58:57 +02:00
Andrew Ashikhmin
9b8888d797
Delete bad blocks on unwind ( #4529 )
...
* Delete bad headers
* Delete bad bodies
2022-06-24 15:52:04 +02:00
Alex Sharov
d7d698f565
db migration to reset blocks ( #4389 )
...
* save
* save
* save
* save
* save
* save
* Update reset_blocks.go
* Not to remove too many tx lookup files
* Fix truncate blocks and add reset txlookup
* Fix bodies
* Fix nil pointer
Co-authored-by: ledgerwatch <akhounov@gmail.com>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-07 19:59:14 +01:00
Enrique Jose Avila Asapche
a1f4472f10
added back PR 3806 ( #4382 )
2022-06-07 10:51:28 +01:00
Alex Sharov
a53642b4bf
datadir.Dirs configuration object to group dir config ( #4387 )
2022-06-07 10:24:50 +07:00
ledgerwatch
3d3b190e42
Copy deletion key to prevent deleting more blocks ( #4384 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-06 23:04:24 +01:00
Alex Sharov
457e043401
skip empty senders ( #4359 )
2022-06-04 09:21:33 +07:00
Alex Sharov
f838268e44
[wip] Snapshots: more runtime invariants check ( #4350 )
2022-06-03 18:50:01 +07:00
Alex Sharov
92318a3c38
Add trace to receipt count mismatch log ( #4284 )
2022-05-27 11:03:04 +07:00
Alex Sharov
6eb10ba9a8
Use ETL to fill kv.HeaderNumber from snapshots ( #4272 )
...
* merge devel
* save
2022-05-26 21:41:05 +07:00
Alex Sharov
66248c4bfb
Torrent: verify all files ( #4270 )
2022-05-26 12:27:44 +07:00
Alex Sharov
fc1a37e6dc
create turbo/services pkg ( #4269 )
2022-05-26 10:31:06 +07: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
Alex Sharov
7ecdf51d92
methods to read single txn by txnID ( #4215 )
2022-05-20 14:12:12 +07:00
Alex Sharov
64508a7d4e
Snap: call AddHeadersFromSnapshot only at initialCycle ( #4198 )
2022-05-19 10:38:53 +07:00
Alex Sharov
3e4fb5dd49
up linter version ( #4108 )
...
* save
* save
* save
2022-05-10 10:14:09 +07:00
Alex Sharov
e68879810e
make sure stage_headers --reset doesn't left garbage in bodies table #4043
2022-05-01 11:38:35 +07:00
ledgerwatch
e0d7998eb0
Truncate bor receipts on unwind ( #4033 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-04-30 15:46:08 +01:00
Alex Sharov
a13c5ba904
Fix non-starting download ( #4031 )
...
* save
* save
* save
* save
2022-04-30 11:42:36 +07:00
Alex Sharov
77560b6732
More careful handle of sequences in stage_headers --reset ( #4023 )
...
* save
* save
* save
* save
2022-04-29 14:37:02 +07:00
Alex Sharov
352869fc3a
rename field "type" ( #4015 )
...
* save
* save
* save
2022-04-28 15:02:06 +07:00
Alex Sharov
3906d7e51f
Snapshots: allow stage_headers --unwind behind available snapshots ( #3971 )
...
* save
* save
* save
2022-04-26 12:04:38 +07:00
Alex Sharov
dba9544edc
Delete blocks in [from, to) range ( #3970 )
2022-04-26 11:15:45 +07:00
Giulio rebuffo
5e1900cc48
cleaned up forkchoices db insertions #3949
2022-04-24 08:13:49 +07:00
Giulio rebuffo
c5b1836481
Added Ethstats service ( #3931 )
...
* somewhat there but not yet
* lol
* more efficient ethstats
* lint
* not die on no wifi
2022-04-22 07:23:52 +01:00
Alex Sharov
6aa4999729
Parallel indexing ( #3921 )
2022-04-21 10:34:10 +07:00
Alex Sharov
b329d675ec
Torrent best trackers ( #3870 )
...
* best trackers
* save
2022-04-11 14:01:12 +07:00
Alex Sharov
0842e2bd12
RetireBlocks: preserve genesis ( #3869 )
...
* save
* save
* save
2022-04-11 13:16:45 +07:00