CORDA-1008 Samples fail to run due to wrongly configured max transaction size in the network bootstrapper (#2509)

* [CORDA-1008] - Samples fail to run due to wrongly configured max transaction size in the network bootstrapper

* address PR issues
This commit is contained in:
Patrick Kuo
2018-02-12 15:33:22 +00:00
committed by GitHub
parent 3f3e0e9973
commit ddf0d34147
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ class NetworkBootstrapper {
notaries = notaryInfos, notaries = notaryInfos,
modifiedTime = Instant.now(), modifiedTime = Instant.now(),
maxMessageSize = 10485760, maxMessageSize = 10485760,
maxTransactionSize = 40000, maxTransactionSize = Int.MAX_VALUE,
epoch = 1 epoch = 1
), overwriteFile = true) ), overwriteFile = true)

View File

@ -39,7 +39,7 @@ class NetworkMapServer(private val cacheTimeout: Duration,
private val myHostNameValue: String = "test.host.name", private val myHostNameValue: String = "test.host.name",
vararg additionalServices: Any) : Closeable { vararg additionalServices: Any) : Closeable {
companion object { companion object {
private val stubNetworkParameters = NetworkParameters(1, emptyList(), 10485760, 40000, Instant.now(), 10) private val stubNetworkParameters = NetworkParameters(1, emptyList(), 10485760, Int.MAX_VALUE, Instant.now(), 10)
} }
private val server: Server private val server: Server