Added mining for POS (#3187)
* added comunication with channels
* added final mining
* removed trash
* bug fixing
* async calls
* one thread
* tests
* better comments
* no lock
* better placing of skipCycleHack
* removed long timer
* moved transitioned block processing
* better naming
* disabled updates on blocks
* sync.Cond
* 2 sync.Cond
* better locking
* Use single sync.Cond. Proposer shutdown
Co-authored-by:
yperbasis <andrey.ashikhmin@gmail.com>
Showing
- cmd/integration/commands/stages.go 1 addition, 1 deletioncmd/integration/commands/stages.go
- cmd/integration/commands/state_stages.go 1 addition, 1 deletioncmd/integration/commands/state_stages.go
- cmd/rpcdaemon/rpcdaemontest/test_util.go 1 addition, 1 deletioncmd/rpcdaemon/rpcdaemontest/test_util.go
- cmd/utils/flags.go 7 additions, 3 deletionscmd/utils/flags.go
- eth/backend.go 54 additions, 3 deletionseth/backend.go
- eth/stagedsync/stage_headers.go 9 additions, 1 deletioneth/stagedsync/stage_headers.go
- eth/stagedsync/stage_mining_create_block.go 64 additions, 30 deletionseth/stagedsync/stage_mining_create_block.go
- eth/stagedsync/stage_mining_finish.go 11 additions, 0 deletionseth/stagedsync/stage_mining_finish.go
- ethdb/privateapi/all.go 1 addition, 0 deletionsethdb/privateapi/all.go
- ethdb/privateapi/engine_test.go 4 additions, 4 deletionsethdb/privateapi/engine_test.go
- ethdb/privateapi/ethbackend.go 141 additions, 38 deletionsethdb/privateapi/ethbackend.go
- params/mining.go 11 additions, 10 deletionsparams/mining.go
- turbo/cli/default_flags.go 1 addition, 0 deletionsturbo/cli/default_flags.go
- turbo/stages/mock_sentry.go 1 addition, 1 deletionturbo/stages/mock_sentry.go
Loading
Please register or sign in to comment