Skip to content

Commit

Permalink
chore: remove leftover comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Jan 20, 2025
1 parent 5b3cf22 commit dd09b0e
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions covenant/covenant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func FuzzAddCovenantSig(f *testing.F) {
BtcPk: delPK,
FpBtcPks: fpPks,
StakingTime: stakingTimeBlocks,
StartHeight: startHeight, // not relevant here
StartHeight: startHeight,
EndHeight: startHeight + stakingTimeBlocks,
TotalSat: btcutil.Amount(stakingValue),
UnbondingTime: unbondingTime,
Expand Down Expand Up @@ -372,33 +372,6 @@ func TestIsKeyInCommittee(t *testing.T) {
require.NoError(t, err)
require.True(t, accept)

// amtSatFirst := btcutil.Amount(100)
// amtSatSecond := btcutil.Amount(150)
// amtSatThird := btcutil.Amount(200)
// lastUnsanitizedDels := []*types.Delegation{
// &types.Delegation{
// ParamsVersion: pVersionWithCovenant,
// TotalSat: amtSatFirst,
// },
// delNoCovenant,
// &types.Delegation{
// ParamsVersion: pVersionWithCovenant,
// TotalSat: amtSatSecond,
// },
// delNoCovenant,
// &types.Delegation{
// ParamsVersion: pVersionWithCovenant,
// TotalSat: amtSatThird,
// },
// }

// sanitizedDels, err := covenant.SanitizeDelegations(covKeyPair.PublicKey, paramsGet, lastUnsanitizedDels)
// require.NoError(t, err)
// require.Len(t, sanitizedDels, 3)
// require.Equal(t, amtSatFirst, sanitizedDels[0].TotalSat)
// require.Equal(t, amtSatSecond, sanitizedDels[1].TotalSat)
// require.Equal(t, amtSatThird, sanitizedDels[2].TotalSat)

errParamGet := fmt.Errorf("dumbErr")
accept, err = covenant.AcceptDelegationToSign(covKeyPair.PublicKey, NewMockParamError(errParamGet), delWithCovenant)
require.False(t, accept)
Expand Down

0 comments on commit dd09b0e

Please sign in to comment.