Skip to content

Commit

Permalink
fix: pass node http port in obj dynamic ports (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgresham authored May 24, 2024
1 parent 70e3bc3 commit 4969823
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
18 changes: 12 additions & 6 deletions src/renderer/Presentational/NodeScreen/NodeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,30 @@ const NodeScreen = () => {
const sIsAvailableForPolling = useAppSelector(selectIsAvailableForPolling);
const pollingInterval = sIsAvailableForPolling ? 15000 : 0;
const qExecutionIsSyncing = useGetExecutionIsSyncingQuery(
selectedNode?.spec.rpcTranslation,
selectedNode?.config?.configValuesMap?.httpPort,
{
rpcTranslation: selectedNode?.spec.rpcTranslation,
httpPort: selectedNode?.config?.configValuesMap?.httpPort,
},
{
pollingInterval,
},
);
// const isSelectedNode = selectedNode !== undefined;
// const peersPolling = isSelectedNode ? pollingInterval : 0;
const qExecutionPeers = useGetExecutionPeersQuery(
selectedNode?.spec.rpcTranslation,
selectedNode?.config?.configValuesMap?.httpPort,
{
rpcTranslation: selectedNode?.spec.rpcTranslation,
httpPort: selectedNode?.config?.configValuesMap?.httpPort,
},
{
pollingInterval,
},
);
const qLatestBlock = useGetExecutionLatestBlockQuery(
selectedNode?.spec.rpcTranslation,
selectedNode?.config?.configValuesMap?.httpPort,
{
rpcTranslation: selectedNode?.spec.rpcTranslation,
httpPort: selectedNode?.config?.configValuesMap?.httpPort,
},
{
pollingInterval,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ export const SidebarNodeItemWrapper = ({

const pollingInterval = 0;
const qExecutionIsSyncing = useGetExecutionIsSyncingQuery(
node.spec.rpcTranslation,
{
rpcTranslation: node.spec.rpcTranslation,
httpPort: node?.config?.configValuesMap?.httpPort,
},
{
pollingInterval,
},
Expand Down

0 comments on commit 4969823

Please sign in to comment.