Skip to content

Commit

Permalink
temporarily removed peer register in end blocker
Browse files Browse the repository at this point in the history
  • Loading branch information
avendauz committed Aug 12, 2021
1 parent 46b1eb4 commit cd2d4b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion x/curium/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ func getAccountAddress(keyring cryptoKeys.Keybase, from string) (sdk.AccAddress,
}

func (reader KeyringReader) GetAddress(from string) (sdk.AccAddress, error) {
fmt.Println("getting address of ", from)
keyring, err := getKeyring(reader.keyringDir)

if err != nil {
Expand Down
20 changes: 10 additions & 10 deletions x/nft/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.Val
am.keeper.Logger(ctx).Error("nft user does not exist in keyring", "nft", err)
}

if ctx.BlockHeight() > 10 {
if !peerRegistered {
go func() {
err := am.keeper.BroadcastRegisterBtPeer(ctx)
if err == nil {
peerRegistered = true
}
}()
}
}
//if ctx.BlockHeight() > 10 {
// if !peerRegistered {
// go func() {
// err := am.keeper.BroadcastRegisterBtPeer(ctx)
// if err == nil {
// peerRegistered = true
// }
// }()
// }
//}
return []abci.ValidatorUpdate{}
}

0 comments on commit cd2d4b0

Please sign in to comment.