mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
feat: rpc api change
This commit is contained in:
parent
2be69a1ace
commit
8baf51752b
3 changed files with 6 additions and 6 deletions
|
|
@ -48,7 +48,7 @@ func (p *API) BeaconRecursiveFindNodes(nodeId string) ([]string, error) {
|
|||
return p.RecursiveFindNodes(nodeId)
|
||||
}
|
||||
|
||||
func (p *API) BeaconRecursiveFindContent(contentKeyHex string) (*discover.ContentInfo, error) {
|
||||
func (p *API) BeaconGetContent(contentKeyHex string) (*discover.ContentInfo, error) {
|
||||
return p.RecursiveFindContent(contentKeyHex)
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ func (p *API) BeaconGossip(contentKeyHex, contentHex string) (int, error) {
|
|||
return p.Gossip(contentKeyHex, contentHex)
|
||||
}
|
||||
|
||||
func (p *API) BeaconTraceRecursiveFindContent(contentKeyHex string) (*discover.TraceContentResult, error) {
|
||||
func (p *API) BeaconTraceGetContent(contentKeyHex string) (*discover.TraceContentResult, error) {
|
||||
return p.TraceRecursiveFindContent(contentKeyHex)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ func (p *API) HistoryRecursiveFindNodes(nodeId string) ([]string, error) {
|
|||
return p.RecursiveFindNodes(nodeId)
|
||||
}
|
||||
|
||||
func (p *API) HistoryRecursiveFindContent(contentKeyHex string) (*discover.ContentInfo, error) {
|
||||
func (p *API) HistoryGetContent(contentKeyHex string) (*discover.ContentInfo, error) {
|
||||
return p.RecursiveFindContent(contentKeyHex)
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ func (p *API) HistoryGossip(contentKeyHex, contentHex string) (int, error) {
|
|||
return p.Gossip(contentKeyHex, contentHex)
|
||||
}
|
||||
|
||||
func (p *API) HistoryTraceRecursiveFindContent(contentKeyHex string) (*discover.TraceContentResult, error) {
|
||||
func (p *API) HistoryTraceGetContent(contentKeyHex string) (*discover.TraceContentResult, error) {
|
||||
return p.TraceRecursiveFindContent(contentKeyHex)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ func (p *API) StateRecursiveFindNodes(nodeId string) ([]string, error) {
|
|||
return p.RecursiveFindNodes(nodeId)
|
||||
}
|
||||
|
||||
func (p *API) StateRecursiveFindContent(contentKeyHex string) (*discover.ContentInfo, error) {
|
||||
func (p *API) StateGetContent(contentKeyHex string) (*discover.ContentInfo, error) {
|
||||
return p.RecursiveFindContent(contentKeyHex)
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ func (p *API) StateGossip(contentKeyHex, contentHex string) (int, error) {
|
|||
return p.Gossip(contentKeyHex, contentHex)
|
||||
}
|
||||
|
||||
func (p *API) StateTraceRecursiveFindContent(contentKeyHex string) (*discover.TraceContentResult, error) {
|
||||
func (p *API) StateTraceGetContent(contentKeyHex string) (*discover.TraceContentResult, error) {
|
||||
return p.TraceRecursiveFindContent(contentKeyHex)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue