From 880de230b44e20282abdef0f1f9a3294ce68e5d8 Mon Sep 17 00:00:00 2001 From: Jerzy Lasyk Date: Sat, 22 Dec 2018 06:04:03 +0100 Subject: p2p/protocols: accounting metrics rpc (#18336) * p2p/protocols: accounting metrics rpc added (#847) * p2p/protocols: accounting api documentation added (#847) * p2p/protocols: accounting api doc updated (#847) * p2p/protocols: accounting api doc update (#847) * p2p/protocols: accounting api doc update (#847) * p2p/protocols: fix file is not gofmted * fix lint error * updated comments after review * add account balance to rpc * naming changed after review --- swarm/swarm.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'swarm/swarm.go') diff --git a/swarm/swarm.go b/swarm/swarm.go index a4ff94051..89f4e87ef 100644 --- a/swarm/swarm.go +++ b/swarm/swarm.go @@ -518,6 +518,12 @@ func (self *Swarm) APIs() []rpc.API { Service: self.sfs, Public: false, }, + { + Namespace: "accounting", + Version: protocols.AccountingVersion, + Service: protocols.NewAccountingApi(self.accountingMetrics), + Public: false, + }, } apis = append(apis, self.bzz.APIs()...) -- cgit