1212import java .util .TimeZone ;
1313import java .util .UUID ;
1414
15- import com .google .common .collect .Lists ;
1615import org .apache .commons .lang3 .tuple .ImmutablePair ;
1716import org .bitcoinj .core .ECKey ;
1817import org .bitcoinj .core .Sha256Hash ;
1918import org .slf4j .Logger ;
2019import org .slf4j .LoggerFactory ;
2120
2221import com .fasterxml .jackson .core .type .TypeReference ;
22+ import com .google .common .collect .Lists ;
2323
2424import eu .bittrade .libs .steemj .apis .database .DatabaseApi ;
2525import eu .bittrade .libs .steemj .apis .database .models .state .Discussion ;
@@ -3614,11 +3614,12 @@ public void deletePostOrComment(AccountName postOrCommentAuthor, Permlink postOr
36143614 * configured in the {@link SteemJConfig#getPrivateKeyStorage()
36153615 * PrivateKeyStorage}.</li>
36163616 * <li>This method will automatically use the
3617- * {@link SteemJConfig#getDefaultAccount() DefaultAccount} as the account
3618- * to transfer from. If no default account has been provided, this method will throw an error. If you
3619- * do not want to configure the following account as a default account, please use the
3620- * {@link #transfer(AccountName, AccountName, AssetSymbolType, double, String)} method and provide the
3621- * <code>from</code> account separately.</li>
3617+ * {@link SteemJConfig#getDefaultAccount() DefaultAccount} as the account to
3618+ * transfer from. If no default account has been provided, this method will
3619+ * throw an error. If you do not want to configure the following account as
3620+ * a default account, please use the
3621+ * {@link #transfer(AccountName, AccountName, AssetSymbolType, double, String)}
3622+ * method and provide the <code>from</code> account separately.</li>
36223623 * </ul>
36233624 *
36243625 * @param to
@@ -3670,10 +3671,9 @@ public TransferOperation transfer(AccountName to, AssetSymbolType assetType, dou
36703671 * simply use:
36713672 * <code>SteemJ.transfer(new AccountName("accounta"), new AccountName("accountb"), AssetSymbolType.SBD, 1.0, "My memo");</code>
36723673 *
3673- * <b>Attention</b>
3674- * This method will write data on the blockchain. As all writing
3675- * operations, a private key is required to sign the transaction. For a
3676- * transfer operation the private active key of the
3674+ * <b>Attention</b> This method will write data on the blockchain. As all
3675+ * writing operations, a private key is required to sign the transaction.
3676+ * For a transfer operation the private active key of the
36773677 * {@link SteemJConfig#getDefaultAccount() DefaultAccount} needs to be
36783678 * configured in the {@link SteemJConfig#getPrivateKeyStorage()
36793679 * PrivateKeyStorage}.
@@ -3732,13 +3732,15 @@ public TransferOperation transfer(AccountName from, AccountName to, AssetSymbolT
37323732 }
37333733
37343734 /**
3735- * Claim all available Steem, SDB and VEST (Steam Power) rewards for the default account.
3735+ * Claim all available Steem, SDB and VEST (Steam Power) rewards for the
3736+ * default account.
37363737 *
37373738 * <b>Attention</b>
37383739 * <ul>
3739- * <li>This method will write data on the blockchain if a reward balance is available to be claimed. As with all writing
3740- * operations, a private key is required to sign the transaction. See {@link SteemJConfig#getPrivateKeyStorage()
3741- * PrivateKeyStorage}.</li>
3740+ * <li>This method will write data on the blockchain if a reward balance is
3741+ * available to be claimed. As with all writing operations, a private key is
3742+ * required to sign the transaction. See
3743+ * {@link SteemJConfig#getPrivateKeyStorage() PrivateKeyStorage}.</li>
37423744 * <li>This method will automatically use the
37433745 * {@link SteemJConfig#getDefaultAccount() DefaultAccount} as the account
37443746 * that will follow the <code>accountToFollow</code> - If no default account
@@ -3748,8 +3750,8 @@ public TransferOperation transfer(AccountName from, AccountName to, AssetSymbolT
37483750 * following account separately.</li>
37493751 * </ul>
37503752 *
3751- * @return The ClaimOperation for reward balances found. This will only have been broadcast if one of the balances
3752- * is non-zero.
3753+ * @return The ClaimOperation for reward balances found. This will only have
3754+ * been broadcast if one of the balances is non-zero.
37533755 * @throws SteemCommunicationException
37543756 * <ul>
37553757 * <li>If the server was not able to answer the request in the
@@ -3777,17 +3779,18 @@ public ClaimRewardBalanceOperation claimRewards()
37773779 }
37783780
37793781 /**
3780- * Claim all available Steem, SDB and VEST (Steam Power) rewards for the specified account.
3782+ * Claim all available Steem, SDB and VEST (Steam Power) rewards for the
3783+ * specified account.
37813784 *
3782- * <b>Attention</b>
3783- * This method will write data on the blockchain if a reward balance is available to be claimed. As with all writing
3784- * operations, a private key is required to sign the transaction. See {@link SteemJConfig#getPrivateKeyStorage()
3785- * PrivateKeyStorage}.
3785+ * <b>Attention</b> This method will write data on the blockchain if a
3786+ * reward balance is available to be claimed. As with all writing
3787+ * operations, a private key is required to sign the transaction. See
3788+ * {@link SteemJConfig#getPrivateKeyStorage() PrivateKeyStorage}.
37863789 *
37873790 * @param accountName
37883791 * The account to claim rewards for.
3789- * @return The ClaimOperation for reward balances found. This will only have been broadcast if one of the balances
3790- * is non-zero.
3792+ * @return The ClaimOperation for reward balances found. This will only have
3793+ * been broadcast if one of the balances is non-zero.
37913794 * @throws SteemCommunicationException
37923795 * <ul>
37933796 * <li>If the server was not able to answer the request in the
@@ -3814,14 +3817,14 @@ public ClaimRewardBalanceOperation claimRewards(AccountName accountName)
38143817 Asset vestingReward = extendedAccount .getRewardVestingBalance ();
38153818
38163819 // Create claim operation based on available reward balances
3817- ClaimRewardBalanceOperation claimOperation = new ClaimRewardBalanceOperation (accountName ,
3818- steemReward , sbdReward , vestingReward );
3820+ ClaimRewardBalanceOperation claimOperation = new ClaimRewardBalanceOperation (accountName , steemReward ,
3821+ sbdReward , vestingReward );
38193822
38203823 // Broadcast claim operation if there are any balances available
38213824 if (steemReward .getAmount () > 0 || sbdReward .getAmount () > 0 || vestingReward .getAmount () > 0 ) {
38223825 ArrayList <Operation > operations = new ArrayList <>();
38233826 operations .add (claimOperation );
3824- GlobalProperties globalProperties = this .getDynamicGlobalProperties ();
3827+ DynamicGlobalProperty globalProperties = this .getDynamicGlobalProperties ();
38253828 SignedTransaction signedTransaction = new SignedTransaction (globalProperties .getHeadBlockId (), operations ,
38263829 null );
38273830 signedTransaction .sign ();
0 commit comments