mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
17 lines
329 B
Go
17 lines
329 B
Go
package jsonrpc
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/ledgerwatch/erigon/p2p"
|
|
)
|
|
|
|
const (
|
|
// allNodesInfo used in NodeInfo request to receive meta data from all running sentries.
|
|
allNodesInfo = 0
|
|
)
|
|
|
|
func (api *ErigonImpl) NodeInfo(ctx context.Context) ([]p2p.NodeInfo, error) {
|
|
return api.ethBackend.NodeInfo(ctx, allNodesInfo)
|
|
}
|