Skip to content

Commit

Permalink
added V2 debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Sep 9, 2024
1 parent b48e66b commit fbcb65f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func InitConfig() {

if V2BotUrl != "" && V2BotToken != "" {
// contact_key := GetV2ContactKey()
fmt.Println("DEBUG == IT IS V2")
IsV2Payment = true
}

Expand Down
2 changes: 2 additions & 0 deletions handlers/bounty.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ func (h *bountyHandler) MakeBountyPayment(w http.ResponseWriter, r *http.Request
if config.IsV2Payment {
url := fmt.Sprintf("%s/pay", config.V2BotUrl)

fmt.Println("IS V@ PAYMENT ====")

// Build v2 keysend payment data
bodyData := utils.BuildV2KeysendBodyData(amount, assignee.OwnerPubKey, assignee.OwnerRouteHint)
jsonBody := []byte(bodyData)
Expand Down

0 comments on commit fbcb65f

Please sign in to comment.