HyperspaceApp / Hyperspace

Daemon for a blockchain-based storage marketplace
https://hspace.app
MIT License
15 stars 10 forks source link

Could not announce host: wallet has coins spent in incomplete transactions - not enough remaining coins #43

Open afdy opened 5 years ago

afdy commented 5 years ago

Apparently some folks have issues creating contracts with one of my hosts (I have multiple) - i tried re-announcing but get this error despite there being sufficient tokens in my wallet.

hsc host announce

Could not announce host: wallet has coins spent in incomplete transactions - not enough remaining coins

hsc walletWallet status:

Encrypted, Unlocked Height: 19185 Confirmed Balance: 4.999 KS Unconfirmed Delta: +0 H Exact: 4999354381128348755583612980 H

Estimated Fee: 30 mS / KB

I do actually appear to have 2 contracts.

hsc version (latest 0.2.3 branch as of 2 weeks ago, and then last night)

Hyperspace Client Version 0.2.3 Hyperspace Daemon Version 0.2.3

What did I miss? :)

afdy commented 5 years ago

This issue went away again for a while, and then came back! odd. I also noticed it on a 2nd host, again same version. I didn't notice this at all when i was running 0.2.2. (Aware 0.2.3 isn't officially released yet).

I noticed it stopped erroring and worked ok between 19:00ish 06/12/2018, GMT and start again 10:00ish 07/12/2018 GMT.

Numerio commented 5 years ago

Seems related to this:

https://github.com/HyperspaceApp/Hyperspace/commit/aea4349df0e52f3d9f2ea1e203b4f94638d5ec14

Or one of those changes which moved the code to FundContract. Probably @tlightsky has something more to add.

tlightsky commented 5 years ago

@Barrett17 i and afdy have meet this for a while, the strange part is it will disappear after a while(for my host about 1h), then every is fine, i'll take a look at this again after i finished the new UI changes

huetsch commented 5 years ago

When we hunt this down, we should probably write a test for it if at all possible.

afdy commented 5 years ago

My host seems to do it pretty consistently but occasionally starts functioning fine. I've rolled back to v0.2.2, and this seems to still have the same problem, if that helps?

root@7cf290e81fba:/hs# hsc version
Hyperspace Client
    Version 0.2.2
Hyperspace Daemon
    Version 0.2.2

root@7cf290e81fba:/hs# hsc wallet
Wallet status:
Encrypted, Unlocked
Height:              20076
Confirmed Balance:   4.999 KS
Unconfirmed Delta:  +0 H
Exact:               4999318381128348755583612980 H

Estimated Fee:       30 mS / KB

root@7cf290e81fba:/hs# hsc host announce
Could not announce host: wallet has coins spent in incomplete transactions - not enough remaining coins