Skip to content
Snippets Groups Projects
Commit 3fa93bb3 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

HTTP API: keychain/parameters should return the currency name

parent d9d6570c
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,7 @@ function KeychainBinding (wotServer) { ...@@ -75,6 +75,7 @@ function KeychainBinding (wotServer) {
this.parameters = function (req, res) { this.parameters = function (req, res) {
res.send(200, JSON.stringify({ res.send(200, JSON.stringify({
"currency": conf.currency,
"sigDelay": conf.sigDelay, "sigDelay": conf.sigDelay,
"sigValidity": conf.sigValidity, "sigValidity": conf.sigValidity,
"sigQty": conf.sigQty, "sigQty": conf.sigQty,
......
...@@ -60,7 +60,6 @@ Data is made accessible through an HTTP API mainly inspired from [OpenUDC_exchan ...@@ -60,7 +60,6 @@ Data is made accessible through an HTTP API mainly inspired from [OpenUDC_exchan
| | `-- [NUMBER] | | `-- [NUMBER]
| `-- current | `-- current
|-- network/ |-- network/
| |-- parameters
| |-- pubkey | |-- pubkey
| |-- peering | |-- peering
| | |-- forward | | |-- forward
...@@ -344,6 +343,7 @@ GET the keychain parameters used by this node. ...@@ -344,6 +343,7 @@ GET the keychain parameters used by this node.
The synchronization parameters. The synchronization parameters.
```json ```json
{ {
"currency": "beta_brousouf",
"sigDelay": 157680000, "sigDelay": 157680000,
"sigValidity": 31536000, "sigValidity": 31536000,
"sigQty": 5, "sigQty": 5,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment