Move Txfee to coins/coin.json
This commit is contained in:
parent
5fbbed7446
commit
b85536e65e
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "komodo",
|
||||
"symbol": "kmd",
|
||||
"algorithm": "equihash"
|
||||
"algorithm": "equihash",
|
||||
"txfee": 0.00005
|
||||
}
|
||||
|
|
|
@ -56,5 +56,6 @@
|
|||
"t3PSn5TbMMAEw7Eu36DYctFezRzpX1hzf3M",
|
||||
"t3R3Y5vnBLrEn8L6wFjPjBLnxSUQsKnmFpv",
|
||||
"t3Pcm737EsVkGTbhsu2NekKtJeG92mvYyoN"
|
||||
]
|
||||
],
|
||||
"txfee": 0.0004
|
||||
}
|
||||
|
|
|
@ -20,5 +20,6 @@
|
|||
"t2UjVSd3zheHPgAkuX8WQW2CiC9xHQ8EvWp", "t2TBUAhELyHUn8i6SXYsXz5Lmy7kDzA1uT5", "t2Tz3uCyhP6eizUWDc3bGH7XUC9GQsEyQNc", "t2NysJSZtLwMLWEJ6MH3BsxRh6h27mNcsSy",
|
||||
"t2KXJVVyyrjVxxSeazbY9ksGyft4qsXUNm9", "t2J9YYtH31cveiLZzjaE4AcuwVho6qjTNzp", "t2QgvW4sP9zaGpPMH1GRzy7cpydmuRfB4AZ", "t2NDTJP9MosKpyFPHJmfjc5pGCvAU58XGa4",
|
||||
"t29pHDBWq7qN4EjwSEHg8wEqYe9pkmVrtRP", "t2Ez9KM8VJLuArcxuEkNRAkhNvidKkzXcjJ", "t2D5y7J5fpXajLbGrMBQkFg2mFN8fo3n8cX", "t2UV2wr1PTaUiybpkV3FdSdGxUJeZdZztyt"
|
||||
]
|
||||
],
|
||||
"txfee": 0.0004
|
||||
}
|
||||
|
|
|
@ -3,5 +3,6 @@
|
|||
"symbol": "zcl",
|
||||
"algorithm": "equihash",
|
||||
"requireShielding": true,
|
||||
"peerMagic": "24e92764"
|
||||
"peerMagic": "24e92764",
|
||||
"txfee": 0.0004
|
||||
}
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
"name": "zdash",
|
||||
"symbol": "zdash",
|
||||
"algorithm": "equihash",
|
||||
"requireShielding": true
|
||||
"requireShielding": true,
|
||||
"txfee": 0.0004
|
||||
}
|
||||
|
|
|
@ -55,6 +55,7 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
|||
var minConfPayout = 10;
|
||||
|
||||
var requireShielding = poolOptions.coin.requireShielding === true;
|
||||
var fee = poolOptions.coin.txfee;
|
||||
|
||||
logger.special(logSystem, logComponent, logComponent + ' requireShielding: ' + requireShielding);
|
||||
|
||||
|
@ -628,12 +629,6 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
|||
return;
|
||||
}
|
||||
|
||||
// TODO, estimate transaction fees, make dynamic
|
||||
var fee = 0.00005; // komodo
|
||||
if (logComponent != "komodo") {
|
||||
fee = 0.0004; // all other coins
|
||||
}
|
||||
|
||||
round.category = generationTx.category;
|
||||
if (round.category === 'generate') {
|
||||
round.reward = balanceRound(generationTx.amount - fee) || balanceRound(generationTx.value - fee); // TODO: Adjust fees to be dynamic
|
||||
|
@ -667,11 +662,7 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
|||
}
|
||||
});
|
||||
|
||||
// TODO, estimate transaction fees, make dynamic
|
||||
var fee = 500; // komodo
|
||||
if (logComponent != "komodo") {
|
||||
fee = 4000; // all other coins
|
||||
}
|
||||
fee = fee * 1e8;
|
||||
|
||||
// calculate what the pool owes its miners
|
||||
var totalOwed = parseInt(0);
|
||||
|
|
Loading…
Reference in New Issue