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

Method formatBlockV2

sqlchain/observer/api.go:468–472  ·  view source on GitHub ↗
(count, height int32, b *types.Block)

Source from the content-addressed store, hash-verified

466}
467
468func (a *explorerAPI) formatBlockV2(count, height int32, b *types.Block) (res map[string]interface{}) {
469 res = a.formatBlock(height, b)
470 res["block"].(map[string]interface{})["count"] = count
471 return
472}
473
474func (a *explorerAPI) formatBlockV3(count, height int32, b *types.Block,
475 pagination *paginationOps) (res map[string]interface{}) {

Callers 3

GetBlockByCountMethod · 0.95
GetHighestBlockV2Method · 0.95
formatBlockV3Method · 0.95

Calls 1

formatBlockMethod · 0.95

Tested by

no test coverage detected