mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
fetcher-hotfix
This commit is contained in:
parent
10694b2c6f
commit
1861c13bcd
3 changed files with 8 additions and 6 deletions
|
|
@ -1320,4 +1320,4 @@ func TestLargeReorgTrieGC(t *testing.T) {
|
|||
t.Fatalf("competitor %d: competing chain state missing", i)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,9 +171,9 @@ exec XDC $params \
|
|||
--datadir $DATA_DIR \
|
||||
--keystore $KEYSTORE_DIR \
|
||||
--identity $IDENTITY \
|
||||
--maxpeers $MAXPEERS \
|
||||
--password ./password \
|
||||
--port 30303 \
|
||||
--maxpeers $MAXPEERS \
|
||||
--txpool.globalqueue 5000 \
|
||||
--txpool.globalslots 5000 \
|
||||
--rpc \
|
||||
|
|
@ -188,4 +188,4 @@ exec XDC $params \
|
|||
--mine \
|
||||
--gasprice "250000000" \
|
||||
--targetgaslimit "84000000" \
|
||||
"$@"
|
||||
"$@"
|
||||
|
|
|
|||
|
|
@ -242,11 +242,13 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
|
|||
if m2 == eb {
|
||||
wallet, err := eth.accountManager.Find(accounts.Account{Address: eb})
|
||||
if err != nil {
|
||||
log.Error("Can't find coinbase account wallet", "err", err)
|
||||
return block, false, err
|
||||
}
|
||||
header := block.Header()
|
||||
sighash, err := wallet.SignHash(accounts.Account{Address: eb}, XDPoS.SigHash(header).Bytes())
|
||||
if err != nil {
|
||||
if err != nil || sighash == nil {
|
||||
log.Error("Can't get signature hash of m2", "sighash", sighash, "err", err)
|
||||
return block, false, err
|
||||
}
|
||||
header.Validator = sighash
|
||||
|
|
@ -551,7 +553,7 @@ func CreateDB(ctx *node.ServiceContext, config *Config, name string) (ethdb.Data
|
|||
|
||||
// CreateConsensusEngine creates the required type of consensus engine instance for an Ethereum service
|
||||
func CreateConsensusEngine(ctx *node.ServiceContext, config *ethash.Config, chainConfig *params.ChainConfig, db ethdb.Database) consensus.Engine {
|
||||
// If Xinfin-XDPoS voting is requested, set it up
|
||||
// If Xinfin XDPoS is requested, set it up
|
||||
if chainConfig.XDPoS != nil {
|
||||
return XDPoS.New(chainConfig.XDPoS, db)
|
||||
}
|
||||
|
|
@ -864,4 +866,4 @@ func rewardInflation(chainReward *big.Int, number uint64, blockPerYear uint64) *
|
|||
|
||||
func (s *Ethereum) GetPeer() int {
|
||||
return len(s.protocolManager.peers.peers)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue