Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
rpcserver: Support larger block sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi authored and davecgh committed Apr 29, 2017
1 parent bb51d32 commit ecd27f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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,
}
}

Expand Down

0 comments on commit ecd27f0

Please sign in to comment.