Skip to content

Commit 0fc831d

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

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
@@ -600,29 +600,27 @@ The example shows a payment from this node via 103x1x0 (direction 1) to 022d2236
600600
"method": "pay_part_start",
601601
"params": {
602602
"origin": "cln-xpay",
603-
"payload": {
604-
"payment_hash": "651b28004d41cf0dc8e39a0b3d905651a7b012d03d81199fde09314700cb5a62",
605-
"groupid": 5793910575598463611,
606-
"partid": 1,
607-
"total_payment_msat": 5000000,
608-
"attempt_msat": 5000000,
609-
"hops": [
610-
{
611-
"next_node": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59",
612-
"short_channel_id": "103x1x0",
613-
"direction": 1,
614-
"channel_in_msat": 5000051,
615-
"channel_out_msat": 5000051
616-
},
617-
{
618-
"next_node": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
619-
"short_channel_id": "103x2x0",
620-
"direction": 0,
621-
"channel_in_msat": 5000051,
622-
"channel_out_msat": 5000000
623-
}
624-
]
625-
}
603+
"payment_hash": "651b28004d41cf0dc8e39a0b3d905651a7b012d03d81199fde09314700cb5a62",
604+
"groupid": 5793910575598463611,
605+
"partid": 1,
606+
"total_payment_msat": 5000000,
607+
"attempt_msat": 5000000,
608+
"hops": [
609+
{
610+
"next_node": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59",
611+
"short_channel_id": "103x1x0",
612+
"direction": 1,
613+
"channel_in_msat": 5000051,
614+
"channel_out_msat": 5000051
615+
},
616+
{
617+
"next_node": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
618+
"short_channel_id": "103x2x0",
619+
"direction": 0,
620+
"channel_in_msat": 5000051,
621+
"channel_out_msat": 5000000
622+
}
623+
]
626624
}
627625
}
628626
```
@@ -650,13 +648,11 @@ will be missing in the unusual case where the error onion is corrupted.
650648
"method": "pay_part_end",
651649
"params": {
652650
"origin": "cln-xpay",
653-
"payload": {
654-
"status": "success",
655-
"duration": 0.220209189,
656-
"payment_hash": "651b28004d41cf0dc8e39a0b3d905651a7b012d03d81199fde09314700cb5a62",
657-
"groupid": 5793910575598463611,
658-
"partid": 1
659-
}
651+
"status": "success",
652+
"duration": 0.220209189,
653+
"payment_hash": "651b28004d41cf0dc8e39a0b3d905651a7b012d03d81199fde09314700cb5a62",
654+
"groupid": 5793910575598463611,
655+
"partid": 1
660656
}
661657
}
662658
```

0 commit comments

Comments
 (0)