aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/swarm.go
diff options
context:
space:
mode:
authorJerzy Lasyk <jerzylasyk@gmail.com>2018-12-22 13:04:03 +0800
committerViktor TrĂ³n <viktor.tron@gmail.com>2018-12-22 13:04:03 +0800
commit880de230b44e20282abdef0f1f9a3294ce68e5d8 (patch)
tree9cfb8fb166b5117cddf54f6cdd740687e778dd64 /swarm/swarm.go
parent81c3dc728f946db26a31a6974383b94b11dba977 (diff)
downloadgo-tangerine-880de230b44e20282abdef0f1f9a3294ce68e5d8.tar
go-tangerine-880de230b44e20282abdef0f1f9a3294ce68e5d8.tar.gz
go-tangerine-880de230b44e20282abdef0f1f9a3294ce68e5d8.tar.bz2
go-tangerine-880de230b44e20282abdef0f1f9a3294ce68e5d8.tar.lz
go-tangerine-880de230b44e20282abdef0f1f9a3294ce68e5d8.tar.xz
go-tangerine-880de230b44e20282abdef0f1f9a3294ce68e5d8.tar.zst
go-tangerine-880de230b44e20282abdef0f1f9a3294ce68e5d8.zip
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
Diffstat (limited to 'swarm/swarm.go')
-rw-r--r--swarm/swarm.go6
1 files changed, 6 insertions, 0 deletions
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()...)