Skip to content

Commit

Permalink
fix: Cherry-pick: Enable tokens.balancesInQueries.enabled (#13718)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Heinrichs <[email protected]>
  • Loading branch information
netopyr authored Jun 6, 2024
1 parent 4fa87b3 commit d108b6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions hedera-node/configuration/mainnet/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
# hedera-config), this requirement will no longer be valid.
# It's used by modular code for property overrides, taking hedera-config/ as the base,
# with overrides from this file (configuration/mainnet/application.properties).
ledger.id=0x00
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public record TokensConfig(
@ConfigProperty(value = "autoCreations.isEnabled", defaultValue = "true") @NetworkProperty
boolean autoCreationsIsEnabled,
@ConfigProperty(value = "maxMetadataBytes", defaultValue = "100") @NetworkProperty int tokensMaxMetadataBytes,
@ConfigProperty(value = "balancesInQueries.enabled", defaultValue = "false") @NetworkProperty
@ConfigProperty(value = "balancesInQueries.enabled", defaultValue = "true") @NetworkProperty
boolean balancesInQueriesEnabled,
@ConfigProperty(value = "nfts.maxBatchSizeUpdate", defaultValue = "10") @NetworkProperty
int nftsMaxBatchSizeUpdate) {}
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,8 @@ private void setupStakingRewardsStore() {
private void setupConfig(boolean balancesInQueriesEnabled) {
final var configBuilder = HederaTestConfigBuilder.create()
.withValue("tokens.maxRelsPerInfoQuery", 2)
.withValue("ledger.id", "0x03");
if (balancesInQueriesEnabled) {
configBuilder.withValue("tokens.balancesInQueries.enabled", true);
}
.withValue("ledger.id", "0x03")
.withValue("tokens.balancesInQueries.enabled", balancesInQueriesEnabled);
given(context.configuration()).willReturn(configBuilder.getOrCreateConfig());
}

Expand Down

0 comments on commit d108b6d

Please sign in to comment.