Skip to content

Commit c404ebe

Browse files
ErikDeSmedtcdecker
authored andcommitted
Doc: Formatting
Fixed formatting of json. Combination of tabs and spaces made the json looks bad on my device
1 parent acce3b1 commit c404ebe

File tree

1 file changed

+21
-14
lines changed
  • doc/developers-guide/plugin-development

1 file changed

+21
-14
lines changed

doc/developers-guide/plugin-development/hooks.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -608,23 +608,30 @@ The payload for a call follows this format:
608608

609609
```json
610610
{
611-
"onion_message": {
612-
"pathsecret": "0000000000000000000000000000000000000000000000000000000000000000",
613-
"reply_first_node": "02df5ffe895c778e10f7742a6c5b8a0cefbe9465df58b92fadeb883752c8107c8f",
614-
"reply_blinding": "02df5ffe895c778e10f7742a6c5b8a0cefbe9465df58b92fadeb883752c8107c8f",
615-
"reply_path": [ {"id": "02df5ffe895c778e10f7742a6c5b8a0cefbe9465df58b92fadeb883752c8107c8f",
616-
"encrypted_recipient_data": "0a020d0d",
617-
"blinding": "02df5ffe895c778e10f7742a6c5b8a0cefbe9465df58b92fadeb883752c8107c8f"} ],
618-
"invoice_request": "0a020d0d",
619-
"invoice": "0a020d0d",
620-
"invoice_error": "0a020d0d",
621-
"unknown_fields": [ {"number": 12345, "value": "0a020d0d"} ]
622-
}
611+
"onion_message": {
612+
"pathsecret": "0000000000000000000000000000000000000000000000000000000000000000",
613+
"reply_first_node": "02df5ffe895c778e10f7742a6c5b8a0cefbe9465df58b92fadeb883752c8107c8f",
614+
"reply_blinding": "02df5ffe895c778e10f7742a6c5b8a0cefbe9465df58b92fadeb883752c8107c8f",
615+
"reply_path": [
616+
{
617+
"id": "02df5ffe895c778e10f7742a6c5b8a0cefbe9465df58b92fadeb883752c8107c8f",
618+
"encrypted_recipient_data": "0a020d0d",
619+
"blinding": "02df5ffe895c778e10f7742a6c5b8a0cefbe9465df58b92fadeb883752c8107c8f"
620+
}
621+
],
622+
"invoice_request": "0a020d0d",
623+
"invoice": "0a020d0d",
624+
"invoice_error": "0a020d0d",
625+
"unknown_fields": [
626+
{
627+
"number": 12345,
628+
"value": "0a020d0d"
629+
}
630+
]
631+
}
623632
}
624633
```
625634

626-
627-
628635
All fields shown here are optional.
629636

630637
We suggest just returning `{'result': 'continue'}`; any other result will cause the message not to be handed to any other hooks.

0 commit comments

Comments
 (0)