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

Update BlockHashCount in Transaction Mortality section #4309

Merged
merged 2 commits into from
Jan 16, 2023

Conversation

Imod7
Copy link
Contributor

@Imod7 Imod7 commented Jan 16, 2023

Description

In the Transaction Mortality section of the wiki it is mentioned that BlockHashCount is set to 2400 blocks.

However at line 81 of the Polkadot repo it looks like it was increased to 4096. The change happened in this PR from 2400 to 4096.

Also changed the hours from four to seven by doing the following calculations (based on this Polkadot Parameters) :

  • 4096 * 6 (seconds) = 24.576
  • 24.576 / 60 / 60 = 6.82 so approx 7h

Copy link
Member

@DrW3RK DrW3RK left a comment

Choose a reason for hiding this comment

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

Thank you!

- Replaced the updated hard coded value with an rpc call
@Imod7
Copy link
Contributor Author

Imod7 commented Jan 16, 2023

Hello @DrW3RK My apologies but I pushed a second commit after you approved that uses the RPC call. Is that ok ? Otherwise I can revert back to the hard coded value.

@DrW3RK
Copy link
Member

DrW3RK commented Jan 16, 2023

All good. I was planning on doing it before merging! Thanks for fetching the value from the chain!

@DrW3RK DrW3RK merged commit 7923c0f into w3f:master Jan 16, 2023
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