Skip to content

Commit

Permalink
Merge pull request #433 from Takadenoshi/fix/remove-minheight-optimiz…
Browse files Browse the repository at this point in the history
…ation

Remove minheight= optimization when querying Kadena activities DB.
  • Loading branch information
kvhnuke authored Apr 16, 2024
2 parents 2667c22 + e91b874 commit e8a2424
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ export default async (
network: network.name,
};
const allActivities = await activityState.getAllActivities(options);
const lastActivity = allActivities[allActivities.length - 1] as any;
// disabling this as there is a bug removing activities
// querying from height=zero should remedy it temporarily
// const lastActivity = allActivities[allActivities.length - 1] as any;
const activities = await getAddressActivity(
address,
enpoint,
ttl,
lastActivity?.rawInfo?.height ?? 0
0 // lastActivity?.rawInfo?.height ?? 0
);

let price = "0";
Expand Down

1 comment on commit e8a2424

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.