Skip to content

Commit 2337a82

Browse files
committed
fix log
1 parent 2b46414 commit 2337a82

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

solana/observer.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -822,14 +822,15 @@ func (node *Node) handleSignedCall(ctx context.Context, call *store.SystemCall)
822822
}
823823
tx.Signatures[index] = solana.SignatureFromBytes(sig)
824824
}
825+
rb, err := tx.MarshalBinary()
826+
if err != nil {
827+
panic(err)
828+
}
825829

826830
rpcTx, err := node.SendTransactionUtilConfirm(ctx, tx, call)
831+
logger.Printf("node.SendTransactionUtilConfirm(%s, %x) => %v %v", call.RequestId, rb, rpcTx, err)
827832
if err != nil || rpcTx == nil {
828-
rb, er := tx.MarshalBinary()
829-
if er != nil {
830-
panic(err)
831-
}
832-
return nil, nil, fmt.Errorf("node.SendTransactionUtilConfirm(%s %x) => %v %v", call.RequestId, rb, rpcTx, err)
833+
return nil, nil, fmt.Errorf("node.SendTransactionUtilConfirm(%s) => %v %v", call.RequestId, rpcTx, err)
833834
}
834835
txx, err := rpcTx.Transaction.GetTransaction()
835836
if err != nil {

0 commit comments

Comments
 (0)