mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
upstream: fixed all remaining compilation errors
This commit is contained in:
parent
6e34cc4f2c
commit
ac47cb3cde
3 changed files with 5 additions and 5 deletions
|
|
@ -254,7 +254,7 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) {
|
|||
|
||||
if ctx.IsSet(utils.DeveloperFlag.Name) {
|
||||
// Start dev mode.
|
||||
simBeacon, err := catalyst.NewSimulatedBeacon(ctx.Uint64(utils.DeveloperPeriodFlag.Name), cfg.Eth.Miner.PendingFeeRecipient, eth)
|
||||
simBeacon, err := catalyst.NewSimulatedBeacon(ctx.Uint64(utils.DeveloperPeriodFlag.Name), common.Address{}, eth)
|
||||
if err != nil {
|
||||
utils.Fatalf("failed to register dev mode catalyst service: %v", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1394,7 +1394,7 @@ func setEtherbase(ctx *cli.Context, cfg *ethconfig.Config) {
|
|||
return
|
||||
}
|
||||
|
||||
cfg.Miner.PendingFeeRecipient = common.BytesToAddress(b)
|
||||
cfg.Miner.Etherbase = common.BytesToAddress(b)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -267,10 +267,10 @@ func (d *Downloader) Progress() ethereum.SyncProgress {
|
|||
|
||||
current := uint64(0)
|
||||
mode := d.getMode()
|
||||
switch mode {
|
||||
case FullSync:
|
||||
switch {
|
||||
case d.blockchain != nil && mode == FullSync:
|
||||
current = d.blockchain.CurrentBlock().Number.Uint64()
|
||||
case SnapSync:
|
||||
case d.blockchain != nil && mode == SnapSync:
|
||||
current = d.blockchain.CurrentSnapBlock().Number.Uint64()
|
||||
case d.lightchain != nil:
|
||||
current = d.lightchain.CurrentHeader().Number.Uint64()
|
||||
|
|
|
|||
Loading…
Reference in a new issue