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 new task: fevm_block_header #1207

Merged
merged 3 commits into from
May 19, 2023
Merged

Conversation

Terryhung
Copy link
Collaborator

No description provided.

Comment on lines 30 to 34
Difficulty int64 `pg:",use_zero"`
Number int64 `pg:",use_zero"`
GasLimit int64 `pg:",use_zero"`
GasUsed int64 `pg:",use_zero"`
Timestamp int64 `pg:",use_zero"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these int64? The Lotus implementation has these as uint64.


cid, err := executed.Key().Cid()
if err != nil {
log.Errorf("Error at getting cid")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
log.Errorf("Error at getting cid")
log.Errorf("Error at getting cid: [%v] err: %v", cid, err)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

tasks/fevm/blockheader/tasks.go Outdated Show resolved Hide resolved
@Terryhung Terryhung marked this pull request as ready for review May 18, 2023 12:00
@Terryhung Terryhung requested a review from kasteph May 18, 2023 12:00
Copy link
Contributor

@birdychang birdychang left a comment

Choose a reason for hiding this comment

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

Good job!

Copy link
Contributor

@kasteph kasteph left a comment

Choose a reason for hiding this comment

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

looks good, thanks!

@Terryhung Terryhung merged commit 4aa0e37 into master May 19, 2023
8 checks passed
@Terryhung Terryhung deleted the terryhung/add-new-task-for-fvm branch May 19, 2023 02:23
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.

None yet

3 participants