Tests build again.

This commit is contained in:
Josh Rickmar 2014-01-16 12:04:47 -05:00
parent ea54b638f3
commit be4c549682

View file

@ -9,6 +9,12 @@ import (
"testing"
)
func init() {
cfg = &config{
KeypoolSize: 100,
}
}
type allowFreeTest struct {
name string
inputs []*tx.Utxo
@ -68,7 +74,7 @@ func TestAllowFree(t *testing.T) {
func TestFakeTxs(t *testing.T) {
// First we need a wallet.
w, err := wallet.NewWallet("banana wallet", "", []byte("banana"),
btcwire.MainNet, &wallet.BlockStamp{})
btcwire.MainNet, &wallet.BlockStamp{}, 100)
if err != nil {
t.Errorf("Can not create encrypted wallet: %s", err)
return
@ -84,7 +90,7 @@ func TestFakeTxs(t *testing.T) {
// This will pass validation because btcscript is unaware of invalid
// tx inputs, however, this example would fail in btcd.
utxo := &tx.Utxo{}
addr, err := w.NextChainedAddress(&wallet.BlockStamp{})
addr, err := w.NextChainedAddress(&wallet.BlockStamp{}, 100)
if err != nil {
t.Errorf("Cannot get next address: %s", err)
return