From b2ef8950ea744d61a5b4a1e88927d73c0bdc85bb Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Thu, 4 Apr 2024 21:14:49 +0200 Subject: [PATCH] Delete Callisto --- README.md | 2 +- payouts/unlocker.go | 20 ++------------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index eb5c9d6..f5a3bf4 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,7 @@ otherwise you will get errors on start because of JSON comments.** "name": "main", // shares or (solo "pplns": 0,) "pplns": 9000, - // mordor, classic, ethereum, ropsten or ubiq, callisto, etica, + // mordor, classic, ethereum, ropsten or ubiq, etica, // ethereumPow, ethereumFair, expanse, octaspace, canxium, universal "network": "classic", // etchash, ethash, ubqhash diff --git a/payouts/unlocker.go b/payouts/unlocker.go index 145daa5..1266ad0 100644 --- a/payouts/unlocker.go +++ b/payouts/unlocker.go @@ -108,7 +108,7 @@ func NewBlockUnlocker(cfg *UnlockerConfig, backend *storage.RedisClient, network case "ethereum": cfg.ByzantiumFBlock = big.NewInt(4370000) cfg.ConstantinopleFBlock = big.NewInt(7280000) - case "ethereumPow", "etica", "callisto", "ubiq", "octaspace", "universal", "canxium": + case "ethereumPow", "etica", "ubiq", "octaspace", "universal", "canxium": // Nothing needs configuring here, simply proceed. case "ethereumFair": cfg.ByzantiumFBlock = big.NewInt(4370000) @@ -333,13 +333,6 @@ func (u *BlockUnlocker) handleBlock(block *rpc.GetBlockReply, candidate *storage rewardForUncles := big.NewInt(0).Mul(uncleReward, big.NewInt(int64(len(block.Uncles)))) reward.Add(reward, rewardForUncles) - } else if u.config.Network == "callisto" { - reward = getConstRewardcallisto(candidate.Height) - // Add reward for including uncles - uncleReward := new(big.Int).Div(reward, big32) - rewardForUncles := big.NewInt(0).Mul(uncleReward, big.NewInt(int64(len(block.Uncles)))) - reward.Add(reward, rewardForUncles) - } else if u.config.Network == "ethereumPow" { reward = getConstRewardEthereumpow(candidate.Height) // Add reward for including uncles @@ -420,8 +413,6 @@ func handleUncle(height int64, uncle *rpc.GetBlockReply, candidate *storage.Bloc reward = getUncleRewardExpanse(new(big.Int).SetInt64(uncleHeight), new(big.Int).SetInt64(height), getConstRewardExpanse(height, cfg)) } else if cfg.Network == "etica" { reward = getUncleRewardEthereum(new(big.Int).SetInt64(uncleHeight), new(big.Int).SetInt64(height), getConstRewardetica(height)) - } else if cfg.Network == "callisto" { - reward = getUncleRewardEthereum(new(big.Int).SetInt64(uncleHeight), new(big.Int).SetInt64(height), getConstRewardcallisto(height)) } else if cfg.Network == "ethereumPow" { reward = getUncleRewardEthereumpow(new(big.Int).SetInt64(uncleHeight), new(big.Int).SetInt64(height), getConstRewardEthereumpow(height)) } else if cfg.Network == "ethereum" || cfg.Network == "ropsten" || cfg.Network == "ethereumFair" { @@ -867,13 +858,6 @@ func calcBigNumber(reward float64) *big.Int { return bigRewardInt } -// callisto -func getConstRewardcallisto(height int64) *big.Int { - // Rewards) - // callisto - return calcBigNumber(38.88) -} - // etica func getConstRewardetica(height int64) *big.Int { // Rewards) @@ -914,7 +898,7 @@ func getConstRewardEthereum(height int64, cfg *UnlockerConfig) *big.Int { return reward } -// ethash callisto etica +// ethash etica func getUncleRewardEthereum(uHeight *big.Int, height *big.Int, reward *big.Int) *big.Int { r := new(big.Int) r.Add(uHeight, big8)