Read transaction recipients and amounts from a file
Est-ce possible d'ajouter des commentaires dans la liste des clés du fichier .txt ?
Comme ci-dessous par exemple pour bien les identifier :
#cgeek
2ny7YAdmzReQxAayyJZsyVYwYhVyax2thKcGknmQy5nQ
#jytou
FEkbc4BfJukSWnCU6Hed6dgwwTuPFTVdgz5LpL4iHr9J
#elois
D9D2zaJoWYWveii1JRYLVK3J4Z7ZH3QczoKrnQeiM6mx
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
In the remuneration of Duniter contributors, this file was red from the shell and not by Silkaj itself.
We could implement the reading of such a
recipients.txt
file, and ignore commented lines.To do so, we have to define a file format with the amount in such a format:
# Comment [ABSOLUTE] [AMOUNT] [PUBKEY:CHECKSUM] # Comment [RELATIVE/DU] [AMOUNT] [PUBKEY]
# Tintin D 10 tintinpubkey # Milou A 5 miloupubkey
To do so, Silkaj have to handle amounts passed in relative and absolute amounts.
We could add the support for relative/absolute amounts per recipients in the future (TODO: open ticket), and start with all the amounts in relative or absolute reference. This would give with a choice of header:
[ABSOLUTE/RELATIVE] # Tata 777 tatapubkey # Toto 666 totopubkey
Edited by Moul- Moul changed title from Commentaires dans le fichier .txt to File handling containing the amount and the recipients
changed title from Commentaires dans le fichier .txt to File handling containing the amount and the recipients
- Moul mentioned in merge request !108 (merged)
mentioned in merge request !108 (merged)
- Moul changed title from File handling containing the amount and the recipients to Read transaction recipients and amounts from a file
changed title from File handling containing the amount and the recipients to Read transaction recipients and amounts from a file
- Moul mentioned in merge request !202 (merged)
mentioned in merge request !202 (merged)
- Moul closed with merge request !202 (merged)
closed with merge request !202 (merged)