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 8 bit-flags into script type args to control features #10

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

yangby-cryptape
Copy link
Contributor

@yangby-cryptape yangby-cryptape commented Mar 20, 2024

Issue

  • Bitcoin has a formula1 to calculate target difficulties.

  • But Bitcoin testnet has the following rule2:

    In addition, if no block has been found in 20 minutes, the difficulty automatically resets back to the minimum for a single block, after which it returns to its previous value.

So, if I want to use a same script to create both mainnet and testnet SPV instance on CKB, flags to control the checks are required.

Footnotes

  1. What is the formula for difficulty?

  2. Differences between Mainnet and Testnet

@yangby-cryptape yangby-cryptape requested review from Flouse and jjyr March 20, 2024 05:37
@yangby-cryptape yangby-cryptape marked this pull request as ready for review March 20, 2024 05:37
Flouse
Flouse previously approved these changes Mar 20, 2024
jjyr
jjyr previously approved these changes Mar 20, 2024
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