Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Sia loses funds during contract formation #2772

Open
mtlynch opened this issue Feb 17, 2018 · 1 comment
Open

Sia loses funds during contract formation #2772

mtlynch opened this issue Feb 17, 2018 · 1 comment
Labels

Comments

@mtlynch
Copy link
Contributor

mtlynch commented Feb 17, 2018

BUG REPORT

How to reproduce it (as minimally and precisely as possible)

  1. Deposit 500 SC into Sia wallet
  2. Set allowance of 500 SC for 12w
  3. Wait for 50 contracts to form
  4. Upload 300 GiB of data to Sia, 5 files at a time

Expected Behavior

The sum of wallet balance and contract spending remains constant at 500 SC. Any money removed from the wallet should end up in total contract spending.

I see this behavior hold when I try it with a 5 KS wallet:

funds-balance-test1

In that test, the sum of wallet balance and contract spending remains a constant 5 KS.

Actual Behavior

Sia loses 166.66 SC of funds. Wallet balance reduces to 0, but Sia contract spending only increases to 333.33 SC, leaving 166.66 SC unaccounted for.

funds-balance-dev
missing.

Environment

  • Sia version: 1.3.1
  • OS: Win10 x64

Logs: https://gist.github.com/mtlynch/ccc29acfbd7cf4c9716180eac2af39a5
Metrics data: https://docs.google.com/spreadsheets/d/1g6bMB7CrH_Nn7orUfguD7RDd_9rmHKlXLJrrqv06sd4/edit#gid=1191012075

@mtlynch mtlynch changed the title 133.33 SC lost during contract formation 166.66 SC lost during contract formation Feb 17, 2018
@tbenz9 tbenz9 added the Bug label Feb 20, 2018
@mtlynch
Copy link
Contributor Author

mtlynch commented Mar 11, 2018

I actually ended up seeing the same thing on the 5000 SC allowance. I started with a 5000 SC wallet balance. Ended with 0 SC wallet balance and 2,966.7 in total contract spending, losing 2033.3 (41%).

image

@mtlynch mtlynch changed the title 166.66 SC lost during contract formation Sia loses funds during contract formation Mar 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants