-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add makeMemoryWallet method #599
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good, but just a few small cleanups would make it better.
12c5805
to
8ccc772
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment change left to do.
src/types/types.ts
Outdated
@@ -893,6 +893,7 @@ export interface EdgeCurrencyEngineCallbacks { | |||
|
|||
export interface EdgeCurrencyEngineOptions { | |||
callbacks: EdgeCurrencyEngineCallbacks | |||
lightMode?: boolean // Flag indicating that the engine only needs to sync the balance and be able to spend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do it JavaDoc style:
/** True if we only need a balance and the ability to spend it. */
lightMode?: boolean
415ac8b
to
f612433
Compare
Intended to be used briefly and without any local state saved. It returns once the underlying engine is fully synced.
The memory wallet is temporary that just needs to get balances and spend. An engine recognizing lightMode can reduce unnecessary operations like transaction history
f612433
to
2768186
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneDescription
none