Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Add getBlockTime rpc api (bp #7130) #7140

Merged
merged 1 commit into from
Nov 26, 2019
Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 26, 2019

This is an automated backport of pull request #7130 done by Mergify.io

* Add getBlockTime rpc api

* Add getBlockTime to docs

* Fix duration rounding for common tick/slot durations; add slot duration calculation

* Expose slots_per_year

* Use genesis values instead of clock defaults to calculate block offset

* Add get-block-time cli subcommand

* Fix test_rent: decrease magic number usage

(cherry picked from commit 58c144e)
@mergify mergify bot added the automerge Merge this Pull Request automatically once CI passes label Nov 26, 2019
@solana-grimes solana-grimes merged commit 96df4c7 into v0.21 Nov 26, 2019
@codecov
Copy link

codecov bot commented Nov 26, 2019

Codecov Report

Merging #7140 into v0.21 will increase coverage by 11.2%.
The diff coverage is 83.5%.

@@           Coverage Diff            @@
##           v0.21   #7140      +/-   ##
========================================
+ Coverage     68%   79.2%   +11.2%     
========================================
  Files        230     230              
  Lines      52310   45022    -7288     
========================================
+ Hits       35579   35689     +110     
+ Misses     16731    9333    -7398

@mergify mergify bot deleted the mergify/bp/v0.21/pr-7130 branch November 26, 2019 08:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants