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

SPV Updates #721

Merged
merged 6 commits into from
May 16, 2022
Merged

SPV Updates #721

merged 6 commits into from
May 16, 2022

Conversation

nodech
Copy link
Contributor

@nodech nodech commented May 9, 2022

Add reorg tests for Chain Full and SPV.

@nodech nodech added tests part of the codebase patch Release version labels May 9, 2022
@coveralls
Copy link

coveralls commented May 9, 2022

Coverage Status

Coverage increased (+2.07%) to 66.66% when pulling 5513832 on nodech:spv-reorg into f28fb9e on handshake-org:master.

Copy link
Member

@pinheadmz pinheadmz left a comment

Choose a reason for hiding this comment

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

LGTM just have a few questions and nits.
If you have time, you could also incorporate bcoin-org/bcoin#755 which should fix all the stuck SPV waiting for new blocks crap and make your tests a lot cleaner.

In addition, I wonder if youd be interested in breaking up the two long test blocks into separate describe for full and SPV and then breaking up the {} blocks as its

test/chain-reorg-test.js Outdated Show resolved Hide resolved
test/chain-reorg-test.js Outdated Show resolved Hide resolved
test/chain-reorg-test.js Outdated Show resolved Hide resolved
test/chain-reorg-test.js Outdated Show resolved Hide resolved
test/chain-reorg-test.js Outdated Show resolved Hide resolved
@nodech nodech changed the title test: add chain reorg tests. SPV Updates May 13, 2022
@nodech nodech added spv part of the codebase, SPV Only blockchain part of the codebase labels May 13, 2022
Rename chain-test to chain-full-test.
Rename chain-reorg-test to chain-test.
test/node-spv-sync-test.js Show resolved Hide resolved
test/node-spv-sync-test.js Outdated Show resolved Hide resolved
test/util/common.js Show resolved Hide resolved
test/node-spv-sync-test.js Outdated Show resolved Hide resolved
test/chain-test.js Outdated Show resolved Hide resolved
@pinheadmz
Copy link
Member

Synced SPV node from this branch in < 30 minutes. No reorgs while syncing but hey, nice performance.

@nodech nodech added this to the 4.0.0 milestone May 13, 2022
@nodech nodech added breaking-minor Backwards compatible - Release version and removed patch Release version labels May 13, 2022
@nodech nodech force-pushed the spv-reorg branch 2 times, most recently from 2c0507f to 5513832 Compare May 13, 2022 18:57
Copy link
Member

@pinheadmz pinheadmz left a comment

Choose a reason for hiding this comment

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

ACK 5513832

Show Signature
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

ACK 55138329613eec257dff0356f681820f74168e94
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE5hdzzW4BBA4vG9eM5+KYS2KJyToFAmKCnkEACgkQ5+KYS2KJ
yTrEKA/8DpLKGZf5uIJjBwNhOyU8blxAhNF10zujNrbA8dtsrO5Rf6tOQWAm91nt
ryQftvzFyZPRj4i1Zq3sd/NJnS4CGBThlegretU47LdVDrOCjw5Z4o+AYIVd79es
rA2qsV2X39KjgY52zqgtvn5zsIvfkghzOp1vPx9QFHQutt2au364LEkId5LI8vsZ
laJRkNrlwm71Wk4pRnG+TaqB5V3g5VfB0TT/2OV912pkr/L7ze5xjseVcLk6fplK
J5PnWYnMyCNPJ4UhsP7UhHW2ShSzHvfWP1WPFg4e8zvKu0Pe9962/KgYfAwhH+23
w2I5KvhRoVwGwP0Y7hz7RUvcQ9iDvU77dEcjorRvv95lK9/LBLORthDHUaJgHEY2
5P75MMWm6eQi5gDInO3yXrtg7dTLbif5aI3vVc0kq3nyDdAbpa9/TzDDper784pV
AuIuIzuO1zYSY7YP2NxedKreAlVqkVlW1fzN1s/F3L7JFC8CWu91FGnGFTsMZ3q0
Ma0YBkzcriLuAy0e6UycSTm3cehlT/JMZxICnJTbiqVffhhg+bJldfx7kQ9DFyZe
pP2At9OcyoFLAEK6mJBi0a4/yBm/CTJ2yB5pnMsIsQ8+MKlo/cmatr4GxGxdhvJi
SdLQODYBpWbk+vn324z8xutUYWjNYXUIvepBnfv8xK1F8QCJptQ=
=0rME
-----END PGP SIGNATURE-----

pinheadmz's public key is on keybase

@pinheadmz pinheadmz merged commit 89077ba into handshake-org:master May 16, 2022
@nodech nodech deleted the spv-reorg branch January 6, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blockchain part of the codebase breaking-minor Backwards compatible - Release version spv part of the codebase, SPV Only tests part of the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants