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 lookahead #33

Merged
merged 2 commits into from
Feb 18, 2024
Merged

feat: add lookahead #33

merged 2 commits into from
Feb 18, 2024

Conversation

emjshrx
Copy link
Contributor

@emjshrx emjshrx commented Feb 18, 2024

fixes #20 . Didnt feel any new tests are needed, lmk if otherwise

Copy link
Collaborator

@theanmolsharma theanmolsharma left a comment

Choose a reason for hiding this comment

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

PR looks solid apart from one minor change. Nice work!!

About the tests, I think this change should be accompanied by some tests. You can directly check in the db whether 10 addresses are being generated on init() and then for subsequent addresses make sure i + 10th address is being saved in db.

src/wallet/wallet.ts Outdated Show resolved Hide resolved
@emjshrx
Copy link
Contributor Author

emjshrx commented Feb 18, 2024

PR looks solid apart from one minor change. Nice work!!

About the tests, I think this change should be accompanied by some tests. You can directly check in the db whether 10 addresses are being generated on init() and then for subsequent addresses make sure i + 10th address is being saved in db.

Addressed comments

@theanmolsharma theanmolsharma merged commit 96d3516 into main Feb 18, 2024
2 checks passed
@theanmolsharma theanmolsharma deleted the lookahead branch February 18, 2024 16:25
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.

Add a lookahead for addresses
2 participants