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 importname doesn't import on first rescan #705

Open
rithvikvibhu opened this issue Mar 25, 2022 · 1 comment
Open

SPV importname doesn't import on first rescan #705

rithvikvibhu opened this issue Mar 25, 2022 · 1 comment

Comments

@rithvikvibhu
Copy link
Member

An spv node can't import a name on first rescan, could be a timing issue with filter being set late.

tg chat: https://t.me/hns_tech/61353

hsd test with the bug:
https://gist.github.com/rithvikvibhu/ec036c6a2609e79c96bf01b89cdb8f70

after placing file in hsd/test/:

npm run test-file test/spv-importname-test.js
@rithvikvibhu
Copy link
Member Author

Interesting thing to note is that the 2nd rescan takes way longer (>30s) and I think it's even disconnecting (socket hangup) and when the nodes connect again, then the new filter is used and namestate has data.

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