mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 02:24:29 +00:00
c51573f333
Implemented polygon->eth flow
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.callCli(&result, Methods.AdminNodeInfo); err != nil {
|
|
return p2p.NodeInfo{}, err
|
|
}
|
|
|
|
return result, nil
|
|
}
|