Skip to content

Commit

Permalink
Remove minheight= optimization when querying Kadena activities DB. Te…
Browse files Browse the repository at this point in the history
…mporary remedy for a "missing activities" bug."
  • Loading branch information
Takadenoshi committed Apr 12, 2024
1 parent 2667c22 commit e91b874
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

0 comments on commit e91b874

Please sign in to comment.