mirror of
https://github.com/corda/corda.git
synced 2025-02-21 09:51:57 +00:00
Fix LargeTransactionTest (#2265)
This commit is contained in:
parent
479a656484
commit
02ad2b8b60
@ -41,7 +41,7 @@ class NetworkParametersGenerator {
|
||||
minimumPlatformVersion = 1,
|
||||
notaries = notaryInfos,
|
||||
modifiedTime = Instant.now(),
|
||||
maxMessageSize = 40000,
|
||||
maxMessageSize = 10485760,
|
||||
maxTransactionSize = 40000,
|
||||
epoch = 1
|
||||
))
|
||||
|
@ -38,7 +38,7 @@ class NetworkMapServer(cacheTimeout: Duration,
|
||||
root_ca: CertificateAndKeyPair = ROOT_CA, // Default to ROOT_CA for testing.
|
||||
vararg additionalServices: Any) : Closeable {
|
||||
companion object {
|
||||
val stubNetworkParameter = NetworkParameters(1, emptyList(), 40000, 40000, Instant.now(), 10)
|
||||
val stubNetworkParameter = NetworkParameters(1, emptyList(), 10485760, 40000, Instant.now(), 10)
|
||||
private val serializedParameters = stubNetworkParameter.serialize()
|
||||
|
||||
private fun networkMapKeyAndCert(rootCAKeyAndCert: CertificateAndKeyPair): CertificateAndKeyPair {
|
||||
|
@ -8,7 +8,7 @@ fun testNetworkParameters(
|
||||
notaries: List<NotaryInfo>,
|
||||
minimumPlatformVersion: Int = 1,
|
||||
modifiedTime: Instant = Instant.now(),
|
||||
maxMessageSize: Int = 1048576,
|
||||
maxMessageSize: Int = 10485760,
|
||||
maxTransactionSize: Int = 40000,
|
||||
epoch: Int = 1
|
||||
): NetworkParameters {
|
||||
|
@ -53,4 +53,4 @@ fun dummyCommand(vararg signers: PublicKey = arrayOf(generateKeyPair().public))
|
||||
object DummyCommandData : TypeOnlyCommandData()
|
||||
|
||||
/** Maximum artemis message size. 10 MiB maximum allowed file size for attachments, including message headers. */
|
||||
const val MAX_MESSAGE_SIZE: Int = 1048576
|
||||
const val MAX_MESSAGE_SIZE: Int = 10485760
|
||||
|
@ -143,7 +143,7 @@ class NodeController(check: atRuntime = ::checkExists) : Controller() {
|
||||
minimumPlatformVersion = 1,
|
||||
notaries = listOf(NotaryInfo(identity, config.nodeConfig.notary!!.validating)),
|
||||
modifiedTime = Instant.now(),
|
||||
maxMessageSize = 40000,
|
||||
maxMessageSize = 10485760,
|
||||
maxTransactionSize = 40000,
|
||||
epoch = 1
|
||||
))
|
||||
|
Loading…
x
Reference in New Issue
Block a user