Skip to content

Commit

Permalink
chore: housekeeping (#142)
Browse files Browse the repository at this point in the history
- removes unused code and scripts
- a bit of housekeeping
  • Loading branch information
Lazar955 authored Dec 11, 2024
1 parent 5515255 commit fd5a57e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 113 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ mocks:
$(MOCKGEN_CMD) -source=btcstaking-tracker/atomicslasher/expected_babylon_client.go -package atomicslasher -destination btcstaking-tracker/atomicslasher/mock_babylon_client.go
$(MOCKGEN_CMD) -source=btcstaking-tracker/stakingeventwatcher/expected_babylon_client.go -package stakingeventwatcher -destination btcstaking-tracker/stakingeventwatcher/mock_babylon_client.go

update-changelog:
@echo ./scripts/update_changelog.sh $(sinceTag) $(upcomingTag)
./scripts/update_changelog.sh $(sinceTag) $(upcomingTag)

.PHONY: build test test-e2e build-docker rm-docker mocks update-changelog
.PHONY: build test test-e2e build-docker rm-docker mocks

proto-gen:
@$(call print, "Compiling protos.")
Expand Down
77 changes: 0 additions & 77 deletions scripts/update_changelog.sh

This file was deleted.

29 changes: 0 additions & 29 deletions types/blockevent.go

This file was deleted.

2 changes: 1 addition & 1 deletion types/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (c SupportedBtcNetwork) String() string {
}

func GetWrappedTxs(msg *wire.MsgBlock) []*btcutil.Tx {
btcTxs := []*btcutil.Tx{}
btcTxs := make([]*btcutil.Tx, 0, len(msg.Transactions))

for i := range msg.Transactions {
newTx := btcutil.NewTx(msg.Transactions[i])
Expand Down
2 changes: 1 addition & 1 deletion utils/channelutils.go → utils/channel.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package utils

// push msg to channel c, or quit if quit channel is closed
// PushOrQuit push msg to channel c, or quit if quit channel is closed
func PushOrQuit[T any](c chan<- T, msg T, quit <-chan struct{}) {
select {
case c <- msg:
Expand Down

0 comments on commit fd5a57e

Please sign in to comment.