Fix LargeTransactionTest (#2265)

This commit is contained in:
Katarzyna Streich 2017-12-15 16:53:57 +00:00 committed by GitHub
parent 479a656484
commit 02ad2b8b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ class NetworkParametersGenerator {
minimumPlatformVersion = 1,
notaries = notaryInfos,
modifiedTime = Instant.now(),
maxMessageSize = 40000,
maxMessageSize = 10485760,
maxTransactionSize = 40000,
epoch = 1
))

View File

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

View File

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

View File

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

View File

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