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

Function RequestBP

rpc/mux/resolve.go:245–251  ·  view source on GitHub ↗

RequestBP sends request to main chain.

(method string, req interface{}, resp interface{})

Source from the content-addressed store, hash-verified

243
244// RequestBP sends request to main chain.
245func RequestBP(method string, req interface{}, resp interface{}) (err error) {
246 var bp proto.NodeID
247 if bp, err = GetCurrentBP(); err != nil {
248 return err
249 }
250 return NewCaller().CallNode(bp, method, req, resp)
251}
252
253// RegisterNodeToBP registers the current node to bp network.
254func RegisterNodeToBP(timeout time.Duration) (err error) {

Callers 7

showDatabaseDepositFunction · 0.92
showAllDatabaseDepositFunction · 0.92
getDatabaseProfileFunction · 0.92
getAccountBalanceMethod · 0.92
getAccountNonceMethod · 0.92
transferTokenMethod · 0.92

Calls 3

GetCurrentBPFunction · 0.85
CallNodeMethod · 0.80
NewCallerFunction · 0.70

Tested by

no test coverage detected