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

Identify parent chain #6

Open
JeremyRand opened this issue Sep 9, 2022 · 1 comment
Open

Identify parent chain #6

JeremyRand opened this issue Sep 9, 2022 · 1 comment
Labels
auxpow Auxilliary Proof of Work (not Namecoin per se) enhancement New feature or request

Comments

@JeremyRand
Copy link
Member

It is feasible to identify the parent chain for a sidechain block as follows:

  1. Check bits, timestamp, height, and previous hash of parent block.
  2. Look for match by querying potential parent chains (via Bitcoin Core RPC). There may not be an exact match since the parent chain might have re-orged. However, it will pretty much always be obvious which parent chain is the single close match.

We should do this in order to display the parent chain for each block.

@JeremyRand JeremyRand added enhancement New feature or request auxpow Auxilliary Proof of Work (not Namecoin per se) labels Sep 9, 2022
@JeremyRand
Copy link
Member Author

Blocked by #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auxpow Auxilliary Proof of Work (not Namecoin per se) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant