Skip to content

Commit f81c863

Browse files
committed
doc: update pay_part_start and pay_part_end
Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
1 parent 1075ecc commit f81c863

1 file changed

Lines changed: 26 additions & 30 deletions

File tree

doc/developers-guide/plugin-development/event-notifications.md

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -602,29 +602,27 @@ The example shows a payment from this node via 103x1x0 (direction 1) to 022d2236
602602
"method": "pay_part_start",
603603
"params": {
604604
"origin": "cln-xpay",
605-
"payload": {
606-
"payment_hash": "651b28004d41cf0dc8e39a0b3d905651a7b012d03d81199fde09314700cb5a62",
607-
"groupid": 5793910575598463611,
608-
"partid": 1,
609-
"total_payment_msat": 5000000,
610-
"attempt_msat": 5000000,
611-
"hops": [
612-
{
613-
"next_node": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59",
614-
"short_channel_id": "103x1x0",
615-
"direction": 1,
616-
"channel_in_msat": 5000051,
617-
"channel_out_msat": 5000051
618-
},
619-
{
620-
"next_node": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
621-
"short_channel_id": "103x2x0",
622-
"direction": 0,
623-
"channel_in_msat": 5000051,
624-
"channel_out_msat": 5000000
625-
}
626-
]
627-
}
605+
"payment_hash": "651b28004d41cf0dc8e39a0b3d905651a7b012d03d81199fde09314700cb5a62",
606+
"groupid": 5793910575598463611,
607+
"partid": 1,
608+
"total_payment_msat": 5000000,
609+
"attempt_msat": 5000000,
610+
"hops": [
611+
{
612+
"next_node": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59",
613+
"short_channel_id": "103x1x0",
614+
"direction": 1,
615+
"channel_in_msat": 5000051,
616+
"channel_out_msat": 5000051
617+
},
618+
{
619+
"next_node": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
620+
"short_channel_id": "103x2x0",
621+
"direction": 0,
622+
"channel_in_msat": 5000051,
623+
"channel_out_msat": 5000000
624+
}
625+
]
628626
}
629627
}
630628
```
@@ -652,13 +650,11 @@ will be missing in the unusual case where the error onion is corrupted.
652650
"method": "pay_part_end",
653651
"params": {
654652
"origin": "cln-xpay",
655-
"payload": {
656-
"status": "success",
657-
"duration": 0.220209189,
658-
"payment_hash": "651b28004d41cf0dc8e39a0b3d905651a7b012d03d81199fde09314700cb5a62",
659-
"groupid": 5793910575598463611,
660-
"partid": 1
661-
}
653+
"status": "success",
654+
"duration": 0.220209189,
655+
"payment_hash": "651b28004d41cf0dc8e39a0b3d905651a7b012d03d81199fde09314700cb5a62",
656+
"groupid": 5793910575598463611,
657+
"partid": 1
662658
}
663659
}
664660
```

0 commit comments

Comments
 (0)