+ *
Performs RPC call, with automatic reconnection to different server if needed. + *
+ * @param method String representation of the RPC call value + * @param params a list of Objects passed to the method of the Remote Server * @return "result" object from within JSON output * @throws ForeignBlockchainException if server returns error or something goes wrong */ diff --git a/src/main/java/org/qortal/transaction/CancelSellNameTransaction.java b/src/main/java/org/qortal/transaction/CancelSellNameTransaction.java index bc37a11a..1c7b34a8 100644 --- a/src/main/java/org/qortal/transaction/CancelSellNameTransaction.java +++ b/src/main/java/org/qortal/transaction/CancelSellNameTransaction.java @@ -22,28 +22,23 @@ public class CancelSellNameTransaction extends Transaction { private CancelSellNameTransactionData cancelSellNameTransactionData; // Constructors - public CancelSellNameTransaction(Repository repository, TransactionData transactionData) { super(repository, transactionData); - this.cancelSellNameTransactionData = (CancelSellNameTransactionData) this.transactionData; } // More information - @Override public ListSimplified GroupCreation for Testing - less parameters required + *
+ * @param repository The blockchain database + * @param owner Who will own the group, type PrivateKeyAccount + * @param groupName String representing the published name + * @param isOpen Boolean to allow anyone to join + * @return groupID as an integer + * @throws DataException when error occurs + * @since v4.71 + */ + public static int createGroup(Repository repository, PrivateKeyAccount owner, String groupName, boolean isOpen) throws DataException { + String description = groupName + " (description)"; + + Group.ApprovalThreshold approvalThreshold = Group.ApprovalThreshold.ONE; + int minimumBlockDelay = 10; + int maximumBlockDelay = 1440; + + return createGroup(repository, owner, groupName, isOpen, approvalThreshold, minimumBlockDelay, maximumBlockDelay); + } // End Simplified Group Creation + + /** + * + * @param repository The block chain database + * @param joinerAccount Account of the person joining the group + * @param groupId Integer of the Group mapping + * @throws DataException + * @since v4.7.1 + */ + public static void joinGroup(Repository repository, PrivateKeyAccount joinerAccount, int groupId) throws DataException { + byte[] reference = joinerAccount.getLastReference(); + long timestamp = repository.getTransactionRepository().fromSignature(reference).getTimestamp() + 1; + + BaseTransactionData baseTransactionData = new BaseTransactionData(timestamp, Group.NO_GROUP, reference, joinerAccount.getPublicKey(), GroupUtils.fee, null); + TransactionData transactionData = new JoinGroupTransactionData(baseTransactionData, groupId); + + TransactionUtils.signAndMint(repository, transactionData, joinerAccount); + } + public static void joinGroup(Repository repository, String joinerAccountName, int groupId) throws DataException { PrivateKeyAccount account = Common.getTestAccount(repository, joinerAccountName); - byte[] reference = account.getLastReference(); - long timestamp = repository.getTransactionRepository().fromSignature(reference).getTimestamp() + 1; - - BaseTransactionData baseTransactionData = new BaseTransactionData(timestamp, Group.NO_GROUP, reference, account.getPublicKey(), GroupUtils.fee, null); - TransactionData transactionData = new JoinGroupTransactionData(baseTransactionData, groupId); - - TransactionUtils.signAndMint(repository, transactionData, account); + joinGroup(repository, account, groupId); } public static void approveTransaction(Repository repository, String accountName, byte[] pendingSignature, boolean decision) throws DataException { diff --git a/src/test/java/org/qortal/test/group/AdminTests.java b/src/test/java/org/qortal/test/group/AdminTests.java index db3e3400..9a27b008 100644 --- a/src/test/java/org/qortal/test/group/AdminTests.java +++ b/src/test/java/org/qortal/test/group/AdminTests.java @@ -11,6 +11,7 @@ import org.qortal.repository.Repository; import org.qortal.repository.RepositoryManager; import org.qortal.test.common.BlockUtils; import org.qortal.test.common.Common; +import org.qortal.test.common.GroupUtils; import org.qortal.test.common.TransactionUtils; import org.qortal.test.common.transaction.TestTransaction; import org.qortal.transaction.Transaction.ValidationResult; @@ -78,7 +79,7 @@ public class AdminTests extends Common { int groupId = createGroup(repository, alice, "open-group", true); // Bob to join - joinGroup(repository, bob, groupId); + GroupUtils.joinGroup(repository, bob, groupId); // Promote Bob to admin addGroupAdmin(repository, alice, groupId, bob.getAddress()); diff --git a/src/test/java/org/qortal/test/group/OwnerTests.java b/src/test/java/org/qortal/test/group/OwnerTests.java index 7b5af651..a6f8b95a 100644 --- a/src/test/java/org/qortal/test/group/OwnerTests.java +++ b/src/test/java/org/qortal/test/group/OwnerTests.java @@ -5,15 +5,14 @@ import org.junit.Before; import org.junit.Test; import org.qortal.account.PrivateKeyAccount; import org.qortal.data.transaction.AddGroupAdminTransactionData; -import org.qortal.data.transaction.CreateGroupTransactionData; import org.qortal.data.transaction.JoinGroupTransactionData; import org.qortal.data.transaction.RemoveGroupAdminTransactionData; -import org.qortal.group.Group.ApprovalThreshold; import org.qortal.repository.DataException; import org.qortal.repository.Repository; import org.qortal.repository.RepositoryManager; import org.qortal.test.common.BlockUtils; import org.qortal.test.common.Common; +import org.qortal.test.common.GroupUtils; import org.qortal.test.common.TransactionUtils; import org.qortal.test.common.transaction.TestTransaction; import org.qortal.transaction.Transaction.ValidationResult; @@ -39,7 +38,7 @@ public class OwnerTests extends Common { PrivateKeyAccount bob = Common.getTestAccount(repository, "bob"); // Create group - int groupId = createGroup(repository, alice, "open-group", true); + int groupId = GroupUtils.createGroup(repository, alice, "open-group", true); // Attempt to promote non-member ValidationResult result = addGroupAdmin(repository, alice, groupId, bob.getAddress()); @@ -83,7 +82,7 @@ public class OwnerTests extends Common { PrivateKeyAccount bob = Common.getTestAccount(repository, "bob"); // Create group - int groupId = createGroup(repository, alice, "open-group", true); + int groupId = GroupUtils.createGroup(repository, alice, "open-group", true); // Attempt to demote non-member ValidationResult result = removeGroupAdmin(repository, alice, groupId, bob.getAddress()); @@ -133,19 +132,6 @@ public class OwnerTests extends Common { } } - private Integer createGroup(Repository repository, PrivateKeyAccount owner, String groupName, boolean isOpen) throws DataException { - String description = groupName + " (description)"; - - ApprovalThreshold approvalThreshold = ApprovalThreshold.ONE; - int minimumBlockDelay = 10; - int maximumBlockDelay = 1440; - - CreateGroupTransactionData transactionData = new CreateGroupTransactionData(TestTransaction.generateBase(owner), groupName, description, isOpen, approvalThreshold, minimumBlockDelay, maximumBlockDelay); - TransactionUtils.signAndMint(repository, transactionData, owner); - - return repository.getGroupRepository().fromGroupName(groupName).getGroupId(); - } - private ValidationResult joinGroup(Repository repository, PrivateKeyAccount joiner, int groupId) throws DataException { JoinGroupTransactionData transactionData = new JoinGroupTransactionData(TestTransaction.generateBase(joiner), groupId); ValidationResult result = TransactionUtils.signAndImport(repository, transactionData, joiner); diff --git a/src/test/resources/test-chain-v2-block-timestamps.json b/src/test/resources/test-chain-v2-block-timestamps.json index 4e49e86d..0f35a990 100644 --- a/src/test/resources/test-chain-v2-block-timestamps.json +++ b/src/test/resources/test-chain-v2-block-timestamps.json @@ -25,6 +25,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -98,7 +101,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-disable-reference.json b/src/test/resources/test-chain-v2-disable-reference.json index 9ad59d79..345a60bf 100644 --- a/src/test/resources/test-chain-v2-disable-reference.json +++ b/src/test/resources/test-chain-v2-disable-reference.json @@ -29,6 +29,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -101,7 +104,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-founder-rewards.json b/src/test/resources/test-chain-v2-founder-rewards.json index e4182d7d..7bedc999 100644 --- a/src/test/resources/test-chain-v2-founder-rewards.json +++ b/src/test/resources/test-chain-v2-founder-rewards.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-leftover-reward.json b/src/test/resources/test-chain-v2-leftover-reward.json index 04005b2b..1fa116eb 100644 --- a/src/test/resources/test-chain-v2-leftover-reward.json +++ b/src/test/resources/test-chain-v2-leftover-reward.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-minting.json b/src/test/resources/test-chain-v2-minting.json index ddb29ca5..0f5d42bf 100644 --- a/src/test/resources/test-chain-v2-minting.json +++ b/src/test/resources/test-chain-v2-minting.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-penalty-fix.json b/src/test/resources/test-chain-v2-penalty-fix.json index cac92c16..0c08f87f 100644 --- a/src/test/resources/test-chain-v2-penalty-fix.json +++ b/src/test/resources/test-chain-v2-penalty-fix.json @@ -28,6 +28,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -101,7 +104,12 @@ "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, "removeOnlyMintWithNameHeight": 9999999999999, - "penaltyFixHeight": 5 + "penaltyFixHeight": 5, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-qora-holder-extremes.json b/src/test/resources/test-chain-v2-qora-holder-extremes.json index 566d8515..7aceb906 100644 --- a/src/test/resources/test-chain-v2-qora-holder-extremes.json +++ b/src/test/resources/test-chain-v2-qora-holder-extremes.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-qora-holder-reduction.json b/src/test/resources/test-chain-v2-qora-holder-reduction.json index c7ed2270..d8a9c541 100644 --- a/src/test/resources/test-chain-v2-qora-holder-reduction.json +++ b/src/test/resources/test-chain-v2-qora-holder-reduction.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -103,7 +106,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-qora-holder.json b/src/test/resources/test-chain-v2-qora-holder.json index 1c4f0d93..ee67b6f0 100644 --- a/src/test/resources/test-chain-v2-qora-holder.json +++ b/src/test/resources/test-chain-v2-qora-holder.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-reward-levels.json b/src/test/resources/test-chain-v2-reward-levels.json index 30d952e1..e0c734fa 100644 --- a/src/test/resources/test-chain-v2-reward-levels.json +++ b/src/test/resources/test-chain-v2-reward-levels.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-reward-scaling.json b/src/test/resources/test-chain-v2-reward-scaling.json index 612f02a5..258b3ff2 100644 --- a/src/test/resources/test-chain-v2-reward-scaling.json +++ b/src/test/resources/test-chain-v2-reward-scaling.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-reward-shares.json b/src/test/resources/test-chain-v2-reward-shares.json index 2f332233..36d83f81 100644 --- a/src/test/resources/test-chain-v2-reward-shares.json +++ b/src/test/resources/test-chain-v2-reward-shares.json @@ -29,6 +29,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-self-sponsorship-algo-v1.json b/src/test/resources/test-chain-v2-self-sponsorship-algo-v1.json index 3ea8bc70..06b9a575 100644 --- a/src/test/resources/test-chain-v2-self-sponsorship-algo-v1.json +++ b/src/test/resources/test-chain-v2-self-sponsorship-algo-v1.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 2 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, @@ -118,8 +126,12 @@ { "type": "GENESIS", "recipient": "Qci5m9k4rcwe4ruKrZZQKka4FzUUMut3er", "amount": "1000000" }, { "type": "CREATE_GROUP", "creatorPublicKey": "2tiMr5LTpaWCgbRvkPK8TFd7k63DyHJMMFFsz9uBf1ZP", "groupName": "dev-group", "description": "developer group", "isOpen": false, "approvalThreshold": "PCT100", "minimumBlockDelay": 0, "maximumBlockDelay": 1440 }, + { "type": "CREATE_GROUP", "creatorPublicKey": "2tiMr5LTpaWCgbRvkPK8TFd7k63DyHJMMFFsz9uBf1ZP", "groupName": "MINTER", "description": "Minter group", "isOpen": false, "approvalThreshold": "PCT100", "minimumBlockDelay": 0, "maximumBlockDelay": 1440 }, { "type": "UPDATE_GROUP", "ownerPublicKey": "2tiMr5LTpaWCgbRvkPK8TFd7k63DyHJMMFFsz9uBf1ZP", "groupId": 1, "newOwner": "QdSnUy6sUiEnaN87dWmE92g1uQjrvPgrWG", "newDescription": "developer group", "newIsOpen": false, "newApprovalThreshold": "PCT40", "minimumBlockDelay": 10, "maximumBlockDelay": 1440 }, + { "type": "UPDATE_GROUP", "ownerPublicKey": "2tiMr5LTpaWCgbRvkPK8TFd7k63DyHJMMFFsz9uBf1ZP", "groupId": 2, "newOwner": "QdSnUy6sUiEnaN87dWmE92g1uQjrvPgrWG", "newDescription": "Minter group", "newIsOpen": true, "newApprovalThreshold": "PCT40", "minimumBlockDelay": 1, "maximumBlockDelay": 1440 }, + + { "type": "JOIN_GROUP", "joinerPublicKey": "2tiMr5LTpaWCgbRvkPK8TFd7k63DyHJMMFFsz9uBf1ZP", "groupId": 2}, { "type": "ISSUE_ASSET", "issuerPublicKey": "2tiMr5LTpaWCgbRvkPK8TFd7k63DyHJMMFFsz9uBf1ZP", "assetName": "TEST", "description": "test asset", "data": "", "quantity": "1000000", "isDivisible": true, "fee": 0 }, { "type": "ISSUE_ASSET", "issuerPublicKey": "C6wuddsBV3HzRrXUtezE7P5MoRXp5m3mEDokRDGZB6ry", "assetName": "OTHER", "description": "other test asset", "data": "", "quantity": "1000000", "isDivisible": true, "fee": 0 }, @@ -134,6 +146,7 @@ { "type": "ACCOUNT_LEVEL", "target": "Qci5m9k4rcwe4ruKrZZQKka4FzUUMut3er", "level": 5 }, { "type": "ACCOUNT_LEVEL", "target": "QaUpHNhT3Ygx6avRiKobuLdusppR5biXjL", "level": 5 }, { "type": "ACCOUNT_LEVEL", "target": "Qci5m9k4rcwe4ruKrZZQKka4FzUUMut3er", "level": 6 } + ] } } diff --git a/src/test/resources/test-chain-v2-self-sponsorship-algo-v2.json b/src/test/resources/test-chain-v2-self-sponsorship-algo-v2.json index ae424704..ea091e83 100644 --- a/src/test/resources/test-chain-v2-self-sponsorship-algo-v2.json +++ b/src/test/resources/test-chain-v2-self-sponsorship-algo-v2.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-chain-v2-self-sponsorship-algo-v3.json b/src/test/resources/test-chain-v2-self-sponsorship-algo-v3.json index 2a24473b..306bf734 100644 --- a/src/test/resources/test-chain-v2-self-sponsorship-algo-v3.json +++ b/src/test/resources/test-chain-v2-self-sponsorship-algo-v3.json @@ -30,6 +30,9 @@ "blockRewardBatchStartHeight": 999999000, "blockRewardBatchSize": 10, "blockRewardBatchAccountsBlockCount": 3, + "mintingGroupIds": [ + { "height": 0, "ids": [ 1 ]} + ], "rewardsByHeight": [ { "height": 1, "reward": 100 }, { "height": 11, "reward": 10 }, @@ -102,7 +105,12 @@ "onlyMintWithNameHeight": 9999999999990, "groupMemberCheckHeight": 9999999999999, "decreaseOnlineAccountsDifficultyTimestamp": 9999999999999, - "removeOnlyMintWithNameHeight": 9999999999999 + "removeOnlyMintWithNameHeight": 9999999999999, + "fixBatchRewardHeight": 9999999999999, + "adminsReplaceFoundersHeight": 9999999999999, + "ignoreLevelForRewardShareHeight": 9999999999999, + "nullGroupMembershipHeight": 20, + "adminQueryFixHeight": 9999999999999 }, "genesisInfo": { "version": 4, diff --git a/src/test/resources/test-settings-v2.json b/src/test/resources/test-settings-v2.json index 0a604efa..5be973c9 100644 --- a/src/test/resources/test-settings-v2.json +++ b/src/test/resources/test-settings-v2.json @@ -16,5 +16,6 @@ "listsPath": "lists-test", "storagePolicy": "FOLLOWED_OR_VIEWED", "maxStorageCapacity": 104857600, - "arrrDefaultBirthday": 1900000 + "arrrDefaultBirthday": 1900000, + "archivingPause": 5 }