Skip to content

Commit

Permalink
clean tup
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradStaniec committed Oct 21, 2024
1 parent 7a8fe5d commit f83f1e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
31 changes: 0 additions & 31 deletions btcstaking/staking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,34 +560,3 @@ func TestCheckPreSignedTxSanity(t *testing.T) {
})
}
}

func TestXxx(t *testing.T) {
r := rand.New(rand.NewSource(0))
sd := genValidStakingScriptData(t, r)

info, err := btcstaking.BuildStakingInfo(
sd.StakerKey,
[]*btcec.PublicKey{sd.FinalityProviderKey},
[]*btcec.PublicKey{sd.CovenantKey},
1,
sd.StakingTime,
btcutil.Amount(10000),
&chaincfg.MainNetParams,
)
require.NoError(t, err)
require.NotNil(t, info)

fmt.Println("fetchin timelcok")
timelock, err := info.TimeLockPathSpendInfo()
require.NoError(t, err)
require.NotNil(t, timelock)
fmt.Println("fetchin unbonding")
unbonding, err := info.UnbondingPathSpendInfo()
require.NoError(t, err)
require.NotNil(t, unbonding)
fmt.Println("fetchin slashing")
slash, err := info.SlashingPathSpendInfo()
require.NoError(t, err)
require.NotNil(t, slash)

}
2 changes: 0 additions & 2 deletions btcstaking/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ func (t *taprootScriptHolder) scriptSpendInfoByName(
) (*SpendInfo, error) {
scriptIdx, ok := t.scriptTree.LeafProofIndex[leafHash]

fmt.Printf("scriptIdx: %v\n", scriptIdx)

if !ok {
return nil, fmt.Errorf("script not found in script tree")
}
Expand Down

0 comments on commit f83f1e2

Please sign in to comment.