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
This commit is contained in:
@ -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()...)
|
||||
|
Reference in New Issue
Block a user