Alex Sharov
fb2294d124
Erigon22: basic txNum forward/unwind ( #5176 )
2022-08-25 12:24:01 +07:00
Andrew Ashikhmin
1ce144a988
Revert recent change to MiningStep ( #5168 )
2022-08-24 12:47:11 +02:00
Andrew Ashikhmin
b3d99f8e8c
Small cleanups ( #5162 )
2022-08-24 11:35:39 +02:00
Alex Sharov
16d02c8cc9
erigon22: unwind trie support ( #5159 )
2022-08-24 11:37:58 +07:00
Alex Sharov
c1214e4ac5
erigon22: incremental stage trie ( #5116 )
2022-08-19 13:23:23 +07:00
Alex Sharov
30324fbb81
erigon22: get acc index from aggregator22 ( #5114 )
2022-08-19 11:30:59 +07:00
Alex Sharov
cb9f86fcbc
erigon22: incremental hash state stage ( #5111 )
2022-08-19 10:00:47 +07:00
Alex Sharov
46ef7e5305
erigon22: incremental hash state stage ( #5102 )
2022-08-19 09:35:43 +07:00
fynn.z
82fb73a545
Fix in-flight sealing task not abort when next sealing task coming ( #5103 )
...
* Fix in-flight sealing task not abort when next sealing task coming, may cause lightclient state verify failed.
* fix integretion err
2022-08-18 18:35:30 +07:00
Giulio rebuffo
c58a3be765
ops ( #5048 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-13 23:40:53 +02:00
Giulio rebuffo
6713abb420
fixed exec22 panic ( #5045 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-13 18:54:32 +01:00
Alex Sharov
52fd0d0e8b
Aggregator22.Unwind() ( #5039 )
...
* save
* save
2022-08-13 18:51:25 +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
Giulio rebuffo
8ade569cc5
Save PoW blocks for processing received through P2P ( #5015 )
...
* save terminal blocks
* ops
* save less PoW blocks
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-12 21:54:20 +02:00
fynn.z
6a4cd468c7
fix stage sync hang at a mined block ( #5018 )
2022-08-12 17:01:50 +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
Alex Sharov
a7d07ad04d
erigon22 add to exec stage ( #5008 )
...
* save
* save
* save
2022-08-11 21:06:41 +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
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
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
Andrew Ashikhmin
4fb27b60f9
Clean up BodyDownload.VerifyUncles ( #4928 )
2022-08-04 11:47:01 +02:00
Leonard Chinonso
ec67e80a8a
Fixed lint errors for gocritic linter ( #4904 )
2022-08-03 00:35:22 +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
Andrew Ashikhmin
d85e3c626e
Fix consensus tests ( #4844 )
...
* Fix timeout in (*MockSentry) insertPoSBlocks
* Fix bcInvalidHeaderTest/DifficultyIsZero
2022-07-27 17:43:48 +02:00
Andrew Ashikhmin
1ffa984457
Don't wait for CL in initialCycle ( #4841 )
2022-07-27 13:52:50 +02:00
Andrew Ashikhmin
c1f848746d
Update consensus tests to v11 ( #4724 )
...
* Consensus tests update 11
* Add GrayGlacier fork
* Wire currentRandom from tests into PREVRANDAO
* Serenity engine
* Support insertion of PoS blocks in MockSentry
* Introduce marshallTypedTransactionsAsRlpStrings arg into (*Block) RawBody()
* Revert "Introduce marshallTypedTransactionsAsRlpStrings arg into (*Block) RawBody()"
This reverts commit 903fca572be03c7de33318ce177a03a4be34927b.
* Post-merge fix
* Don't wait for Beacon Chain in tests
* Skip powToPosBlockRejection transition test
* ForkChoice in insertPoSBlocks
* Add withPosDownloader arg to MockWithEverything in order to fix TestPoSDownloader
2022-07-26 09:35:38 +02:00
Alex Sharov
60f1adddcd
implement server kv.Snapsthos() method ( #4831 )
...
* save
* save
2022-07-26 10:44:47 +07:00
Giulio rebuffo
1cb6be02a5
Avoid constantly triggering stageloop when using Engine API ( #4797 )
...
* avoid constantly triggering stageloop when using Engine API
* fix lint + test
* fixed comments
* ops
* little fixes here and there
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-07-23 18:57:23 +02: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
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
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
Andrew Ashikhmin
af661a9459
Fix canExtendCanonical when some headers are downloaded ( #4709 )
...
* Fix canExtendCanonical when some headers are downloaded
* Restore original logic for forkValidator.ValidatePayload
* Check FCU status
2022-07-14 11:03:15 +02:00
Andrew Ashikhmin
dd1a5944a9
Better logging for invalid PoS headers ( #4703 )
2022-07-13 12:07:21 +02:00
Giulio rebuffo
b161c27ac3
optimized one db read ( #4694 )
2022-07-12 10:39:57 +02:00
Giulio rebuffo
51245d294f
Add PoS validator struct [Refactoring] ( #4690 )
...
* added fork_validor struct
* replaced occurences of hd with forkValidator
* added engineapi.validatorFork
* 32 blocks maxForkDepth
* removed useless if
2022-07-11 15:12:21 +02:00
Andrew Ashikhmin
225935b376
Bump log level of some PoS messages from Trace to Debug ( #4682 )
2022-07-08 15:18:36 +02:00
Alex Sharov
01bca8f1e2
TxPool: generics btree ( #4665 )
...
* save
* save
* save
* save
2022-07-07 11:07:48 +06:00
Giulio rebuffo
99208ff4dc
Fixed hive test ( #4653 )
2022-07-06 13:52:49 +02:00
Giulio rebuffo
5e1cc9ae51
fixed Invalid Number reorg ( #4643 )
2022-07-05 23:40:10 +02:00
Giulio rebuffo
d4a0aff53f
fixed hive test: Transaction Reorg - Check Blockhash with NP on revert (erigon) ( #4640 )
2022-07-05 20:03:05 +02:00
Giulio rebuffo
a76e6a1d05
fixed deadlock ( #4633 )
2022-07-05 09:53:28 +02:00
Giulio rebuffo
d83b7a4ae0
Proper PoS Error reporting ( #4631 )
...
* better reporting
* removed debug log
* proper error reporting
2022-07-05 01:31:16 +02:00
Andrew Ashikhmin
00ee68e4a1
FeedHeaderPoS already writes header number ( #4626 )
...
* FeedHeaderPoS already calls WriteHeaderNumber
* Moreover, WriteHeader already writes to HeaderNumber
2022-07-04 11:28:10 +02:00
Giulio rebuffo
b980280785
Fixed hive test on invalid transition payload ( #4618 )
...
* experiment #1
* experiment #2
* experiment #3
* experiment 4
2022-07-03 17:36:39 +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