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

Balance is always 0 #34

Open
ang-st opened this issue Aug 15, 2019 · 4 comments
Open

Balance is always 0 #34

ang-st opened this issue Aug 15, 2019 · 4 comments

Comments

@ang-st
Copy link

ang-st commented Aug 15, 2019

Hi
I try to import a wallet (previously recreated with recoveryWallet) that has some unspent outputs

> const monero = require('.');
> var args = {
  'path': 'meeh3',
  'password': '123',
  'network': 'testnet',
  'daemonAddress': 'localhost:28081',
  'restoreHeight': 1276400
}

> var wallet
> monero.openWallet(args).then(x=>wallet=x)
> 2019-08-15 09:21:36.428       I ringdb path set to /home/ang-st/.shared-ringdb/testnet
2019-08-15 09:21:36.510 I caching ringdb key
2019-08-15 09:21:36.527 W Loaded wallet keys file, with public address: A2RC5DGHEUKUytSVkmkzLtARQKa1jiqiB76t9iYKzgj8BbgMgFczgSmKwMBX67SWZPG6WwjHMTvjoCGn8BsFDQjH7KJWLup
2019-08-15 09:21:36.527 I Trying to decrypt cache data
2019-08-15 09:21:36.551 I Found and saved rings for 0 transactions
2019-08-15 09:21:36.551 E No message store file found: meeh3.mms
2019-08-15 09:21:36.551 I setting daemon to localhost:28081
2019-08-15 09:21:36.551 I Generating SSL certificate
2019-08-15 09:21:37.504 E SSL handshake failed, connection dropped: stream truncated
2019-08-15 09:21:37.504 E SSL handshake failed on an autodetect connection, reconnecting without SSL
 2019-08-15 09:21:39.213       I Refresh done, blocks received: 0, balance (all accounts): 0.000000000000, unlocked: 0.000000000000
> wallet.startRefresh()
> wallet.blockchainHeight()
1277811
> wallet.daemonBlockchainHeight()
1277811

even after few minutes, the balance is always returning '0' while using monero-wallet-rpc or monero-wallet-cli i can clearly see unspent_outputs

[wallet A2RC5D]: unspent_outputs

Amount: 0.200000000000, number of keys: 2
1276402 1276409

Amount: 0.300000000000, number of keys: 1
1276484

Min block height: 1276402
Max block height: 1276484
Min amount found: 0.200000000000
Max amount found: 0.300000000000
Total count: 3
{ transfers:
   [ { amount: 200000000000,
       global_index: 585677,
       key_image: '',
       spent: false,
       subaddr_index: [Object],
       tx_hash:
        '2133d090f105b2783e2ea38ea53bb38be14ae9d8310c635c04b6819372e8fcd2' },
     { amount: 200000000000,
       global_index: 585690,
       key_image: '',
       spent: false,
       subaddr_index: [Object],
       tx_hash:
        '06234cf0d25910544e6e0611788eb5eccd4cb9fe33b2745ecf1f012eb5d28419' },
     { amount: 300000000000,
       global_index: 585773,
       key_image: '',
       spent: false,
       subaddr_index: [Object],
       tx_hash:
        'ace8c9d88dadc3dfc34909bb70d1db79f6a7c51029d979eb11d77e21bcb25da5' } ] }
@ang-st
Copy link
Author

ang-st commented Aug 15, 2019

maybe related to this ?

2019-08-15 09:55:57.053 I Found new pool tx: <fc9482b3a492960c07fac3ecf3685556587106061a9dcf5dfb05368d96718810>
2019-08-15 09:55:57.141 E Failed to parse transaction from blob
2019-08-15 09:55:57.141 E Invalid tx data
2019-08-15 09:55:57.141 W Failed to parse transaction from daemon

@naughtyfox
Copy link
Member

naughtyfox commented Aug 15, 2019

Hi!

Invalid tx data error happens when you use monero node of previous version, they have fixed this bug in recent release. You may just update the node.

I'll take a look on the balance problem in a few days, thank you

@ang-st
Copy link
Author

ang-st commented Aug 15, 2019

Ok updating to 0.14.1.0 fixed Invalid tx data. thanks

Is there a way to disable ssl so 'ngreping' rpc message will be easier ?

@ang-st
Copy link
Author

ang-st commented Aug 15, 2019

found my way to forcefully disable ssl

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

2 participants