bcoin-org / bcoin

Javascript bitcoin library for node.js and browsers
https://bcoin.io
Other
3.01k stars 811 forks source link

spv wallet plugin removed in 1.0.0-beta15 ? #332

Closed mnaamani closed 7 years ago

mnaamani commented 7 years ago

In version 1.0.0-beta.12 I was doing:

var node = new bcoin.spvnode( options.. )
node.use(bcoin.walletplugin)

In version 1.0.0-beta.15 bcoin.walletplugin is undefined. What is the equivalent? Is this step even needed?

mnaamani commented 7 years ago

Found it here: https://github.com/bcoin-org/bcoin/blob/ca4e938a7509bbec7f7352cf2f22d78be408ab86/browser/index.js#L242

bucko13 commented 7 years ago

Glad you found it! This change is part of a larger effort to separate out the different modules a bit more into this plugin type system. the use is how you attach a plugin to a node. More info on this change in PR #156