mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
Create and activate a DJVM execution profile for the Node.
This commit is contained in:
parent
50baecf679
commit
cde4db7279
@ -76,6 +76,11 @@ class DeterministicVerifier(
|
||||
verifier.apply(sandboxTx)
|
||||
}
|
||||
|
||||
with (result.costs) {
|
||||
logger.info("Verify {} complete: allocations={}, invocations={}, jumps={}, throws={}",
|
||||
ltx.id, allocations, invocations, jumps, throws)
|
||||
}
|
||||
|
||||
result.exception?.run {
|
||||
val sandboxEx = SandboxException(
|
||||
Message.getMessageFromException(this),
|
||||
|
@ -38,8 +38,8 @@ class DeterministicVerifierFactoryService(
|
||||
|
||||
baseSandboxConfiguration = SandboxConfiguration.createFor(
|
||||
analysisConfiguration = baseAnalysisConfiguration,
|
||||
profile = ExecutionProfile.DEFAULT,
|
||||
enableTracing = false
|
||||
profile = NODE_PROFILE,
|
||||
enableTracing = true
|
||||
)
|
||||
}
|
||||
|
||||
@ -58,4 +58,13 @@ class DeterministicVerifierFactoryService(
|
||||
cordaSource?.close()
|
||||
}
|
||||
}
|
||||
|
||||
private companion object {
|
||||
private val NODE_PROFILE = ExecutionProfile(
|
||||
allocationCostThreshold = 1024 * 1024 * 1024,
|
||||
invocationCostThreshold = 100_000_000,
|
||||
jumpCostThreshold = 500_000_000,
|
||||
throwCostThreshold = 1_000_000
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user