Skip to content

Commit

Permalink
removing spendPostTimeAt
Browse files Browse the repository at this point in the history
  • Loading branch information
patnir committed Mar 29, 2024
1 parent 7091806 commit 5a101db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion ironfish-cli/src/utils/spendPostTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export async function updateSpendPostTimeInMs(
}

sdk.internal.set('spendPostTime', newSpendPostTime)
sdk.internal.set('spendPostTimeAt', Date.now())
sdk.internal.set('spendPostTimeMeasurements', newCount)
await sdk.internal.save()
}
Expand Down
2 changes: 0 additions & 2 deletions ironfish/src/fileStores/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export type InternalOptions = {
networkId: number
spendPostTime: number // in milliseconds
spendPostTimeMeasurements: number // used to calculate the average spendPostTime
spendPostTimeAt: number // when the spend post time measurement was done
}

export const InternalOptionsDefaults: InternalOptions = {
Expand All @@ -24,7 +23,6 @@ export const InternalOptionsDefaults: InternalOptions = {
networkId: DEFAULT_NETWORK_ID,
spendPostTime: 0,
spendPostTimeMeasurements: 0,
spendPostTimeAt: 0,
}

export class InternalStore extends KeyStore<InternalOptions> {
Expand Down

0 comments on commit 5a101db

Please sign in to comment.