cloudfoundry-attic / blockhead

CF-Extensions Blockhead project
Apache License 2.0
3 stars 3 forks source link

binding to hardcoded port 8545 fails when launching nodes on different ports #68

Closed nimakaviani closed 5 years ago

nimakaviani commented 5 years ago

Currently we have hardcoded port 8545 when trying to deploy the contract using pusher.js.

https://github.com/cloudfoundry-incubator/blockhead/blob/master/pkg/deployer/deployer.go#L52-L64

Port configuration should ideally come from whatever port that is specified in the json description of the service.

nimakaviani commented 5 years ago

fixed in this commit: 6672a546cafe4eac7f882c77ad0f299101d77da0

Assumes the first port in the service specification to be the serving container port