Skip to content

Balance is always 0  #34

Description

@ang-st

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' } ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions