erigon-pulse/common
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
..
bitutil rename (#1978) 2021-05-20 19:25:53 +01:00
changeset Move lengths to erigon-lib other packages depend on it (#2799) 2021-10-08 10:20:45 +07:00
compiler Inner errors (#2774) 2021-10-04 22:16:52 +07:00
dbutils Remove ReceiptsKey in favour of EncodeBlockNumber (#2681) 2021-09-13 20:59:18 +07:00
debug Add p2p msg to panic (#2861) 2021-10-22 09:51:49 +07:00
debugprint rename (#1978) 2021-05-20 19:25:53 +01:00
fdlimit HashState stage genesis sync - read PlainState only once (#2884) 2021-11-06 16:37:33 +07:00
hexutil RPC: small optimizations (#2564) 2021-08-24 08:28:58 +01:00
math rpc: 1559 in call and tracing (#2327) 2021-07-11 04:05:56 +00:00
mclock common/mclock: remove dependency on github.com/aristanetworks/goarista (#22211) 2021-03-09 12:33:30 +01:00
paths Rename to Erigon (#2018) 2021-05-26 11:35:39 +01:00
prque rename (#1978) 2021-05-20 19:25:53 +01:00
u256 Full BSC support with validator mode (#3233) 2022-01-14 19:06:35 +00:00
big.go Prevent slice make and copy in Pushes (#625) 2020-06-05 19:46:34 +03:00
bytes_test.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
bytes.go State snapshot sync (#1417) 2021-01-02 19:28:37 +00:00
context.go Refactor mining. Remove a few mining goroutines (#338) 2020-02-03 15:02:26 +03:00
debug.go Rename to Erigon (#2018) 2021-05-26 11:35:39 +01:00
format.go common, core, light: add block age into info logs 2018-09-20 12:56:35 +03:00
hasher.go Rule guard linter enable (#3168) 2021-12-26 10:54:26 +07:00
path.go Rule guard linter enable (#3168) 2021-12-26 10:54:26 +07:00
size_test.go cmd/utils, eth: relinquish GC cache to read cache in archive mode 2019-02-07 14:36:25 +02:00
size.go [Breaking change in db!] UI for Buckets stat (#607) 2020-06-04 16:35:42 +07:00
test_utils.go Inner errors (#2774) 2021-10-04 22:16:52 +07:00
tuples_test.go Replace red black trees (#184) 2019-11-21 18:38:00 +00:00
tuples.go Fix lints and remove more unused code (#1621) 2021-03-29 10:58:45 +07:00
types_test.go more linter fixes 2021-03-18 11:44:22 +01:00
types.go unify stage params (#2384) 2021-07-17 09:09:56 +07:00