Skip to content

Commit

Permalink
apis/db: Add GetOpsInBlockRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
tchap committed Aug 6, 2017
1 parent c534224 commit bf16641
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ It is a bit confusing to see `set_` prefix. Needs research.
| get_best_categories | DONE | |
| get_active_categories | DONE | |
| get_recent_categories | DONE | |
| get_ops_in_block | DONE | |

### Globals

Expand Down
9 changes: 9 additions & 0 deletions apis/database/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,12 @@ func (api *API) GetRepliesByLastUpdateRaw(
(get_active_witnesses)
(get_miner_queue)
*/

//
// Some randomly added functions.
//

func (api *API) GetOpsInBlockRaw(blockNum uint32, onlyVirtual bool) (*json.RawMessage, error) {
return call.Raw(
api.caller, "get_ops_in_block", []interface{}{blockNum, onlyVirtual})
}

0 comments on commit bf16641

Please sign in to comment.