mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Added a h2 port configuration to Cordformation.
This commit is contained in:
parent
c7e5cf5079
commit
76eb713777
@ -202,6 +202,7 @@ is a three node example;
|
||||
p2pPort 10002
|
||||
rpcPort 10003
|
||||
webPort 10004
|
||||
h2port 11002
|
||||
cordapps []
|
||||
}
|
||||
node {
|
||||
@ -211,6 +212,7 @@ is a three node example;
|
||||
p2pPort 10005
|
||||
rpcPort 10006
|
||||
webPort 10007
|
||||
h2port 11005
|
||||
cordapps []
|
||||
}
|
||||
node {
|
||||
@ -220,6 +222,7 @@ is a three node example;
|
||||
p2pPort 10008
|
||||
rpcPort 10009
|
||||
webPort 10010
|
||||
h2port 11008
|
||||
cordapps []
|
||||
}
|
||||
}
|
||||
|
@ -75,6 +75,13 @@ class Node {
|
||||
config = config.withValue("useHTTPS", ConfigValueFactory.fromAnyRef(isHttps))
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the H2 port for this node
|
||||
*/
|
||||
void h2port(Integer h2port) {
|
||||
config = config.withValue("h2port", ConfigValueFactory.fromAnyRef(h2port))
|
||||
}
|
||||
|
||||
void useTestClock(Boolean useTestClock) {
|
||||
config = config.withValue("useTestClock", ConfigValueFactory.fromAnyRef(useTestClock))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user