Comments (4)
So t_command_parser_executor::print_sn_status
is in the daemonize namespace. To call this from core_rpc_server
I think will result in a circular reference.
Also the current print_sn simply writes to cout so will likely need to be modified to return something that can be passed in the rpc response.
where would the best place be to move the print_sn_status call so that both the daemon and the rpc can call it? or can this be done in the daemonize namespace anyway?
from oxen-core.
This issue is actually for adding a JSON RPC endpoint for print_sn_status
. In which case most of the infrastructure is already there don't need to re-write too much.
Just need to add the endpoint in core_rpc_server.h
and map the "get_service_node_status" string to a new core_rpc_server function, on_get_service_node_status
. Create the request and response structure in core_rpc_server_command_defs.h
Then you'd move the work of generating the response to the RPC request in core_rpc_server::on_get_service_node_status
, followed by updating t_rpc_command_executor
to call into core_rpc_server
to DRY the logic.
Now ideally we actually want to move to deprecating get_service_nodes*
and its children and switch to get_n_service_nodes
as it's better designed. But one step at a time.
from oxen-core.
can this be closed?
from oxen-core.
Yeah this was merged
from oxen-core.
Related Issues (20)
- Improve error message for SWO_SEC_PIN_15 (0x5515) when ledger device is in screen lock. HOT 1
- redo p2p layer code
- oxen-cli doesn't show unstaked wallet balance HOT 1
- oxen-cli wallet doesn't allow balance withdrawal for ons unlinking/reregistration HOT 4
- Command-line log-level no longer accepts categories (dev) HOT 3
- Documentation for developers HOT 2
- Improve Service Node Time Synchronicity
- Oxen Tokenomics Thoughts - The Need for Buffer and Flexibility in Staking Mechanism HOT 2
- TX submission failing sanity check HOT 1
- Installing dependencies on macOS produces a Brewfile.lock.json which is untracked
- Automated staking if OXEN balance exceed user defined amount?
- Oxen Tokenomics: A move to BME
- Addressing the Risk of Dictionary Attacks on ONS HOT 6
- Antivirus false alarm of oxend.exe and oxen-wallet-rpc.exe from multiple vendors HOT 25
- Add link to Session Oxen group in "info"
- `make release-static` and boost: No suitable build variant has been found HOT 3
- `make: *** [Makefile:160: all] Error 2` when trying to compile static release build HOT 1
- Invalid ONS buy type error, Session ID ONS purchase HOT 2
- OXEN new Cripto name ( SessCoin )
- [SOLVED] Sync doesn't work ("failed to add block to batch rewards") HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oxen-core.