Skip to content

Commit

Permalink
checkpoint #4
Browse files Browse the repository at this point in the history
  • Loading branch information
roynalnaruto committed Oct 21, 2020
1 parent 264af33 commit e3887fc
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions multichain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,27 +593,27 @@ var _ = Describe("Multichain", func() {
dogecoin.NewTxBuilder(&dogecoin.RegressionNetParams),
multichain.Dogecoin,
},
/*
{
"ZCASH_PK",
func(pkh []byte) (btcutil.Address, error) {
addr, err := zcash.NewAddressPubKeyHash(pkh, &zcash.RegressionNetParams)
return addr, err
},
func(script []byte) (btcutil.Address, error) {
addr, err := zcash.NewAddressScriptHash(script, &zcash.RegressionNetParams)
return addr, err
},
pack.String("http://0.0.0.0:18232"),
func(rpcURL pack.String, pkhAddr btcutil.Address) (multichain.UTXOClient, []multichain.UTXOutput, func(context.Context, pack.Bytes) (int64, error)) {
client := zcash.NewClient(zcash.DefaultClientOptions())
outputs, err := client.UnspentOutputs(ctx, 0, 999999999, multichain.Address(pkhAddr.EncodeAddress()))
Expect(err).NotTo(HaveOccurred())
return client, outputs, client.Confirmations
},
zcash.NewTxBuilder(&zcash.RegressionNetParams, 1000000),
multichain.Zcash,
{
"ZCASH_PK",
func(pkh []byte) (btcutil.Address, error) {
addr, err := zcash.NewAddressPubKeyHash(pkh, &zcash.RegressionNetParams)
return addr, err
},
func(script []byte) (btcutil.Address, error) {
addr, err := zcash.NewAddressScriptHash(script, &zcash.RegressionNetParams)
return addr, err
},
pack.String("http://0.0.0.0:18232"),
func(rpcURL pack.String, pkhAddr btcutil.Address) (multichain.UTXOClient, []multichain.UTXOutput, func(context.Context, pack.Bytes) (int64, error)) {
client := zcash.NewClient(zcash.DefaultClientOptions())
outputs, err := client.UnspentOutputs(ctx, 0, 999999999, multichain.Address(pkhAddr.EncodeAddress()))
Expect(err).NotTo(HaveOccurred())
return client, outputs, client.Confirmations
},
zcash.NewTxBuilder(&zcash.RegressionNetParams, 1000000),
multichain.Zcash,
},
/*
{
"DIGIBYTE_PK",
func(pkh []byte) (btcutil.Address, error) {
Expand Down

0 comments on commit e3887fc

Please sign in to comment.