-
Notifications
You must be signed in to change notification settings - Fork 208
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
Expose mobile http server #2
Changes from 7 commits
554a6d2
d07dca0
7ce06aa
d7399e6
813542c
a51fc61
22e7134
011dd91
d662b1d
d2e6cfc
d8abb1d
7bd573e
080b706
3acd63a
85069d4
d82ec48
36f865f
9c0f09b
e2ded0c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,12 @@ type NodeConfig struct { | |
|
||
// Listening address of pprof server. | ||
PprofAddress string | ||
|
||
// Host of the http server | ||
// HTTPHost string | ||
|
||
// // Port the http server is listening on | ||
// HTTPPort int | ||
} | ||
|
||
// defaultNodeConfig contains the default node configuration values to use if all | ||
|
@@ -118,10 +124,13 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) { | |
|
||
// Create the empty networking stack | ||
nodeConf := &node.Config{ | ||
Name: clientIdentifier, | ||
Version: params.Version, | ||
DataDir: datadir, | ||
KeyStoreDir: filepath.Join(datadir, "keystore"), // Mobile should never use internal keystores! | ||
Name: clientIdentifier, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm guessing this line is showing ups as different because of whitespaces changes. Consider running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's also add a TODO here to revisit this to explore using IPC instead of a websocket. |
||
Version: params.Version, | ||
DataDir: datadir, | ||
KeyStoreDir: filepath.Join(datadir, "keystore"), // Mobile should never use internal keystores! | ||
HTTPHost: "localhost", | ||
HTTPPort: 8545, | ||
HTTPVirtualHosts: []string{"localhost"}, | ||
P2P: p2p.Config{ | ||
NoDiscovery: true, | ||
DiscoveryV5: true, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "@celo/geth", | ||
"version": "0.0.1", | ||
"description": "celo geth" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete before merging?