Wallet: add 2.0.0 deprecation message

This commit is contained in:
Daniel Cousens 2014-11-25 14:57:51 +11:00
parent bd8a677fca
commit 78d26c2e26

View file

@ -10,6 +10,8 @@ var TransactionBuilder = require('./transaction_builder')
var Script = require('./script')
function Wallet(seed, network) {
console.warn('Wallet is deprecated and will be removed in 2.0.0, see #296')
seed = seed || crypto.randomBytes(32)
network = network || networks.bitcoin