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

Method requestBP

worker/chainbusservice.go:213–219  ·  view source on GitHub ↗
(method string, request interface{}, response interface{})

Source from the content-addressed store, hash-verified

211}
212
213func (bs *BusService) requestBP(method string, request interface{}, response interface{}) (err error) {
214 var bpNodeID proto.NodeID
215 if bpNodeID, err = rpc.GetCurrentBP(); err != nil {
216 return
217 }
218 return bs.caller.CallNode(bpNodeID, method, request, response)
219}
220
221func (bs *BusService) extractTxs(blocks *types.BPBlock, count uint32) {
222 for _, tx := range blocks.Transactions {

Callers 2

fetchBlockByCountMethod · 0.95
requestLastBlockMethod · 0.95

Calls 1

CallNodeMethod · 0.80

Tested by

no test coverage detected