Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradStaniec committed Oct 15, 2024
1 parent a7fdd7a commit 49640ac
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions staker/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import (
"github.com/sirupsen/logrus"
)

type responseExpectedChan struct {
errChan chan error
successChan chan *chainhash.Hash
}

type StakingEvent interface {
// Each staking event is identified by initial staking transaction hash
EventId() chainhash.Hash
Expand All @@ -24,7 +19,6 @@ var _ StakingEvent = (*delegationActiveOnBabylonEvent)(nil)
var _ StakingEvent = (*unbondingTxSignaturesConfirmedOnBabylonEvent)(nil)
var _ StakingEvent = (*unbondingTxConfirmedOnBtcEvent)(nil)
var _ StakingEvent = (*spendStakeTxConfirmedOnBtcEvent)(nil)
var _ StakingEvent = (*sendStakingTxToBTCRequestedEvent)(nil)
var _ StakingEvent = (*criticalErrorEvent)(nil)

type stakingTxBtcConfirmedEvent struct {
Expand Down Expand Up @@ -127,20 +121,6 @@ func (app *StakerApp) logStakingEventProcessed(event StakingEvent) {
}).Debug("Processed staking event")
}

type sendStakingTxToBTCRequestedEvent struct {
stakingTxHash chainhash.Hash
requiredDepthOnBtcChain uint32
responseExpected *responseExpectedChan
}

func (event *sendStakingTxToBTCRequestedEvent) EventId() chainhash.Hash {
return event.stakingTxHash
}

func (event *sendStakingTxToBTCRequestedEvent) EventDesc() string {
return "SEND_STAKING_TX_TO_BTC_REQUESTED"
}

type delegationActiveOnBabylonEvent struct {
stakingTxHash chainhash.Hash
}
Expand Down

0 comments on commit 49640ac

Please sign in to comment.