Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
silkaj
silkaj
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 155
    • Issues 155
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 4
    • Merge Requests 4
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • clients
  • python
  • silkajsilkaj
  • Issues
  • #247

Closed
Open
Opened Sep 12, 2019 by matograine@matograineMaintainer

Backchange not counted in balance after tx

While sending a confirmation with a backchange_pubkey different from the issuer_pubkey, the transaction_confirmation display does not substract backchange from the pubkey's balance after tx.

example : this confirmation

bin/silkaj -p ts.gt.librelois.fr tx --output 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH --amount 1 --outputBackChange d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN --comment test
Please enter your Scrypt Salt (Secret identifier): 
Please enter your Scrypt password (masked): 
╒════════════════════════════════╤══════════════════════════════════════════════╕
│ pubkey’s balance before tx     │ 1870.02 ĞTest                                │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ total amount (unit | relative) │ 1.0 ĞTest  ||  0.0006 UD                     │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ pubkey’s balance after tx      │ 1869.02 ĞTest                                │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ from (pubkey)                  │ 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey)                    │ 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ to (id)                        │ moul-test                                    │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit | relative)       │ 1.0 ĞTest  ||  0.0006 UD                     │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ Backchange (pubkey)            │ d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN  │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ Backchange (id)                │ matograine-G1Test                            │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ comment                        │ test                                         │
╘════════════════════════════════╧══════════════════════════════════════════════╛
Do you confirm sending this transaction? [yes/no]: yes
Generate Transaction:
   - From:    3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe
   - To:      5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH 
   - Amount:  1.0
Transaction successfully sent.

is for tx in block 436258 (or a bit after) where tx = 1 and Backchange = 771.

We should have :

├────────────────────────────────┼──────────────────────────────────────────────┤
│ pubkey’s balance after tx      │ 1098.02 ĞTest                                │
├────────────────────────────────┼──────────────────────────────────────────────┤
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
0.10.0
Milestone
0.10.0
Assign milestone
Time tracking
None
Due date
None
Reference: clients/python/silkaj#247