-
Notifications
You must be signed in to change notification settings - Fork 812
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
blockstore: skip location for memory store #846
blockstore: skip location for memory store #846
Conversation
This comment has been minimized.
This comment has been minimized.
Encountered the same thing writing #832. Chain doesn't seem to use |
Yeah, location isn't necessary in the memory case of I still think it would be better to have the examples show usage of persisting data, since that is a common case. This includes use of |
Should likely remove the
|
If you grep for
That isn't a class, there is |
One thing I like about the examples is that they can just be run in place and show the user some quick output without writing temp junk to disk. Should we add an example demonstrating bcoin's usage of filesystem (including As discussed in #832 maybe we should just get rid of the |
blockstore: skip location for memory store
@pinheadmz Like this PR (and yours) bought to notice - sometimes minor config changes creep without us noticing (especially around larger PRs like blockstore). So the examples are a rather nice way of testing bcoin clients and making sure none of the moving parts break. If we end up retaining them maybe we could have CI run them and check their exit code, just to see that they're working as intended (such a CI task would have caught this issue much earlier). |
While here, fix docs examples which were failing due to improperly configured
blockstore
.Also a minor nit:
new bcoin.Chain()
instantiates a newChain
without ablockstore
, sinceoptions
isnull
. This is because we only validateoptions
if they are given, but if given we require ablockstore
(except in spv). We could add another check ifoptions
isnull
. Thoughts?