rpcserver: Support larger block sizes.

This commit is contained in:
David Hill 2017-04-28 15:10:26 -04:00 committed by Dave Collins
parent bb51d32f69
commit ecd27f0d4d
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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,
}
}