Skip to content

Commit

Permalink
Add Morelo[MRL]
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Sep 13, 2024
1 parent d8d52c9 commit bc79620
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ public static class CryptonoteConstants
public const decimal StaticTransactionFeeReserve = 0.03m; // in monero
}

public static class MoreloConstants
{
public const decimal MoreloReserveRewardInitial = 5.55m; // MiningReward = BlockReward - ReserveReward
}

public static class EquilibriaConstants
{
public const int EquilibriaBlobType = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@ public async Task<Block[]> ClassifyBlocksAsync(IMiningPool pool, Block[] blocks,
block.Reward = (((blockHeader.Reward / coin.SmallestUnit)) * EquilibriaMiningReward) * coin.BlockrewardMultiplier;
break;

case "MRL":
decimal MoreloReserveReward = MoreloConstants.MoreloReserveRewardInitial;

block.Reward = (((blockHeader.Reward / coin.SmallestUnit)) - MoreloReserveReward) * coin.BlockrewardMultiplier;
break;

default:
block.Reward = (blockHeader.Reward / coin.SmallestUnit) * coin.BlockrewardMultiplier;
break;
Expand Down
26 changes: 26 additions & 0 deletions src/Miningcore/coins.json
Original file line number Diff line number Diff line change
Expand Up @@ -5413,6 +5413,32 @@
"subAddressPrefixStagenet": 36,
"explorerBlockLink": "https://www.exploremonero.com/block/$height$",
"explorerTxLink": "https://www.exploremonero.com/transaction/{0}"
},
"morelo": {
"name": "Morelo",
"symbol": "MRL",
"family": "cryptonote",
"website": "https://morelonetwork.pl/",
"github": "https://github.com/MoreloNetwork/morelo",
"market": "https://coinpaprika.com/coin/mrl-morelo",
"twitter": "https://twitter.com/MoreloNetwork",
"telegram": "https://t.me/morelomrl",
"discord": "https://discord.com/invite/JB9CeFW66g",
"hash": "randomarq",
"hashVariant": 2,
"blobType": 0,
"smallestUnit": 1000000000,
"addressPrefix": 1714657,
"addressPrefixStagenet": 31586,
"addressPrefixTestnet": 525922,
"addressPrefixIntegrated": 567521,
"addressPrefixIntegratedStagenet": 1702370,
"addressPrefixIntegratedTestnet": 17762,
"subAddressPrefix": 961249,
"subAddressPrefixTestnet": 18274,
"subAddressPrefixStagenet": 2096098,
"explorerBlockLink": "https://explorer.morelonetwork.pl/block/$hash$",
"explorerTxLink": "https://explorer.morelonetwork.pl/tx/{0}"
},
"conceal": {
"name": "Conceal",
Expand Down

0 comments on commit bc79620

Please sign in to comment.