View Issue Details

IDProjectCategoryView StatusLast Update
0005412Talerobsolete componentpublic2019-12-20 18:12
ReporterTorsten Grothoff Assigned ToMarcello Stanisci Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritylowSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.6Fixed in Version0.6 
Summary0005412: Negative Balance
DescriptionGet a negative balance
Steps To Reproducetransfer more money then you have to any bank account using donation thing;
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Marcello Stanisci

2018-07-29 08:05

reporter   ~0013163

After you transfer 'more money than you have', the balance turns negative, and we did want this feature.

Torsten Grothoff

2018-08-01 19:25

reporter   ~0013165

Still open send the account 1 a large amount of kudos and it will work as long as it is not an intiger overflow

Marcello Stanisci

2018-08-01 19:51

reporter   ~0013166

Okay; but if the problem is a integer overflow, then it is something _different_ and so it should be filed in a dedicated bug. Thanks for reporting though.

Christian Grothoff

2018-08-02 06:57

manager   ~0013167

Ok, I checked with Torsten, and the issue does not actually seem to be an Integer overflow (in test) [anymore]. Torsten's issue is that the balance can go _very_ deep into the negative, and while I agree with Marcello that we should support negative balances (after all, real bank accounts can go into the red), we also did mention having a "credit limit", i.e. a maximum amount by which one can go into the red.

I _thought_ we had a (credit) limit on withdraw, but just now tested it (on demo) and could go up to -120 KUDOS balance.

So let's re-interpret this bug as a feature request that accounts (other than the exchange) should have an _effective_ credit limit (say -20 KUDOS) that ought to be enforced for exchange withdraw and wire transfer dialogs.

This will be useful to test error handling for failed exchange withdraws due to 'bank refused' (in which case the wallet should simply not get the final notification from the bank and thus then never start to withdraw from the reserve; the interesting logic here is more that the wallet should eventually discard the reserve private key that was never put into action as the reserve was never filled).

Marcello Stanisci

2018-08-02 08:26

reporter   ~0013168

Fine. The bank logic does enforce negative limits, I'm pretty sure that the configuration is responsible now. IIRC, there is a "max_debt" option that lets
you decide what is the debt threshold allowed for any user, and if it's set as "zero" it goes limit-less.

Christian Grothoff

2018-08-02 08:37

manager   ~0013172

Ok, then we should just set that limit to 20, to make it "real" ;-)

Marcello Stanisci

2018-09-21 12:35

reporter   ~0013252

91e69fe77baa2abba30 gives -20 debit for all bank _customers_.

Issue History

Date ModifiedUsernameFieldChange
2018-07-28 15:14Torsten GrothoffNew Issue
2018-07-28 15:14Torsten GrothoffStatusnew => assigned
2018-07-28 15:14Torsten GrothoffAssigned To => Marcello Stanisci
2018-07-29 08:05Marcello StanisciNote Added: 0013163
2018-07-29 08:05Marcello StanisciStatusassigned => informing
2018-07-29 08:05Marcello StanisciResolutionopen => no change required
2018-08-01 19:25Torsten GrothoffStatusinforming => feedback
2018-08-01 19:25Torsten GrothoffResolutionno change required => reopened
2018-08-01 19:25Torsten GrothoffNote Added: 0013165
2018-08-01 19:51Marcello StanisciNote Added: 0013166
2018-08-02 06:57Christian GrothoffNote Added: 0013167
2018-08-02 06:57Christian GrothoffPrioritynormal => low
2018-08-02 06:57Christian GrothoffSeverityminor => feature
2018-08-02 06:57Christian GrothoffStatusfeedback => assigned
2018-08-02 08:26Marcello StanisciNote Added: 0013168
2018-08-02 08:37Christian GrothoffNote Added: 0013172
2018-09-21 12:35Marcello StanisciStatusassigned => informing
2018-09-21 12:35Marcello StanisciResolutionreopened => fixed
2018-09-21 12:35Marcello StanisciNote Added: 0013252
2018-11-17 23:37Christian GrothoffProduct Version => git (master)
2018-11-17 23:37Christian GrothoffFixed in Version => 0.6
2018-11-17 23:37Christian GrothoffTarget Version => 0.6
2019-12-20 18:12Christian GrothoffStatusinforming => closed
2022-08-23 18:26Christian GrothoffCategorybank (demonstrator) => py bank (demonstrator, obsolete)
2023-12-03 00:23Christian GrothoffCategorypy bank (demonstrator, obsolete) => obsolete componet
2023-12-11 19:08Florian DoldCategoryobsolete componet => obsolete component