From bf1664142be20ede972c9a4ea241acabbd2d58d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kupka?= Date: Sun, 6 Aug 2017 22:34:20 +0200 Subject: [PATCH] apis/db: Add GetOpsInBlockRaw --- apis/database/README.md | 1 + apis/database/api.go | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/apis/database/README.md b/apis/database/README.md index 418b623..6754090 100644 --- a/apis/database/README.md +++ b/apis/database/README.md @@ -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 diff --git a/apis/database/api.go b/apis/database/api.go index ece1510..32e299e 100644 --- a/apis/database/api.go +++ b/apis/database/api.go @@ -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}) +}