Skip to content

Commit

Permalink
Add Bitcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
wombatlabs committed May 30, 2021
1 parent 070e8d7 commit ba707fb
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 0 deletions.
20 changes: 20 additions & 0 deletions coins/bitcoin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Bitcoin",
"symbol": "BTC",
"algorithm": "sha256",
"peerMagic": "f9beb4d9",
"peerMagicTestnet": "0b110907",
"mainnet": {
"bech32": "btc",
"bip32": {
"public": "0488b21e"
},
"pubKeyHash": "00",
"scriptHash": "05"
},
"blockTime": 600,
"explorer": {
"txURL": "https://blockchair.com/bitcoin/transaction/",
"blockURL": "https://blockchair.com/bitcoin/block/"
}
}
100 changes: 100 additions & 0 deletions pool_configs/examples/bitcoin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"enabled": true,
"coin": "bitcoin.json",

"address": "",

"rewardRecipients": {
"": 1.0
},

"BTCover17": true,
"_comment_BTCover17": "If BTC 0.17 or higher, payment does not work please enable it",

"paymentProcessing": {
"minConf": 10,
"enabled": true,
"paymentMode": "prop",
"_comment_paymentMode":"prop, pplnt",
"paymentInterval": 120,
"minimumPayment": 0.01,
"maxBlocksPerPayment": 3,
"daemon": {
"host": "127.0.0.1",
"port": 8332,
"user": "username",
"password": "password"
}
},

"tlsOptions": {
"enabled": false,
"serverKey":"",
"serverCert":"",
"ca":""
},

"ports": {
"3008": {
"diff": 8,
"tls": false,
"varDiff": {
"minDiff": 0.00,
"maxDiff": 16,
"targetTime": 15,
"retargetTime": 60,
"variancePercent": 30
}
},
"3032": {
"diff": 512,
"tls": false,
"varDiff": {
"minDiff": 64,
"maxDiff": 100000,
"targetTime": 15,
"retargetTime": 60,
"variancePercent": 30
}
},
"3256": {
"diff": 500000,
"tls": false,
"varDiff": {
"minDiff": 250000,
"maxDiff": 1000000,
"targetTime": 15,
"retargetTime": 60,
"variancePercent": 30
}
}
},

"daemons": [
{
"host": "127.0.0.1",
"port": 8332,
"user": "username",
"password": "password"
}
],

"p2p": {
"enabled": false,
"host": "127.0.0.1",
"port": 8333,
"disableTransactions": true
},

"mposMode": {
"enabled": false,
"host": "127.0.0.1",
"port": 3306,
"user": "",
"password": "",
"database": "",
"checkPassword": true,
"autoCreateWorker": false
}

}

0 comments on commit ba707fb

Please sign in to comment.