Skip to content

Commit

Permalink
debug debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikooo777 committed Aug 25, 2023
1 parent 91b39cc commit cd02a9b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ jobs:
- name: Run Scripts and Tests
env:
GOPRIVATE: github.com/OdyseeTeam
IS_TEST: true
SDK_URL: https://api.lbry.tv/api/v1/proxy
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
./scripts/build.sh
./scripts/lint.sh
Expand Down
1 change: 1 addition & 0 deletions cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var testCmd = &cobra.Command{
logrus.Panic(err)
}
config.InitializeConfiguration(conf)
logrus.Infof("lbry conf: %+v", conf)
lbry.Init(conf)
tests.Launch()
},
Expand Down
7 changes: 6 additions & 1 deletion server/lbry/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (

"github.com/OdyseeTeam/commentron/config"
"github.com/OdyseeTeam/commentron/helper"
"github.com/sirupsen/logrus"

"github.com/lbryio/lbry.go/v2/extras/errors"
"github.com/lbryio/lbry.go/v2/extras/jsonrpc"
Expand All @@ -40,6 +41,10 @@ func getPublicKeyForChannel(channelClaimID string) ([]byte, error) {
}
return pk, nil
}
if channel == nil {
logrus.Infof("Channel not found for claim id: %s", channelClaimID)
}
logrus.Infof("Channel: %+v", channel)
return channel.Value.GetChannel().GetPublicKey(), nil
}

Expand Down Expand Up @@ -256,7 +261,7 @@ type publicKeyInfo struct {
PublicKey asn1.BitString
}

//why the hell are we reusing code from lbry.go instead of just using lbry.go??
// why the hell are we reusing code from lbry.go instead of just using lbry.go??
func getPublicKeyFromBytes(pubKeyBytes []byte) (*btcec.PublicKey, error) {
if len(pubKeyBytes) == 33 {
return btcec.ParsePubKey(pubKeyBytes, btcec.S256())
Expand Down
2 changes: 2 additions & 0 deletions tests/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ func listComments() (*commentapi.ListResponse, error) {

func createComment(comment string) error {
c := commentapi.NewClient(address)
logrus.Infof("Creating comment: %s", comment)
logrus.Infof("Address: %s", address)
_, err := c.CommentCreate(commentapi.CreateArgs{
CommentText: comment,
ClaimID: "abe3c90453fd481383acb4e3d243e2f4efd43e02",
Expand Down

0 comments on commit cd02a9b

Please sign in to comment.