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

reproduce and test server side reorgs #3520

Open
eukreign opened this issue Dec 14, 2021 · 0 comments
Open

reproduce and test server side reorgs #3520

eukreign opened this issue Dec 14, 2021 · 0 comments

Comments

@eukreign
Copy link
Member

eukreign commented Dec 14, 2021

Before client side reorg support can be implemented we need to make sure that the wallet server is properly handling them and sending correct header information to the client.

One way to reproduce forking is:

  1. start two lbrycrd instances in regtest mode on different ports
  2. have them connect
  3. generate 200 blocks (on any of them, since they will sync)
  4. disconnect them
  5. generate 2 blocks on one and 3 blocks on the other
  6. have wallet server sync with the two block lbrycrd
  7. reconnect lbrycrds (trigger reorg)
  8. check that the 2 blocks lbrycrd accepts the longer chain from the 3 blocks lbrycrd
  9. check that wallet server reorgs correctly and sends correct header and block info to client

Further reading:

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

No branches or pull requests

1 participant