NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 440 forks source link

Host wallet mysteriously sending lots of small transactions #1861

Open mtlynch opened 7 years ago

mtlynch commented 7 years ago

Hey Sia gang, I'm seeing weird behavior on the wallet of my Sia host node. I'm both mining and hosting on the same wallet. I see my regular transactions coming in for 2,000 and 1,000 from mining on SiaMining. I'm also seeing lots of small transactions leaving my wallet of 1.3 SC, often transactions that show as 0 SC:

      106931   ce95c1d67f0548e4d76d47cee4ce30e3c6c900ca6cd73c8ea36f56eb723f3a3e        1001.48 SC             0 SF
      106945   b92d0b6681caecdfd5713755aad66364301f8da0385a9b98c3e5fc9eedff748e           0.00 SC             0 SF
      106945   39f12360456013175785ae2ccb129ff8a66ef3efa004d4de012ab6ceea6203f6          -2.85 SC             0 SF
      107013   79befa4f3a22cfd5fed5c60b19b7c3bce94124edc6b81d77b49a9c50289f0b9d           0.00 SC             0 SF
      107013   4d7bcd908d243ec5b9d8078a0067d59d8f0412ecc52266a7a8750c8e403f698e          -0.61 SC             0 SF
      107062   99ccf04486fbd01f261f8d64357a9ce9601cedcc53cbcc6240ac711bf80019fc           0.00 SC             0 SF
      107062   7599b91c6e2dca4db1b64ef53dbb1bda06870224de3bbca6ee423bc81006e5b5          -4.77 SC             0 SF
      107102   eb30433a24678dbf6a910361db06269e859e439967a7b00407a92c062d4bf328           0.00 SC             0 SF
      107102   f3d49528706c59f9a88678ea869548a016f301febfb1b6cdf1de705237b617c7          -0.11 SC             0 SF
      107103   0cee935bd6604a91b61c97800cdf7512a357c49d2fe04ba558461bf9ddd4a7d9           0.00 SC             0 SF
      107103   d66505d5b0a9ca71d61884a6e2c5140929876e880849fca6aef6031beac5b8a4          -0.65 SC             0 SF
      107360   20b13affc9dbc76635424dd3959b2c93702004fe13769b2dd39deb22d466eeda           0.00 SC             0 SF
      107360   b1390f1c234a42a059adeedf5a66ca5da2a49a2bbf7f4ca2b07f6a973db0e7ef          -1.33 SC             0 SF
      107532   652c9f4a3fed02e85d38ee683e88fc1f68f34cf34f9b198f3c327a9e929634e4           0.00 SC             0 SF
      107532   581391f87ee7c45b7aa056e8aedd9e4a4f96aec216487461b52aada11b1c7a15          -1.33 SC             0 SF

Other details:

Posted some more logs that might be relevant: https://gist.github.com/mtlynch/21aeb1fc8fb8f94fca290205008146b7

Any idea what might be happening?

lukechampine commented 7 years ago

The 0 SC transactions can be ignored, it just means the wallet sent money to itself (usually a refund/'change'). As for the rest... It's hard to say. I would like to add more fine-grained logging to the wallet so that we can see the exact reason for each expenditure.

starius commented 7 years ago

I also see small outgoing transactions having 100% host:

107541   99bad1dd2c393d63712cb80aacdc2f346337429136897efd4c57e214d908a6c2          -1.27 SC             0 SF

For your small contracts explorer says "File Contract Revisions", for my it says "Storage Proofs".

maercruos commented 7 years ago

I may be having a similar issue I have a lot of .6 txs and I was never paid my last 1000 payout from siamining, The block explorer also says I spent said coins! Posted in reddit about it https://www.reddit.com/r/siacoin/comments/6gxhzi/im_missing_sc_and_what_are_these_6_transactions/

mtlynch commented 7 years ago

Another instance: https://www.reddit.com/r/siacoin/comments/6iomtz/random_small_withdrawal_appearing/?st=j47jlezs&sh=4aaee60e

JamesM424 commented 7 years ago

Can confirm I have this one one host as well now. Just started happening about 4 days ago according to wallet activity.

I'm curious if this is caused by the announcer at all? The host this bug is hitting is not set with a static IP. It is static, but is configured to (determine automatically) in the log files. It happens every 4 hours without fail, and in the log file, every 4 hours I get this entry:

Seems coincidental?

Will get a DDNS assigned to this in the morning to see if that quiets it down.

killadark commented 7 years ago

Had a weird problem don't know if it's related my last payout of 500 coins says it has been spent.... Even though I have not spent it neither has it been received at bittrex

benjaminchodroff commented 7 years ago

I am also experiencing this problem where 0 and -0.6SC transactions have been randomly happening while using Sia-UI 1.2.2 on macOS. It may be because I started "accepting contracts"? This seems like a bug to me -- I had no idea I would start to lose/transfer coins.

Not Confirmed | 0 SC | 6442412b37b3c9615929d4fcc18d42f1783c32b3c0be099fb88810cc854bd290 | Unconfirmed
Not Confirmed | -0.6 SC | ddbad21e197cc6e6d1b792252e6db8c3bff30725fe6540b9e5edb04c9c42dd9e | Unconfirmed
2017-07-07 14:37 | 0 SC | d95b29e101a91d8b0b41d76debb2eb03b900771d444b990f327f8e6861150ff4 | Confirmed
2017-07-07 14:37 | -0.6 SC | a15ad6413956899b099edb396b8d3a8e979535cd41bae2e4a8508b45aa0953fc | Confirmed
2017-07-07 00:23 | 0 SC | 3f73796adc2f4c47726120af214cffc19f5e878718e0f3df351bd2ade7fe2bb9 | Confirmed
2017-07-07 00:23 | -0.6 SC | d4a972afd4bc8856b23ecc5fdd17e115ad5710803cca2f43a4b4d166e8c8a7fc | Confirmed
mckelvin commented 7 years ago

I met similar problem before. In my case, I created some contracts (by setting the allowance) although I haven't uploaded any files on the Sia network yet. Then every few days, there're some transactions in the Wallet tab implying that my SC are running away. My final solution is cancel all the allowance by:

Click the Terminal tab and enter:

# before executing the following command, please run `renter allowance -h` first to make sure what's going on
renter allowance cancel

After that, I checked with renter allowance and renter contracts to make sure there're no contracts or allowance anymore.

renter allowance

Allowance:
    Amount: 0 H
    Period: 0 blocks

renter contracts

No contracts have been formed.

0 SC Spent / 0 SC Allocated
stefanocoding commented 6 years ago

Same happened to me as a renter without any file uploaded. Using renter allowance cancel seems to fix the issue. However, I lost the SC allocated, it didn't go back to my wallet. Maybe that's the way it works.