Skip to content

Conversation

qdm12
Copy link
Contributor

@qdm12 qdm12 commented Aug 18, 2022

Changes

The aim was to better see the use of the blockstate GetRuntime method.

There is no hurry to merge this, but it could be a nice addition imo.

  • No longer a mix of passing best block hashes and nils
  • Force the caller to get the best block hash (also to reduce getting the best block hash N times in loops)
  • Rename some hash variable names
  • Deduplicate copied-pasted code in dot/core.

Tests

Issues

Primary Reviewer

@EclesioMeloJunior

@qdm12 qdm12 changed the title chore(blockstate): change GetRuntime chore(blockstate): change GetRuntime to take common.Hash as argument Aug 18, 2022
@qdm12 qdm12 force-pushed the qdm12/blockstate/getruntime branch 3 times, most recently from d9ff75e to 3bde739 Compare August 19, 2022 13:54
@codecov
Copy link

codecov bot commented Aug 19, 2022

Codecov Report

Merging #2759 (e1a0205) into development (86b4fcc) will increase coverage by 0.01%.
The diff coverage is 81.13%.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #2759      +/-   ##
===============================================
+ Coverage        63.13%   63.14%   +0.01%     
===============================================
  Files              219      219              
  Lines            27590    27579      -11     
===============================================
- Hits             17418    17414       -4     
+ Misses            8557     8553       -4     
+ Partials          1615     1612       -3     

@qdm12 qdm12 force-pushed the qdm12/blockstate/getruntime branch from 3bde739 to 6779a19 Compare August 19, 2022 15:02
@qdm12 qdm12 marked this pull request as ready for review August 19, 2022 19:46
@qdm12 qdm12 force-pushed the qdm12/blockstate/getruntime branch from 6779a19 to f28b105 Compare August 29, 2022 16:54
Copy link
Contributor

@edwardmack edwardmack left a comment

Choose a reason for hiding this comment

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

Nice work, lgtm.

@qdm12 qdm12 force-pushed the qdm12/blockstate/getruntime branch from f28b105 to 2612f74 Compare September 20, 2022 16:16
@qdm12
Copy link
Contributor Author

qdm12 commented Sep 20, 2022

This will need to be rebased after #2781 is merged

@qdm12 qdm12 marked this pull request as draft September 20, 2022 16:17
@qdm12 qdm12 force-pushed the qdm12/blockstate/getruntime branch 3 times, most recently from cca936b to 537fc8b Compare November 3, 2022 10:13
@qdm12 qdm12 added the PR Easy label Nov 3, 2022
@qdm12 qdm12 marked this pull request as ready for review November 3, 2022 12:57
@qdm12 qdm12 force-pushed the qdm12/blockstate/getruntime branch from 537fc8b to c709f81 Compare November 9, 2022 07:37
qdm12 added 4 commits November 9, 2022 09:10
- Less implicit behavior using the best block hash if nil
- Allows to track more easily what's plugged in
- Rename to `bestBlockHash` to have apparent search results
@qdm12 qdm12 force-pushed the qdm12/blockstate/getruntime branch from c709f81 to e1a0205 Compare November 9, 2022 09:10
@qdm12 qdm12 merged commit 879d065 into development Nov 9, 2022
@qdm12 qdm12 deleted the qdm12/blockstate/getruntime branch November 9, 2022 09:41
@github-actions
Copy link

🎉 This PR is included in version 0.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants