Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • 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.
49 changes: 48 additions & 1 deletion src/CoiniumServ/config/coins/README.md
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.

0 comments on commit 48c584c

Please sign in to comment.