Skip to content

Commit

Permalink
CORDA-1008 - Samples fail to run due to wrongly configured max transa…
Browse files Browse the repository at this point in the history
…ction size in the network bootstrapper (corda#2509) (corda#2514)

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

* address PR issues

(cherry picked from commit ddf0d34)
  • Loading branch information
Patrick Kuo authored and Katelyn Baker committed Feb 13, 2018
1 parent c9ade00 commit 7d6f15b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class NetworkBootstrapper {
notaries = notaryInfos,
modifiedTime = Instant.now(),
maxMessageSize = 10485760,
maxTransactionSize = 40000,
maxTransactionSize = Int.MAX_VALUE,
epoch = 1
), overwriteFile = true)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class NetworkMapServer(private val cacheTimeout: Duration,
private val myHostNameValue: String = "test.host.name",
vararg additionalServices: Any) : Closeable {
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
Expand Down

0 comments on commit 7d6f15b

Please sign in to comment.