Skip to content

Commit e006b91

Browse files
committed
Allow staking rewards to be zero
1 parent f7f631b commit e006b91

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.2.44</Version>
3+
<Version>1.2.45</Version>
44
<TargetFramework>net9.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<Authors>Blockcore</Authors>

src/Features/Blockcore.Features.Miner/Staking/PosMinting.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -737,14 +737,14 @@ await Task.Run(() => Parallel.ForEach(workerContexts, cwc =>
737737

738738
// Get reward for newly created block.
739739
long reward = fees + this.consensusManager.ConsensusRules.GetRule<CheckPosUtxosetRule>().GetProofOfStakeReward(chainTip.Height + 1);
740-
if (reward < 0)
741-
{
742-
// TODO: This can't happen unless we remove reward for mined block.
743-
// If this can happen over time then this check could be done much sooner
744-
// to avoid a lot of computation.
745-
this.logger.LogTrace("(-)[NO_REWARD]:false");
746-
return false;
747-
}
740+
// if (reward < 0)
741+
// {
742+
// // TODO: This can't happen unless we remove reward for mined block.
743+
// // If this can happen over time then this check could be done much sooner
744+
// // to avoid a lot of computation.
745+
// this.logger.LogTrace("(-)[NO_REWARD]:false");
746+
// return false;
747+
// }
748748

749749
// Input to coinstake transaction.
750750
UtxoStakeDescription coinstakeInput = workersResult.KernelCoin;

0 commit comments

Comments
 (0)