Skip to content

Commit

Permalink
Revert "Add feature flag for the admin_key in the get network nodes r…
Browse files Browse the repository at this point in the history
…esponse" (#10131)

Revert "Add feature flag for the admin_key in the get network nodes response …"

This reverts commit e420a25.

Signed-off-by: Steven Sheehy <[email protected]>
  • Loading branch information
steven-sheehy authored Jan 14, 2025
1 parent ea6e65d commit dbd5b4a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 217 deletions.
2 changes: 0 additions & 2 deletions hedera-mirror-rest/__tests__/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ hedera:
enabled: false
redis:
enabled: false
response:
includeAdminKey: true

This file was deleted.

1 change: 0 additions & 1 deletion hedera-mirror-rest/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ hedera:
{ "cache-control": "public, max-age=600" }
/api/v1/transactions/:transactionId/stateproof:
{ "cache-control": "public, max-age=600" }
includeAdminKey: false
includeHostInLink: false
limit:
default: 25
Expand Down
5 changes: 1 addition & 4 deletions hedera-mirror-rest/viewmodel/networkNodeViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import AddressBookServiceEndpointViewModel from './addressBookServiceEndpointViewModel';
import EntityId from '../entityId';
import * as utils from '../utils';
import config from '../config';

/**
* Network node view model
Expand All @@ -30,9 +29,7 @@ class NetworkNodeViewModel {
*/
constructor(networkNode) {
const {addressBookEntry, nodeStake, node} = networkNode;
if (config.response.includeAdminKey) {
this.admin_key = utils.encodeKey(node.adminKey);
}
this.admin_key = utils.encodeKey(node.adminKey);
this.description = addressBookEntry.description;
this.file_id = EntityId.parse(networkNode.addressBook.fileId).toString();
this.max_stake = utils.asNullIfDefault(nodeStake.maxStake, -1);
Expand Down

0 comments on commit dbd5b4a

Please sign in to comment.