mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-18 16:44:12 +00:00
3698e7f476
* fix "genesis hash does not match" when dev nodes connect The "dev" nodes need to have the same --miner.etherbase in order to generate the same genesis ExtraData by DeveloperGenesisBlock(). Override DevnetEtherbase global var that's used if --miner.etherbase is not passed. (for NonBlockProducer case) * fix missing private key for the hardcoded DevnetEtherbase Fixes panic if SigKey is not found. Bor non-producers will use a default `DevnetEtherbase` while Dev nodes modify it. Save hardcoded DevnetEtherbase/DevnetSignPrivateKey into accounts so that SigKey can recover it. * refactor devnet.node to contain Node config This avoids interface{} type casts and fixes an error with Heimdall.validatorSet == nil * add connection retries to rpcCall and Subscribe of requestGenerator Fixes "connection refused" errors due to node not ready to handle early RPC requests. * fix deadlock in Heimdall.NodeStarted * fix GetBlockByNumber Fixes "cannot unmarshal string into Go struct field body.transactions of type jsonrpc.RPCTransaction" * demote "no of blocks on childchain is less than confirmations required" to Info (#8626) * demote "mismatched pending subpool size" to Debug (#8615) * revert wiggle testing code
16 lines
292 B
Go
16 lines
292 B
Go
package requests
|
|
|
|
import (
|
|
"github.com/ledgerwatch/erigon/p2p"
|
|
)
|
|
|
|
func (reqGen *requestGenerator) AdminNodeInfo() (p2p.NodeInfo, error) {
|
|
var result p2p.NodeInfo
|
|
|
|
if err := reqGen.rpcCall(&result, Methods.AdminNodeInfo); err != nil {
|
|
return p2p.NodeInfo{}, err
|
|
}
|
|
|
|
return result, nil
|
|
}
|