Skip to content

Commit

Permalink
Burn half of the donation
Browse files Browse the repository at this point in the history
Signed-off-by: Pttn <28868425+Pttn@users.noreply.github.com>
  • Loading branch information
Pttn committed Mar 30, 2022
1 parent 11b621b commit a59e56b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion GBTClient.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// (c) 2018-2021 Pttn (https://riecoin.dev/en/rieMiner)
// (c) 2018-2022 Pttn (https://riecoin.dev/en/rieMiner)

#include "Client.hpp"
#include "main.hpp"
Expand Down Expand Up @@ -50,6 +50,7 @@ static std::vector<uint8_t> coinbaseGen(const std::vector<uint8_t> &scriptPubKey
uint64_t donation(donationPercent*coinbasevalue/100);
if (scriptPubKey == scriptPubKeyDon) donation = 0;
uint64_t reward(coinbasevalue - donation);
donation /= 2ULL;
// Output Count
coinbase.push_back(donation == 0 ? 1 : 2);
if (dwc.size() > 0) coinbase.back()++; // Dummy Output for SegWit
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ rieMiner proposes the following Modes depending on what you want to do. Use the
* `Username`: username used to connect to the server (same as rpcuser in riecoin.conf for solo mining). Default: empty;
* `Password`: password used to connect to the server (same as rpcpassword in riecoin.conf for solo mining). Default: empty;
* `PayoutAddress`: payout address for solo mining. You can use Bech32 "ric1" addresses (only lowercase). Default: a donation address;
* `Donate`: for solo mining, choose how many % of the block reward you wish to donate to the Riecoin Project (only integers!). Default: 2;
* `Donate`: for solo mining, choose how many % of the block reward you wish to donate to the Riecoin Project (only integers!). Half of the amount will be burnt. Default: 2;
* `Rules`: for solo mining, add consensus rules in the GetBlockTemplate RPC call, each separated by a comma. `segwit` must be present. You should not touch this unless a major Riecoin upgrade is upcoming and it is said to use this option. Default: segwit.

### Benchmark and Search Modes options
Expand Down

0 comments on commit a59e56b

Please sign in to comment.