From fd025a7368f72f955fca4a816bf208f0c005dff5 Mon Sep 17 00:00:00 2001
From: Dave Collins <davec@conformal.com>
Date: Wed, 7 May 2014 10:27:57 -0500
Subject: [PATCH] Use btcd pver instead of wire pver in getinfo RPC.

The getinfo RPC should return the max protocol version btcd supports as
opposed to the maximum protocol version btcwire supports.  Currently they
are both the same value, so there is no issue.  However, they will not
always be the same.
---
 rpcserver.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rpcserver.go b/rpcserver.go
index 7addd5994..f706ce19c 100644
--- a/rpcserver.go
+++ b/rpcserver.go
@@ -1118,7 +1118,7 @@ func handleGetInfo(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) {
 
 	ret := &btcjson.InfoResult{
 		Version:         int(1000000*appMajor + 10000*appMinor + 100*appPatch),
-		ProtocolVersion: int(btcwire.ProtocolVersion),
+		ProtocolVersion: int(maxProtocolVersion),
 		Blocks:          int(height),
 		TimeOffset:      0,
 		Connections:     s.server.ConnectedCount(),