Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 tDusk missing from wallet balance #3

Closed
Rigorously opened this issue Jul 28, 2019 · 2 comments
Closed

1 tDusk missing from wallet balance #3

Rigorously opened this issue Jul 28, 2019 · 2 comments
Assignees

Comments

@Rigorously
Copy link

Rigorously commented Jul 28, 2019

After testing the blockgenerator, 1 tDusk is missing from my wallet balance.

$ ./testnet 
initializing node...
initialization complete. opening console...
> createwallet [mypassword]
Wallet created successfully!
Public Address: [myaddress]
> sync
Syncing wallet... (13791/13791)
Found 0 spends and 1 receives
> balance
Balance: 10.00000000
> stake 8 100 [mypassword]
hash: [somehash]
> sync                
Syncing wallet... (13804/13804)
Found 0 spends and 1 receives
> startprovisioner
provisioner module started
to more accurately follow the progression of consensus, use the showlogs command
> sync
Syncing wallet... (13807/13807)
Found 0 spends and 0 receives
> sync
Syncing wallet... (13808/13808)
Found 0 spends and 0 receives
> bid 2 100 [mypassword]
hash: [txid]
> startblockgenerator [txid]



balance
              

stop

After waiting a few hours I exited the console with CTRL + C because the console would not return control (see #2). Coincidentally the test monitor was stuck at height 13903.

I restarted my node to check whether I could reproduce the error. Unfortunately I did not manage to sync, but I also noticed 1 tDUSK is missing.

$ ./testnet 
initializing node...
initialization complete. opening console...
> balance
please load a wallet before trying to check balance
> loadwallet [mypassword]
error attempting to load wallet: cipher: message authentication failed
> sync
please load a wallet before trying to sync
> loadwallet [mypassword]
Wallet loaded successfully!
Public Address: [myaddress]
> balance
Balance: 9.00000000
> balance
Balance: 9.00000000
> sync    
Syncing wallet... (13903/13903)
Found 0 spends and 1 receives
> balance
Balance: 9.00000000
@jules
Copy link
Contributor

jules commented Jul 28, 2019

We found out what caused it - it seemed to be a rounding error, found in wallet.go, line 363. A fix will be pushed shortly.

@jules jules closed this as completed in b45a909 Jul 28, 2019
@Rigorously
Copy link
Author

Rigorously commented Jul 28, 2019

I used the faucet and synced. Now I have 19.99999800 tDusk. 0 spends and 4 receives.

Oh I see. Every time I execute bid or stake I get one receive and 0.00000100 tDusk is deducted. Is that a fee, like gas for Ethereum?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants