MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / requestBP

Function requestBP

client/driver.go:525–532  ·  view source on GitHub ↗
(method route.RemoteFunc, request interface{}, response interface{})

Source from the content-addressed store, hash-verified

523}
524
525func requestBP(method route.RemoteFunc, request interface{}, response interface{}) (err error) {
526 var bpNodeID proto.NodeID
527 if bpNodeID, err = rpc.GetCurrentBP(); err != nil {
528 return
529 }
530
531 return rpc.NewCaller().CallNode(bpNodeID, method.String(), request, response)
532}
533
534func registerNode() (err error) {
535 var nodeID proto.NodeID

Callers 6

CreateFunction · 0.85
GetTokenBalanceFunction · 0.85
UpdatePermissionFunction · 0.85
TransferTokenFunction · 0.85
WaitTxConfirmationFunction · 0.85
getNonceFunction · 0.85

Calls 2

CallNodeMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected