Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • silkaj silkaj
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 155
    • Issues 155
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • clients
  • python
  • silkajsilkaj
  • Issues
  • #247

Closed
Open
Created 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
Time tracking