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

go/oasis-node: allow km to have private peers #4821

Merged
merged 2 commits into from
Jun 28, 2022
Merged

Conversation

nhynes
Copy link
Contributor

@nhynes nhynes commented Jun 25, 2022

Private peers are libp2p peers which are added manually and are not advertised. The goal is to allow client nodes that the key manager likes to access km methods, which is used by the confidential evm paratime's signed queries.

func (net *Network) generateTempSocketPath() string {
f, err := ioutil.TempFile(env.GetRootDir().String(), "internal-*.sock")
func (net *Network) generateTempSocketPath(prefix string) string {
f, err := ioutil.TempFile(env.GetRootDir().String(), fmt.Sprintf("%s-internal-*.sock", prefix))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is nice for debugging

@nhynes
Copy link
Contributor Author

nhynes commented Jun 27, 2022

Just FYI, I can't run the CI.

go/worker/keymanager/init.go Outdated Show resolved Hide resolved
go/worker/keymanager/worker.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jun 28, 2022

Codecov Report

Merging #4821 (56331ac) into master (5fd5b80) will increase coverage by 0.00%.
The diff coverage is 64.15%.

@@           Coverage Diff           @@
##           master    #4821   +/-   ##
=======================================
  Coverage   66.64%   66.64%           
=======================================
  Files         451      452    +1     
  Lines       50310    50334   +24     
=======================================
+ Hits        33529    33547   +18     
- Misses      12620    12636   +16     
+ Partials     4161     4151   -10     
Impacted Files Coverage Δ
go/consensus/tendermint/full/light.go 59.25% <0.00%> (-6.13%) ⬇️
go/worker/keymanager/init.go 60.93% <15.38%> (-11.62%) ⬇️
go/consensus/tendermint/full/common.go 66.42% <57.14%> (-0.73%) ⬇️
go/consensus/tendermint/db/closer.go 100.00% <100.00%> (ø)
go/consensus/tendermint/full/archive.go 77.39% <100.00%> (+2.60%) ⬆️
go/consensus/tendermint/full/full.go 65.04% <100.00%> (+0.07%) ⬆️
go/worker/keymanager/worker.go 63.85% <100.00%> (+0.08%) ⬆️
go/runtime/host/sandbox/sandbox.go 60.82% <0.00%> (-6.53%) ⬇️
go/common/sgx/common.go 66.01% <0.00%> (-3.89%) ⬇️
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d0affc9...56331ac. Read the comment docs.

@nhynes nhynes merged commit ed63428 into master Jun 28, 2022
@nhynes nhynes deleted the nhynes/km-private-peers branch June 28, 2022 06:56
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

Successfully merging this pull request may close these issues.

None yet

2 participants