Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: housekeeping #142

Merged
merged 3 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading