Update example to make channel-level explicit

pull/272/head
Gigi 2021-07-23 18:29:36 +02:00
rodzic 9e479b6cc1
commit 224c81f5bc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 89C4A25E69A5DE7F
1 zmienionych plików z 35 dodań i 27 usunięć

Wyświetl plik

@ -300,33 +300,41 @@ the `customKey` and `customValue` can be utilized as follows:
This is a live, working example of a Lightning keysend value block in production. It designates four recipients for payment - two This is a live, working example of a Lightning keysend value block in production. It designates four recipients for payment - two
podcast hosts at 49 and 46 shares respectively, a producer working on per episode chapter creation who gets a 5 share, and podcast hosts at 49 and 46 shares respectively, a producer working on per episode chapter creation who gets a 5 share, and
a single share (effectively 1%) fee to the Podcastindex.org API. a single share (effectively 1%) fee to the Podcastindex.org API.
Since the value block is defined at the `<channel>` level, it applies to every podcast episode.
```xml ```xml
<podcast:value type="lightning" method="keysend" suggested="0.00000015000"> ...
<podcast:valueRecipient <channel>
name="Adam Curry (Podcaster)" <podcast:value type="lightning" method="keysend" suggested="0.00000015000">
type="node" <podcast:valueRecipient
address="02d5c1bf8b940dc9cadca86d1b0a3c37fbe39cee4c7e839e33bef9174531d27f52" name="Adam Curry (Podcaster)"
split="49" type="node"
/> address="02d5c1bf8b940dc9cadca86d1b0a3c37fbe39cee4c7e839e33bef9174531d27f52"
<podcast:valueRecipient split="49"
name="Dave Jones (Podcaster)" />
type="node" <podcast:valueRecipient
address="032f4ffbbafffbe51726ad3c164a3d0d37ec27bc67b29a159b0f49ae8ac21b8508" name="Dave Jones (Podcaster)"
split="46" type="node"
/> address="032f4ffbbafffbe51726ad3c164a3d0d37ec27bc67b29a159b0f49ae8ac21b8508"
<podcast:valueRecipient split="46"
name="Dreb Scott (Chapter Creation)" />
type="node" <podcast:valueRecipient
address="02dd306e68c46681aa21d88a436fb35355a8579dd30201581cefa17cb179fc4c15" name="Dreb Scott (Chapter Creation)"
split="5" type="node"
/> address="02dd306e68c46681aa21d88a436fb35355a8579dd30201581cefa17cb179fc4c15"
<podcast:valueRecipient split="5"
name="Podcastindex.org (Donation)" />
type="node" <podcast:valueRecipient
address="03ae9f91a0cb8ff43840e3c322c4c61f019d8c1c3cea15a25cfc425ac605e61a4a" name="Podcastindex.org (Donation)"
split="1" type="node"
fee="true" address="03ae9f91a0cb8ff43840e3c322c4c61f019d8c1c3cea15a25cfc425ac605e61a4a"
/> split="1"
</podcast:value> fee="true"
/>
</podcast:value>
...
<item>...</item>
<item>...</item>
...
</channel>
``` ```