Made Block.ExpandedAccount public, and added some more getters. This is needed for upcoming additional validation and unit tests.

This commit is contained in:
CalDescent 2022-11-26 11:25:44 +00:00
parent b0c9ce7482
commit 617c801cbd

View File

@ -136,7 +136,7 @@ public class Block {
} }
/** Lazy-instantiated expanded info on block's online accounts. */ /** Lazy-instantiated expanded info on block's online accounts. */
private static class ExpandedAccount { public static class ExpandedAccount {
private final RewardShareData rewardShareData; private final RewardShareData rewardShareData;
private final int sharePercent; private final int sharePercent;
private final boolean isRecipientAlsoMinter; private final boolean isRecipientAlsoMinter;
@ -169,6 +169,13 @@ public class Block {
} }
} }
public Account getMintingAccount() {
return this.mintingAccount;
}
public Account getRecipientAccount() {
return this.recipientAccount;
}
/** /**
* Returns share bin for expanded account. * Returns share bin for expanded account.
* <p> * <p>