(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request)
| 55 | } |
| 56 | |
| 57 | func bpGetBlockByHeight(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) ( |
| 58 | result interface{}, err error, |
| 59 | ) { |
| 60 | params := ctx.Value("_params").(*bpGetBlockByHeightParams) |
| 61 | model := models.BlocksModel{} |
| 62 | return model.GetBlockByHeight(params.Height) |
| 63 | } |
| 64 | |
| 65 | type bpGetBlockByHashParams struct { |
| 66 | Hash string `json:"hash"` |
nothing calls this directly
no test coverage detected