Prevent sending transaction with 0 as amounts
silkaj tx --amountUD 0 -r 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH -r d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN -r 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe
╒════════════════════════════════════════════╤══════════════════════════════════════════════╕
│ pubkey's balance before tx (unit|relative) │ 24608.27 Ğ1 | 2434.0524 UD Ğ1 │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ total transaction amount (unit|relative) │ 0.0 Ğ1 | 0.0 UD Ğ1 │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ pubkey's balance after tx (unit|relative) │ 24608.27 Ğ1 | 2434.0524 UD Ğ1 │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ from (pubkey) │ GfKERHnJTYzKhKUma5h1uWhetbA8yHKymhVH2raf2aCP │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ from (id) │ moul │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit|relative) │ 0.0 Ğ1 | 0.0 UD Ğ1 │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit|relative) │ 0.0 Ğ1 | 0.0 UD Ğ1 │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe │
├────────────────────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit|relative) │ 0.0 Ğ1 | 0.0 UD Ğ1 │
╘════════════════════════════════════════════╧══════════════════════════════════════════════╛
Do you confirm sending this transaction? [yes/no]: yes
Generate Transaction:
- From: GfKERHnJTYzKhKUma5h1uWhetbA8yHKymhVH2raf2aCP
- To: 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH
- Amount: 0.0
- To: d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN
- Amount: 0.0
- To: 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe
- Amount: 0.0
- Total: 0.0
Version: 10
Type: Transaction
Currency: g1
Blockstamp: 298437-000000786667ED2EFE811571DBE042E05A9DAD8A7347849CDAD600F0D6E129E2
Locktime: 0
Issuers:
GfKERHnJTYzKhKUma5h1uWhetbA8yHKymhVH2raf2aCP
Inputs:
1001:0:D:GfKERHnJTYzKhKUma5h1uWhetbA8yHKymhVH2raf2aCP:60119
Unlocks:
0:SIG(0)
Outputs:
1001:0:SIG(GfKERHnJTYzKhKUma5h1uWhetbA8yHKymhVH2raf2aCP)
It does not generate any outputs to the recipients. This results in a transaction to the sender.
Nothing bad in Silkaj behaviour. I think we do not need this feature and we could avoid some issue by filtering 0
amounts.
Edited by Moul