mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
rpcserver: Support larger block sizes.
This commit is contained in:
parent
bb51d32f69
commit
ecd27f0d4d
@ -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.
|
||||
|
||||
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user