erigon-pulse/core
Dmitry Savonin a49d409457
Full BSC support with validator mode (#3233)
* migrated consensus and chain config files for bsc support

* migrated more files from bsc

* fixed consensus crashing

* updated erigon lib for parlia snapshot prefix

* added staticpeers for bsc

* [+] added system contracts
[*] fixed bug with loading snapshot
[+] enabled gas bailout
[+] added fix to prevent syncing more than 1000 headers (for testing only)
[*] fixed bug with crashing sender recover sometimes

* migrated system contract calls

* [*] fixed bug with returning mutable balance object
[+] migrated lightclient contracts from bsc
[*] fixed parlia consensus config param

* [*] fixed tendermint deps

* [+] added some logs

* [+] enabled bsc forks
[*] fixed syscalls from coinbase
[*] more logging

* Fix call sys contract gas calculation

* [*] fixed executing system transactions

* [*] enabled receipt hash, gas and bloom filter checks

* [-] removed some logging scripts
[*] set header checkpoint to 10 million blocks (for testing forks)

* [*] fixed bug with commiting dirty inter block state state after system transaction execution
[-] removed some extra logs and comments

* [+] added chapel and rialto testnet support

* [*] fixed chapel allocs

* [-] removed 6 mil block limit for headers sync

* Fix hardforks on chapel and other testnets

* [*] fixed header sync issue after merge

* [*] tiny code cleanup

* [-] removed some comments

* [*] increased mdbx map size to 4 TB

* [*] increased max chaindata size to 6 tb

* [*] bring more compatibility with origin erigon and some code cleanup

* [+] added support of validator mode for BSC chain

* [*] enable private key load for bsc, rialto and chapel chains

* [*] fixed running BSC validator node

* Fix the branch list

* [*] tiny fixes for linter

* [*] formatted imports for core and parlia packages

* [*] fixed import rules in other files

* Revert "[*] formatted imports for core and parlia packages"

This reverts commit c764b58b34fedc2b14d69458583ba0dad114f227.

* [*] changed import rules in more packages

* [*] fixed type mismatch in hack command

* [*] fixed crash on new epoch, enabled bootstrap flags

* [*] fixed linter errors

* [*] fixed missing err check for syscalls

* [*] now BSC implementation is fully compatible with erigon original sources

* Revert "Add chain config and CLI changes for Binance Smart Chain support (#3131)"

This reverts commit 3d048b7f1a.

* Revert "Add Parlia consensus engine for Binance Smart Chain support (#3086)"

This reverts commit ee99f17fbe.

* [*] fixed several issues after merge

* [*] fixed integration compilation

* Revert "Fix the branch list"

This reverts commit 8150ca57e5f2707a84a9f6a1c5b809b7cc84547b.

* [-] removed receipt repair migration

* [*] fixed parlia fork numbers output

* [*] bring more devel compatibility, fixed bsc address list for access list calculation

* [*] fixed bug with commiting state transition for bad blocks in BSC

* [*] fixed bsc changes apply for integration command and updated config print for parlia

* [*] fixed bug with applying bsc forks for chapel and rialto testnet chains
[*] let's use finalize and assemble for mining to  let consensus know for what it's finalizing block

* Fix compilation errors in hack.go

* Fix lint

* reset changes in erigon-snapshots to devel

* Remove unrelated changes

* Fix embed

* Remove more unrelated changes

* Remove more unrelated changes

* Restore clique and aura miner config

* Refactor interfaces not to use slice pointers

* Refactor parlia functions to return tx and receipt instead of dealing with slices

* Fix for header panic

* Fix lint, restore system contract addresses

* Remove more unrelated changes, unify GatherForks

Co-authored-by: Dmitry Ivanov <convexman18@gmail.com>
Co-authored-by: j75689 <j75689@gmail.com>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-01-14 19:06:35 +00:00
..
allocs Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
asm rename (#1978) 2021-05-20 19:25:53 +01:00
bloombits hide file exists err (#2218) 2021-06-22 11:09:45 +01:00
forkid Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
rawdb Snapshots: tx lookup in RPC from snapshots (#3214) 2022-01-07 20:52:38 +07:00
state Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
systemcontracts Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
types Suggesting fix for data race (#3236) 2022-01-11 21:23:24 +07:00
vm Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
block_validator_test.go Serenity engine: fall back to eth1 engine before the Merge (#3112) 2021-12-13 18:29:38 +01:00
block_validator.go Simplify miner gas limit post EIP-1559. Default to 30M (#3205) 2022-01-05 16:36:24 +07:00
blockchain_insert.go step towards kv interface (#2311) 2021-07-07 23:15:49 +07:00
blockchain.go Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
blocks.go rename (#1978) 2021-05-20 19:25:53 +01:00
chain_makers.go Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
error.go Update consensus tests to 10.2. EIP-2681 (#3103) 2021-12-07 18:24:59 +01:00
events.go rename (#1978) 2021-05-20 19:25:53 +01:00
evm.go [EIP-4399] Remove newly added Header.Random (reuse mixHash instead) (#3069) 2021-12-01 13:41:31 +01:00
gaspool.go miner: avoid unnecessary work (#15883) 2018-01-15 12:57:06 +02:00
gen_genesis_account.go Upgrade tests to 9.0.2 (#2147) 2021-06-13 14:01:11 +01:00
gen_genesis.go Report Valid ExecutionStatus only after all stages (#3212) 2022-01-07 16:54:26 +01:00
genesis_test.go Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
genesis.go Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
mkalloc.go rename (#1978) 2021-05-20 19:25:53 +01:00
rlp_test.go move kv to erigon-lib (#2467) 2021-07-29 18:53:13 +07:00
skip_analysis.go Skip analysis and preverified hashe update (#3244) 2022-01-12 10:36:12 +00:00
state_processor.go Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
state_transition.go Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
tx_cacher.go Move ETL to erigon-lib (#2667) 2021-09-12 08:50:17 +01:00
tx_pool.go Txpool tracing by sender addresses (#3113) 2021-12-14 16:15:54 +00:00