-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hüseyin Uslu
committed
Sep 23, 2014
1 parent
658ebbe
commit 48c584c
Showing
1 changed file
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,48 @@ | ||
CoiniumServ uses [nomp](https://github.com/zone117x/node-open-mining-portal/tree/master/coins) compatible format for coin configs. | ||
# Coin definition file format | ||
|
||
Json files in this folder are used for defining coin properties so, CoiniumServ can use them. | ||
|
||
Sample file; | ||
```json | ||
{ | ||
"name": "Litecoin", | ||
"symbol": "LTC", | ||
"algorithm": "scrypt", | ||
"type": "pow", | ||
"blockExplorer": { | ||
"block": "http://block-explorer.com/block/", | ||
"tx": "http://block-explorer.com/tx", | ||
"address": "http://block-explorer.com/address/" | ||
}, | ||
"getBlockTemplate": { | ||
"modeRequired": true | ||
} | ||
"node": { | ||
"magic": "fbc0b6db", | ||
"testnetMagic": "fcc1b7dc" | ||
} | ||
} | ||
``` | ||
|
||
Fields; | ||
- __name__: name of the coin | ||
- __symbol__: symbol of the coin | ||
- __algorithm__: algorithm used by the coin | ||
- __type__: type of the coin - possible values; | ||
- pow (proof-of-work) | ||
- pos (proof-of-work + proof-of-stake hybrid) | ||
|
||
__blockExplorer__ options | ||
- block: URL that block hash will be appended. | ||
- tx: URL that x will be appended. | ||
- address: URL that address will be appended. | ||
|
||
__getBlockTemplate__ options | ||
- "modeRequired": Peercoin variants need a "mode" parameter to be set in in getblocktemplate, so we need to set this true for them. | ||
|
||
__node__ options | ||
|
||
Not in use yet, will be used once embedded daemon-node is developed which will be able to check for block notifications | ||
|
||
- __magic__: Coin's magic string. | ||
- __testnetMagic__: Magic string for Testnet. |