Skip to content

Commit

Permalink
added line-by-line print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Aven Dauz authored and Aven Dauz committed Aug 6, 2021
1 parent 1d178d5 commit e1c7d72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x/curium/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (k Keeper) NewMsgBroadcaster(keyringDir string, cdc *codec.Codec) MsgBroadc
func DoBroadcast (resp chan *MsgBroadcasterResponse, keyringDir string, cdc *codec.Codec, curiumKeeper Keeper, accKeeper *keeper.AccountKeeper, ctx sdk.Context, msgs []sdk.Msg, from string, state AccountState) {

returnError := func(err error) {
curiumKeeper.Logger(ctx).Error("DoBroadcast, returnError()", "error", err)
curiumKeeper.Logger(ctx).Error("DoBroadcast, returnError(), ~~~", "error", err)
resp <- &MsgBroadcasterResponse{
Error: err,
}
Expand Down Expand Up @@ -254,10 +254,11 @@ func DoBroadcast (resp chan *MsgBroadcasterResponse, keyringDir string, cdc *cod
).WithKeybase(kr)


fmt.Println("Before building and signing")

signedMsgs, err := txBuilder.BuildAndSign(from, clientkeys.DefaultKeyPass, msgs)


fmt.Println("After building and signing")

if err != nil {
fmt.Println("******** ERROR FROM BUILDING AND SIGNING", err)
Expand All @@ -272,8 +273,11 @@ func DoBroadcast (resp chan *MsgBroadcasterResponse, keyringDir string, cdc *cod

rpcCtx := rpctypes.Context{}

fmt.Println("Before broadcasting")

broadcastResult, err := core.BroadcastTxSync(&rpcCtx, signedMsgs)

fmt.Println("After broadcasting")


if err != nil {
Expand Down

0 comments on commit e1c7d72

Please sign in to comment.