From ecd27f0d4d0b6a9b6b64ee4c38eaab2c4b81e557 Mon Sep 17 00:00:00 2001 From: David Hill Date: Fri, 28 Apr 2017 15:10:26 -0400 Subject: [PATCH] rpcserver: Support larger block sizes. --- rpcserver.go | 3 --- server.go | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index 51e1ea4afc..24b056439d 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -104,9 +104,6 @@ const ( // transaction output's pkscript type is a ticket commitment. sstxCommitmentString = "sstxcommitment" - // maxProtocolVersion is the max protocol version the server supports. - maxProtocolVersion = 2 - // maxSigOpsPerTx is the maximum number of signature operations // in a single transaction we will relay or mine. It is a fraction // of the max signature operations for a block. diff --git a/server.go b/server.go index 108def6768..49d6e3c95a 100644 --- a/server.go +++ b/server.go @@ -53,6 +53,9 @@ const ( // retries when connecting to persistent peers. It is adjusted by the // number of retries such that there is a retry backoff. connectionRetryInterval = time.Second * 5 + + // maxProtocolVersion is the max protocol version the server supports. + maxProtocolVersion = wire.MaxBlockSizeVersion ) var ( @@ -1579,7 +1582,7 @@ func newPeerConfig(sp *serverPeer) *peer.Config { ChainParams: sp.server.chainParams, Services: sp.server.services, DisableRelayTx: cfg.BlocksOnly, - ProtocolVersion: wire.MaxBlockSizeVersion, + ProtocolVersion: maxProtocolVersion, } }