aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-26 19:45:26 +0800
committerobscuren <geffobscura@gmail.com>2014-09-26 19:45:26 +0800
commitb8354124bebcd3988afd2f41c320f834a69b949e (patch)
treed25f8e2e382ff86f2157ade522a46baba8adea30 /peer.go
parent68119d0929adebdbd39dd40982264f86164bd6e6 (diff)
downloadgo-tangerine-b8354124bebcd3988afd2f41c320f834a69b949e.tar
go-tangerine-b8354124bebcd3988afd2f41c320f834a69b949e.tar.gz
go-tangerine-b8354124bebcd3988afd2f41c320f834a69b949e.tar.bz2
go-tangerine-b8354124bebcd3988afd2f41c320f834a69b949e.tar.lz
go-tangerine-b8354124bebcd3988afd2f41c320f834a69b949e.tar.xz
go-tangerine-b8354124bebcd3988afd2f41c320f834a69b949e.tar.zst
go-tangerine-b8354124bebcd3988afd2f41c320f834a69b949e.zip
Added protocol caps accessors
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/peer.go b/peer.go
index 6f1ad91e3..f1fff59af 100644
--- a/peer.go
+++ b/peer.go
@@ -813,6 +813,10 @@ func (self *Peer) IsCap(cap string) bool {
return false
}
+func (self *Peer) Caps() *ethutil.Value {
+ return self.protocolCaps
+}
+
func (p *Peer) String() string {
var strBoundType string
if p.inbound {