rpc: implement gettransactionheight

closes #713
This commit is contained in:
Anna Shaleva 2020-03-05 17:20:50 +03:00
parent f72c321426
commit ccd88c3af8
4 changed files with 58 additions and 1 deletions

View file

@ -147,6 +147,14 @@ var (
},
)
gettransactionheightCalled = prometheus.NewCounter(
prometheus.CounterOpts{
Help: "Number of calls to gettransactionheight rpc endpoint",
Name: "gettransactionheight_called",
Namespace: "neogo",
},
)
gettxoutCalled = prometheus.NewCounter(
prometheus.CounterOpts{
Help: "Number of calls to gettxout rpc endpoint",
@ -206,6 +214,7 @@ func init() {
getassetstateCalled,
getaccountstateCalled,
getunspentsCalled,
gettransactionheightCalled,
gettxoutCalled,
getrawtransactionCalled,
sendrawtransactionCalled,