erigon-pulse/turbo
Andrew Ashikhmin 445ac05220
Verify PoS headers before inserting them into DB (#3151)
* Remove TotalDifficulty stage

* Introduce FeedHeaderFuncType

* Some TODOs

* Don't gossip PoS headers

* FeedHeaderPoS

* Call header.Hash once

* Use FeedHeaderPoS for to write PoS header

* Support errors in EngineExecutePayloadV1

* useExternalTx boilerplate

* Call VerifyHeader on PoS header

* latestValidHash must be nil when status is SYNCING

* fixCanonicalChain instead of canonicalHeadersCollector

* engine.VerifyHeader + FeedHeaderPoS as headerLoadFunc

* fix daemon

Co-authored-by: Giulio Rebuffo <giulio.rebuffo@gmail.com>
2021-12-23 15:06:10 +01:00
..
adapter grpc GetBlock api (#2955) 2021-11-14 11:08:52 +07:00
cli Txpool tracing by sender addresses (#3113) 2021-12-14 16:15:54 +00:00
mock rpcdaemon: add txpool_status() (#2407) 2021-08-06 09:45:44 +07:00
node Add chain config and CLI changes for Binance Smart Chain support (#3131) 2021-12-16 07:26:44 +00:00
rlphacks rename (#1978) 2021-05-20 19:25:53 +01:00
rpchelper Json rpc eip1898 correctness (#2736) 2021-09-28 09:25:56 +07:00
shards Pool: switch to pendingBaseFee (#2732) 2021-09-26 23:09:36 +07:00
snapshotsync Snapshots hashes for mainnet (#3150) 2021-12-21 21:12:32 +07:00
stages Verify PoS headers before inserting them into DB (#3151) 2021-12-23 15:06:10 +01:00
transactions change: port js tracer changes (#3128) 2021-12-15 13:19:58 +00:00
trie Use IsZero() instead of Sign() for uint256.int (#2960) 2021-11-14 22:18:47 +07:00
README.md Rename to Erigon (#2018) 2021-05-26 11:35:39 +01:00

Erigon-API

Erigon-API is a set of tools for building applications containing Erigon node.

Our own binary erigon is built using it.

Modules

  • cli - erigon-cli, methods & helpers to run a CLI app with Erigon node.

  • node - represents an Ethereum node, running devp2p and sync and writing state to the database.

  • stagedsync - staged sync algorithm.

Examples

  • erigon - our binary is using erigon-api with all defaults

  • erigoncustom - a very simple example of adding a custom stage, a custom bucket and a custom command-line parameter

  • erigon-examples - a series of examples for Erigon api