mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
darkfid: Move misc RPC methods to separate module.
This commit is contained in:
@@ -19,8 +19,9 @@ all: $(JSONRPC)
|
||||
|
||||
$(DARKFID_JSONRPC):
|
||||
@echo "# darkfid JSON-RPC API" > $@
|
||||
./build_jsonrpc.py ../bin/darkfid/src/rpc/mod.rs >> $@
|
||||
for i in blockchain stratum tx xmr; do \
|
||||
@echo "## Methods" >> $@
|
||||
@echo "<!-- toc -->" >> $@
|
||||
for i in blockchain tx stratum xmr misc; do \
|
||||
echo "## $$i methods" >> $@ ;\
|
||||
./build_jsonrpc.py ../bin/darkfid/src/rpc/$$i.rs >> $@ ;\
|
||||
done
|
||||
|
||||
@@ -106,7 +106,7 @@ def main(path):
|
||||
"response": json.dumps(parsed_res, indent=2),
|
||||
"line": start_line
|
||||
})
|
||||
|
||||
|
||||
for m in methods:
|
||||
anchor = m["method"].replace(".", "").replace("/", "").lower()
|
||||
print(f"### `{m['method']}`\n")
|
||||
|
||||
Reference in New Issue
Block a user