diff --git a/createtx_test.go b/createtx_test.go index 23f1e49..5e5b8e1 100644 --- a/createtx_test.go +++ b/createtx_test.go @@ -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