Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add channels last updated time #1435

Merged
merged 2 commits into from
Jul 4, 2023
Merged

feat: add channels last updated time #1435

merged 2 commits into from
Jul 4, 2023

Conversation

sborrazas
Copy link
Contributor

refs #1425

@sborrazas sborrazas requested a review from jyeshe June 30, 2023 14:19
@sborrazas sborrazas self-assigned this Jun 30, 2023
@@ -229,6 +229,7 @@ defmodule AeMdw.Channels do
responder: encode_account(responder_pk),
state_hash: encode(:state, state_hash),
last_updated_height: last_updated_height,
approximate_last_updated_time: DbUtil.block_time(update_block_hash),
Copy link
Member

Choose a reason for hiding this comment

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

Maybe rename the field named to last_updated_time since it is always using the block time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right, it's always going to be a value from the past. done

@sborrazas sborrazas requested a review from jyeshe July 3, 2023 17:55
@sborrazas sborrazas merged commit d922851 into master Jul 4, 2023
@sborrazas sborrazas deleted the channels-time branch July 4, 2023 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants