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

core: package managing Core Node #51

Merged
merged 20 commits into from
Sep 13, 2021
Merged

core: package managing Core Node #51

merged 20 commits into from
Sep 13, 2021

Conversation

Wondertan
Copy link
Member

The PR introduces a core package that mainly provides different Clients to work with Core Node. It introduces embeddable Core Node and keeps existing RPC clients. It also makes embedding Core a default behavior for Full Node with configurability to connect to remote Core if requested.

Closes #50

node/node.go Outdated Show resolved Hide resolved
node/core/core.go Outdated Show resolved Hide resolved
@Wondertan
Copy link
Member Author

Wondertan commented Sep 8, 2021

Note that the linter fails after some weird infrastructure reason. #53

core/client.go Outdated Show resolved Hide resolved
core/client.go Outdated Show resolved Hide resolved
core/mock_test.go Outdated Show resolved Hide resolved
core/mock_test.go Outdated Show resolved Hide resolved
node/core/core.go Outdated Show resolved Hide resolved
node/core/core.go Outdated Show resolved Hide resolved
node/core/core.go Outdated Show resolved Hide resolved
@renaynay
Copy link
Member

renaynay commented Sep 9, 2021

Okay so decision here (as per #52 )is that we will offer both remote and embedded core proc optionality.

core/client.go Outdated Show resolved Hide resolved
core/client.go Outdated Show resolved Hide resolved
core/client_test.go Outdated Show resolved Hide resolved
node/core/core.go Outdated Show resolved Hide resolved
node/node.go Outdated Show resolved Hide resolved
Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

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

Rene's suggestion makes sense. Otherwise, PR looks good to me.

Wondertan and others added 7 commits September 9, 2021 17:04
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
core/client_test.go Outdated Show resolved Hide resolved
core/client_test.go Show resolved Hide resolved
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

Still waiting on #55 and some comments to be addressed, but otherwise good with this right now.

node/core/core.go Outdated Show resolved Hide resolved
node/core/core.go Outdated Show resolved Hide resolved
node/core/core.go Show resolved Hide resolved
node/node.go Outdated Show resolved Hide resolved
node/node.go Outdated Show resolved Hide resolved
Wondertan and others added 5 commits September 13, 2021 16:50
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
* embed node add tests

* clean up tests + rename

* fix doc
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
node/core/core.go Outdated Show resolved Hide resolved
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

ship it 🚀

@Wondertan
Copy link
Member Author

:shipit:

Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

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

@Wondertan Wondertan merged commit 804f11b into main Sep 13, 2021
@Wondertan Wondertan deleted the hlib/embed-node branch September 13, 2021 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node: embed Core node process into Full node
3 participants