Skip to content

Commit

Permalink
readded prints for checking if nft user exists
Browse files Browse the repository at this point in the history
  • Loading branch information
avendauz committed Aug 12, 2021
1 parent af42802 commit b8fa45c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/nft/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package nft

import (
"encoding/json"
"fmt"
nft "github.com/bluzelle/curium/x/nft/keeper"
nftTypes "github.com/bluzelle/curium/x/nft/types"
"github.com/bluzelle/curium/x/torrentClient"
Expand Down Expand Up @@ -158,11 +159,12 @@ func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.Val
})

err := am.keeper.CheckNftUserExists(am.keeper.KeyringReader)

fmt.Println("Checking nft user exists", err)
if err != nil {
am.keeper.Logger(ctx).Error("nft user does not exist in keyring", "nft", err)
} else {
registerPeerOnce.Do(func () {
fmt.Println("Doing broadcast register peer")
go func() {
err := am.keeper.BroadcastRegisterBtPeer(ctx)
if err != nil {
Expand Down

0 comments on commit b8fa45c

Please sign in to comment.