Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerForm does not take the additionalP2PAddresses param #398

Open
davidawad opened this issue Mar 17, 2021 · 1 comment
Open

dockerForm does not take the additionalP2PAddresses param #398

davidawad opened this issue Mar 17, 2021 · 1 comment

Comments

@davidawad
Copy link

davidawad commented Mar 17, 2021

This might not be an issue exactly but dockerForm doesn't take the additionalP2PAddresses param.

Example build.gradle node configuration:

node {
    name "O=PartyA,L=London,C=GB"
    p2pPort 10002
    additionalP2PAddresses=[ "18.207.137.39:10002" ]
    rpcSettings {
        address("0.0.0.0:10012")
        adminAddress("0.0.0.0:10042")
    }
    sshdPort 2222
    rpcUsers = [[ user: "user1", "password": "test", "permissions": ["ALL"]]]
}

When building a CorDapp with this node config in the input, the following error will be thrown:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/davidawad/Desktop/samples-java/Features/customlogging-yocordapp/build.gradle' line: 159

* What went wrong:
A problem occurred evaluating root project 'customlogging-yocordapp'.
> Could not set unknown property 'additionalP2PAddresses' for object of type net.corda.plugins.Node.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
@chrisr3
Copy link
Contributor

chrisr3 commented Apr 4, 2021

The cordformation's DSL doesn't mirror the contents of the node.conf file exactly, but it does support an extraConfig section. Have you tried:

node {
    ...
    extraConfig = [
        additionalP2PAddresses=[ "18.207.137.39:10002" ]
    ]
    ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants