Added Account method needed for unit tests.

This commit is contained in:
CalDescent 2022-11-26 17:23:43 +00:00
parent 41cdf665ed
commit a75fd14e45

View File

@ -223,6 +223,11 @@ public class Account {
return this.repository.getAccountRepository().getMintedBlockCount(this.address);
}
/** Returns account's blockMintedPenalty or null if account not found in repository. */
public Integer getBlocksMintedPenalty() throws DataException {
return this.repository.getAccountRepository().getBlocksMintedPenaltyCount(this.address);
}
/** Returns whether account can build reward-shares.
* <p>