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

net: added http server #212

Merged

Conversation

edtubbs
Copy link
Collaborator

@edtubbs edtubbs commented Mar 21, 2024

Added HTTP server functionality to SPV node, enabling RESTful access to node and wallet data through endpoints like /getBalance and /getChaintip, along with a new command-line option -u for setting the server's IP and port.

config: updated libevent libs
spv: added http server
spvnode: added http server
wallet: moved utxos init to load
test: updated spv_tests for http server
Copy link
Member

@xanimo xanimo left a comment

Choose a reason for hiding this comment

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

This is a great first step towards adding some way to interact with the spvnode while it's running. Next steps in my opinion would be authentication, encryption/decryption, buttoning up csp, cors, hsts, logging, etc. but for example/development purposes this works fine.

Tested on x86_64-pc-linux-gnu ubuntu jammy. ACK.

@michilumin michilumin self-requested a review May 2, 2024 01:20
@michilumin michilumin merged commit dc499c5 into dogecoinfoundation:0.1.4-dev May 2, 2024
14 checks passed
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.

3 participants