Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Discrepancies with multiple addresses in a wallet #605

Closed
jseagrave21 opened this issue Sep 13, 2018 · 9 comments
Closed

Discrepancies with multiple addresses in a wallet #605

jseagrave21 opened this issue Sep 13, 2018 · 9 comments

Comments

@jseagrave21
Copy link
Contributor

Current behavior

Using account to display an address's balance hides other balances within the wallet and makes them inaccessible. Here is what I see:

Wallet {
    "path": "neo-privnet.wallet",
    "addresses": [
        {
            "version": 0,
            "script_hash": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "99999900.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "74674.9999"
            },
            "is_watch_only": false
        },
        {
            "version": 0,
            "script_hash": "AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "100.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "4.995"
            },
            "is_watch_only": false
        },
        {
            "address": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps",
            "script_hash": "10d951cc11ce0d3b562acd0c0bbb183707fff64c",
            "tokens": null
        }
    ],
    "height": 9572,
    "percent_synced": 100,
    "synced_balances": [
        "[NEO]: 99999900.0 ",
        "[NEOGas]: 74629.9999 "
    ],
    "public_keys": [
        {
            "Address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "Public Key": "031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a"
        },
        {
            "Address": "AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR",
            "Public Key": "0322bea896b923fb37a80dcb79d22061af85751b7140878987110b988e9a3e353f"
        },
        {
            "Address": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps",
            "Public Key": "031b790f7589069981e04e96fb072f5433bd7f5acc82d46a04a0040d4e8ee36834"
        }
    ],
    "tokens": [],
    "claims": {
        "available": "374.0",
        "unavailable": "999.999"
    }
}
neo> account AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps
{
    "version": 0,
    "script_hash": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps",
    "frozen": false,
    "votes": [],
    "balances": {
        "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "50.0",
        "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "5.0"
    }
}


neo> wallet
[I 180912 23:31:54 UserWallet:538] Script hash b'#\xba\'\x03\xc52c\xe8\xd6\xe5"\xdc2 39\xdc\xd8\xee\xe9' <class 'bytes'>
[I 180912 23:31:54 UserWallet:538] Script hash b'\xbf\xdc\x06,\x82\xde`S\x94C\xd2\x13\xa9\xae\xd8\x97q\xd1*\xe8' <class 'bytes'>
[I 180912 23:31:54 UserWallet:538] Script hash b'\x10\xd9Q\xcc\x11\xce\r;V*\xcd\x0c\x0b\xbb\x187\x07\xff\xf6L' <class 'bytes'>
Wallet {
    "path": "neo-privnet.wallet",
    "addresses": [
        {
            "version": 0,
            "script_hash": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "99999950.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "74674.9899"
            },
            "is_watch_only": false
        },
        {
            "address": "AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR",
            "script_hash": "bfdc062c82de60539443d213a9aed89771d12ae8",
            "tokens": null
        },
        {
            "version": 0,
            "script_hash": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "50.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "5.0"
            },
            "is_watch_only": false
        }
    ],
    "height": 9573,
    "percent_synced": 100,
    "synced_balances": [
        "[NEO]: 100000000.0 ",
        "[NEOGas]: 74679.9899 "
    ],
    "public_keys": [
        {
            "Address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "Public Key": "031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a"
        },
        {
            "Address": "AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR",
            "Public Key": "0322bea896b923fb37a80dcb79d22061af85751b7140878987110b988e9a3e353f"
        },
        {
            "Address": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps",
            "Public Key": "031b790f7589069981e04e96fb072f5433bd7f5acc82d46a04a0040d4e8ee36834"
        }
    ],
    "tokens": [],
    "claims": {
        "available": "374.000552",
        "unavailable": "1007.999"
    }
}
neo> account AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR
Account AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR not found

Expected behavior

Balances of every address within a wallet should be displayed and using account to display an account state of a certain address should not affect other addresses within the wallet.

How to reproduce

  • Access the privatenet using np-prompt -p (or testnet if you'd like, I was using privatenet)
  • Open a wallet and use create_addr to create 2 (or more) addresses within the wallet
  • Send assets to both addresses
  • Using wallet, check to see if you can see all balances of every address within the wallet
  • Use account to display the balance of the address which has a hidden balance
  • Using wallet, check to see if you can see all balances of every address within the wallet
  • Try to use account to display the balance of the wallet that is now hidden and the address cannot be found

Your environment

Let us know in what environment you're running into the issue:

  • OS: Microsoft Windows 10 Pro 10.0.17134 Build 17134
  • neo-python version: neo-python v0.7.8-dev
  • Python version: 3.7.0
@jseagrave21
Copy link
Contributor Author

jseagrave21 commented Sep 16, 2018

Upon further investigation, I found that this issue is actually what appears to be a glitch when running neo-privatenet. In the previous example, account did not affect the balance of the address. Instead, somehow the balance completely reset.

I saw a similar issue and asked @belane about it, and we could not resolve it. Below is the example case.
Here are the last three wallet tx shown when using wallet verbose in prompt on privatenet.

First tx

{
            "txid": "0x84e8b5f8a9c0ceaaacb324046d8047a9dc2fa7477ec9188b6196e6984ac2d05b",
            "size": 557,
            "type": "ContractTransaction",
            "version": 0,
            "attributes": [
                {
                    "usage": 32,
                    "data": "23ba2703c53263e8d6e522dc32203339dcd8eee9"
                }
            ],
            "vout": [
                {
                    "n": 0,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "100",
                    "address": "AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR"
                },
                {
                    "n": 1,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "50",
                    "address": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps"
                },
                {
                    "n": 2,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "10",
                    "address": "AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR"
                },
        
        {
                    "n": 3,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "5",
                    "address": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps"
                },
                {
                    "n": 4,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "99999850",
                    "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y"
                },
                {
                    "n": 5,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "26058.995",
                    "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y"
                }
            ],
            "vin": [
                {
                    "txid": "0x539084697cc220916cb5b16d2805945ec9f267aa004b6688fbf15e116c846aff",
                    "vout": 0
                },
                {
                    "txid": "0xaa2051096e7be45ed991279a1a4c2678eb886690829a2729f4caa82192ff7f34",
                    "vout": 0
                }
            ],
            "sys_fee": "0",
            "net_fee": "0.005",
            "scripts": [
                {

Second tx

{
            "txid": "0xd8c982b92941924fe93ba55b0313dade243ad96b74387b5510e35c419d8719fd",
            "size": 539,
            "type": "ContractTransaction",
            "version": 0,
            "attributes": [
                {
                    "usage": 32,
                    "data": "23ba2703c53263e8d6e522dc32203339dcd8eee9"
                }
            ],
            "vout": [
                {
                    "n": 0,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "25",
                    "address": "AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR"
                },
                {
                    "n": 1,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "2.5",
                    "address": "AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR"
                },
                {
                    "n": 2,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "25",
                    "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y"
                },
                {
                    "n": 3,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "2.5",
                    "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y"
                }

Third tx

{
            "txid": "0x054bf85f03b05ff087f8b1255a963d4b7942762ba5ae856ad2e6582be3ee315f",
            "size": 487,
            "type": "ContractTransaction",
            "version": 0,
            "attributes": [
                {
                    "usage": 32,
                    "data": "23ba2703c53263e8d6e522dc32203339dcd8eee9"
                }
            ],
            "vout": [
                {
                    "n": 0,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "50",
                    "address": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps"
                },
                {
                    "n": 1,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "5",
                    "address": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps"
                }
            ]

When using the wallet command, the wrong balance is displayed for AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR

Wallet {
    "path": "neo-privnet.wallet",
    "addresses": [
        {
            "version": 0,
            "script_hash": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "99999850.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "74664.9949"
            },
            "is_watch_only": false
        },
        {
            "version": 0,
            "script_hash": "AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "100.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "10.0"
            },
            "is_watch_only": false
        },
        {
            "version": 0,
            "script_hash": "AHJxoC87MMGJHw353SMzZQLLuhR5QZ5Jps",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "50.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "5.0"
            },
            "is_watch_only": false
        }
    ]

You can see that address AZGLHgV4sBsAQLYioetrJpTeSFNLsGzJdR is completely missing the 2nd tx and its balance should be 125 'neo' and 12.5 'gas'.

wallet rebuild does not solve the problem and there were several blocks between the first, second, and third txs. Also, all txs appear on the blockchain when queried by RPC. (these were all questions asked by @belane )

So, now I am thinking this issue may be related to #578 . Any thoughts @ixje @localhuman ?

@jseagrave21 jseagrave21 mentioned this issue Sep 17, 2018
5 tasks
@ixje ixje added the bug label Sep 19, 2018
@ixje
Copy link
Member

ixje commented Oct 11, 2018

is this still present in the latest dev branch?

@jseagrave21
Copy link
Contributor Author

I will check.

@jseagrave21
Copy link
Contributor Author

jseagrave21 commented Oct 12, 2018

@ixje I just verified on the latest branch on privatenet that this behavior is still exhibited. I did exactly the same steps as previously mentioned here

First tx:

{
            "txid": "0xfd1fde961b4160019805edcd44b6de38177a219f794de97ac7a9a7dcae16b346",
            "size": 557,
            "type": "ContractTransaction",
            "version": 0,
            "attributes": [
                {
                    "usage": 32,
                    "data": "23ba2703c53263e8d6e522dc32203339dcd8eee9"
                }
            ],
            "vout": [
                {
                    "n": 0,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "500",
                    "address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2"
                },
                {
                    "n": 1,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "250",
                    "address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP"
                },
                {
                    "n": 2,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "100",
                    "address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP"
                },
                {
                    "n": 3,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "50",
                    "address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2"
                },
                {
                    "n": 4,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "99999250",
                    "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y"
                },
                {
                    "n": 5,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "25924",
                    "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y"
                }
            ],
            "vin": [
                {
                    "txid": "0x539084697cc220916cb5b16d2805945ec9f267aa004b6688fbf15e116c846aff",
                    "vout": 0
                },
                {
                    "txid": "0xaa2051096e7be45ed991279a1a4c2678eb886690829a2729f4caa82192ff7f34",
                    "vout": 0
                }
            ],
            "sys_fee": "0",
            "net_fee": "0",
            "scripts": [
                {
                    "invocation": "402c8f0bf6a29b31d80cd83cda130755201db865b9fa657b194dd06db75f300001433be9b213c33f058d8e8c3ae74ee78a34fde25e7a7a1cbc0869e72906e4791c",
                    "verification": "21031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4aac"
                }
            ]
        }

Show wallet:

Wallet {
    "path": "neo-privnet.wallet",
    "addresses": [
        {
            "version": 0,
            "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "script_hash": "e9eed8dc39332032dc22e5d6e86332c50327ba23",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "99999250.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "74529.9999"
            },
            "is_watch_only": false
        },
        {
            "version": 0,
            "address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2",
            "script_hash": "41e22d29dc542b715f939193c1deb3a1b52b4005",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "500.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "50.0"
            },
            "is_watch_only": false
        },
        {
            "version": 0,
            "address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP",
            "script_hash": "1cd4e70cd0feb53e69de1bb4d7dc8bc73d6bb259",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "250.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "100.0"
            },
            "is_watch_only": false
        }
    ],
    "height": 9377,
    "percent_synced": 100,
    "synced_balances": [
        "[NEO]: 100000000.0 ",
        "[NEOGas]: 74679.9999 "
    ],
    "public_keys": [
        {
            "Address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "Public Key": "031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a"
        },
        {
            "Address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2",
            "Public Key": "02f689ba01ae699211a501e0b25b739745e91b492b72af059954e61419ab82e8f5"
        },
        {
            "Address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP",
            "Public Key": "022db75d2918f62db034b921f5e5a7cb97d3f31421af899136063d260f03c2671b"
        }
    ],
    "tokens": [],
    "claims": {
        "available": "288.0",
        "unavailable": "16.0"
    }
}

Second tx:

{
            "txid": "0x714b5ef4b4b6923c3ae317818e19f64e45f08cf11aa6d1e009a7667b7135db13",
            "size": 539,
            "type": "ContractTransaction",
            "version": 0,
            "attributes": [
                {
                    "usage": 32,
                    "data": "23ba2703c53263e8d6e522dc32203339dcd8eee9"
                }
            ],
            "vout": [
                {
                    "n": 0,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "100",
                    "address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2"
                },
                {
                    "n": 1,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "75",
                    "address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2"
                },
                {
                    "n": 2,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "150",
                    "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y"
                },
                {
                    "n": 3,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "25",
                    "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y"
                }
            ],
            "vin": [
                {
                    "txid": "0xfd1fde961b4160019805edcd44b6de38177a219f794de97ac7a9a7dcae16b346",
                    "vout": 1
                },
                {
                    "txid": "0xfd1fde961b4160019805edcd44b6de38177a219f794de97ac7a9a7dcae16b346",
                    "vout": 2
                }
            ],
            "sys_fee": "0",
            "net_fee": "0",
            "scripts": [
                {
                    "invocation": "404511976d7be30676349d1d03b242b5d49ce443560e772bb86d5879ddd8b334392ebd50cef21698d250cad93debff25578f4adfa265432ded8adbba4c846feaa7",
                    "verification": "21022db75d2918f62db034b921f5e5a7cb97d3f31421af899136063d260f03c2671bac"
                },
                {
                    "invocation": "40f57d4c3d763f209f43abca52270351be0c0225bf6d8f82bdf3636536b96c948a502a5b48f70c4bec79cfc66a45f88a31e4358828965689b31717d8375ba1916d",
                    "verification": "21031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4aac"
                }
            ]
        }

Show wallet:

Wallet {
    "path": "neo-privnet.wallet",
    "addresses": [
        {
            "version": 0,
            "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "script_hash": "e9eed8dc39332032dc22e5d6e86332c50327ba23",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "99999400.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "74554.9999"
            },
            "is_watch_only": false
        },
        {
            "version": 0,
            "address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2",
            "script_hash": "41e22d29dc542b715f939193c1deb3a1b52b4005",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "600.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "125.0"
            },
            "is_watch_only": false
        },
        {
            "address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP",
            "script_hash": "59b26b3dc78bdcd7b41bde693eb5fed00ce7d41c",
            "tokens": null
        }
    ],
    "height": 9384,
    "percent_synced": 100,
    "synced_balances": [
        "[NEO]: 100000000.0 ",
        "[NEOGas]: 74679.9999 "
    ],
    "public_keys": [
        {
            "Address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "Public Key": "031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a"
        },
        {
            "Address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2",
            "Public Key": "02f689ba01ae699211a501e0b25b739745e91b492b72af059954e61419ab82e8f5"
        },
        {
            "Address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP",
            "Public Key": "022db75d2918f62db034b921f5e5a7cb97d3f31421af899136063d260f03c2671b"
        }
    ],
    "tokens": [],
    "claims": {
        "available": "288.00014",
        "unavailable": "71.99986"
    }
}

Third tx:

{
            "txid": "0x4ba107cd69bbfc1f065fcd472d7e1f59606e675773041fd8669a0354f4b2b24e",
            "size": 419,
            "type": "ContractTransaction",
            "version": 0,
            "attributes": [
                {
                    "usage": 32,
                    "data": "23ba2703c53263e8d6e522dc32203339dcd8eee9"
                }
            ],
            "vout": [
                {
                    "n": 0,
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "100",
                    "address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP"
                },
                {
                    "n": 1,
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "50",
                    "address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP"
                }
            ],
            "vin": [
                {
                    "txid": "0x714b5ef4b4b6923c3ae317818e19f64e45f08cf11aa6d1e009a7667b7135db13",
                    "vout": 0
                },
                {
                    "txid": "0xfd1fde961b4160019805edcd44b6de38177a219f794de97ac7a9a7dcae16b346",
                    "vout": 3
                }
            ],
            "sys_fee": "0",
            "net_fee": "0",
            "scripts": [
                {
                    "invocation": "40fa118883c0ca88d3dc7d3bb32b25338748687b801ba5bb5174aa89a45f1f50ae00f7ad799b766ab45d9d66e750a0ffae11079d36e0ac92b9ec95143fd28b270d",
                    "verification": "2102f689ba01ae699211a501e0b25b739745e91b492b72af059954e61419ab82e8f5ac"
                },
                {
                    "invocation": "4019093215a1becfdbb5863e16db6088af8c969e151fcd5d5ce7e5391fc661caf03d5f93aad0c1d65ed031bdc902e7e8c2327e4bcade413dd38276444a7693fc18",
                    "verification": "21031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4aac"
                }
            ]
        }
    ]
}

Show wallet:

[I 181012 15:51:40 UserWallet:484] Script hash b'#\xba\'\x03\xc52c\xe8\xd6\xe5"\xdc2 39\xdc\xd8\xee\xe9' <class 'bytes'>
[I 181012 15:51:40 UserWallet:484] Script hash b'\x05@+\xb5\xa1\xb3\xde\xc1\x93\x91\x93_q+T\xdc)-\xe2A' <class 'bytes'>
[I 181012 15:51:40 UserWallet:484] Script hash b'Y\xb2k=\xc7\x8b\xdc\xd7\xb4\x1b\xdei>\xb5\xfe\xd0\x0c\xe7\xd4\x1c' <class 'bytes'>
Wallet {
    "path": "neo-privnet.wallet",
    "addresses": [
        {
            "version": 0,
            "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "script_hash": "e9eed8dc39332032dc22e5d6e86332c50327ba23",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "99999400.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "74554.9999"
            },
            "is_watch_only": false
        },
        {
            "version": 0,
            "address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2",
            "script_hash": "41e22d29dc542b715f939193c1deb3a1b52b4005",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "500.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "75.0"
            },
            "is_watch_only": false
        },
        {
            "version": 0,
            "address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP",
            "script_hash": "1cd4e70cd0feb53e69de1bb4d7dc8bc73d6bb259",
            "frozen": false,
            "votes": [],
            "balances": {
                "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b": "100.0",
                "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7": "50.0"
            },
            "is_watch_only": false
        }
    ],
    "height": 9391,
    "percent_synced": 100,
    "synced_balances": [
        "[NEO]: 100000000.0 ",
        "[NEOGas]: 74679.9999 "
    ],
    "public_keys": [
        {
            "Address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "Public Key": "031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a"
        },
        {
            "Address": "AGFdu7qUpo2NwMuVFUb1UzUUi9b9HPnhq2",
            "Public Key": "02f689ba01ae699211a501e0b25b739745e91b492b72af059954e61419ab82e8f5"
        },
        {
            "Address": "APx9XLMceBewNHVvjagpvs34UsFShPJWqP",
            "Public Key": "022db75d2918f62db034b921f5e5a7cb97d3f31421af899136063d260f03c2671b"
        }
    ],
    "tokens": [],
    "claims": {
        "available": "288.000188",
        "unavailable": "127.999812"
    }
}

@ixje
Copy link
Member

ixje commented Jan 5, 2019

@jseagrave21 I can't seem to reproduce this on the refactor-prompt branch. Can you please also validate on that branch , to make sure I'm not doing it wrong.

I don't get the hidden account described here:

Try to use account to display the balance of the wallet that is now hidden and the address cannot be found

What I do know is;
show account will say Account xxx not found if we just created an empty address that has had no interactions yet (meaning; no funds have been send to it)

@jseagrave21
Copy link
Contributor Author

@ixje Okay, I will try to re-create it again. Only on the refactor-prompt branch now.

@jseagrave21
Copy link
Contributor Author

jseagrave21 commented Jan 5, 2019

While trying to re-create this issue, I have found that I am unable to use the sendmany function as before. I receive no errors, so I am unsure what is happening. Here is what I did. Please note the change in synced balances. If I try to send another transaction, I receive an "Insufficient Funds" error since I have no more available vouts:

neo> wallet address create 2
Created 2 new addresses: ['AbaLJUY2FRfSkuudHAveSKL2htoGp1ugbV', 'AWx79ueFWEd9Nc5jP99yeLRtQgNDaAPuRm']

neo> wallet
[I 190105 13:37:50 UserWallet:480] Script hash b'#\xba\'\x03\xc52c\xe8\xd6\xe5"\xdc2 39\xdc\xd8\xee\xe9' <class 'bytes'>
[I 190105 13:37:50 UserWallet:480] Script hash b'\xd93\xc6@\xa2L\xf3JL\xc9V\xfa\xd4\xd0\xc9\xe1\x95@\x84\xe0' <class 'bytes'>
[I 190105 13:37:50 UserWallet:480] Script hash b'\xa6yRNsR(;\x81:p\x86#Q\x1b\xa0\x13\xc2?D' <class 'bytes'>
Wallet {
    "path": "neo-privnet.wallet",
    "addresses": [
        {
            "version": 0,
            "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "script_hash": "e9eed8dc39332032dc22e5d6e86332c50327ba23",
            "frozen": false,
            "votes": [],
            "balances": [
                {
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "100000000.0"
                },
                {
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "16024.0"
                }
            ],
            "is_watch_only": false
        },
        {
            "address": "AbaLJUY2FRfSkuudHAveSKL2htoGp1ugbV",
            "script_hash": "d933c640a24cf34a4cc956fad4d0c9e1954084e0",
            "tokens": null
        },
        {
            "address": "AWx79ueFWEd9Nc5jP99yeLRtQgNDaAPuRm",
            "script_hash": "a679524e7352283b813a708623511ba013c23f44",
            "tokens": null
        }
    ],
    "height": 2013,
    "percent_synced": 100,
    "synced_balances": [
        "[NEO]: 100000000.0 ",
        "[NEOGas]: 16024.0 "
    ],
    "public_keys": [
        {
            "Address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "Public Key": "031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a"
        },
        {
            "Address": "AbaLJUY2FRfSkuudHAveSKL2htoGp1ugbV",
            "Public Key": "02c5f2741862553388dbaf40720cc11aff39b17a8abe5751f6e2e0fae221c5f320"
        },
        {
            "Address": "AWx79ueFWEd9Nc5jP99yeLRtQgNDaAPuRm",
            "Public Key": "03bc11c2769c736ade264845273567a695d82dee040588d70c77bb4c7e46359b8b"
        }
    ],
    "tokens": [],
    "claims": {
        "available": "0.0",
        "unavailable": "48.0"
    }
}

neo> wallet sendmany 4
Outgoing Number 1
Asset to send: neo
Address to: AbaLJUY2FRfSkuudHAveSKL2htoGp1ugbV
Amount to send: 500
Outgoing Number 2
Asset to send: gas
Address to: AbaLJUY2FRfSkuudHAveSKL2htoGp1ugbV
Amount to send: 100
Outgoing Number 3
Asset to send: neo
Address to: AWx79ueFWEd9Nc5jP99yeLRtQgNDaAPuRm
Amount to send: 250
Outgoing Number 4
Asset to send: gas
Address to: AWx79ueFWEd9Nc5jP99yeLRtQgNDaAPuRm
Amount to send: 50
sending with fee: 0.0
[Password]> ***
[I 190105 13:40:42 Transaction:619] Verifying transaction: b'bc2530f7705fc011ac28e234e548c4d01cd47b58aaac557604bd26fe4b763b2e'
Relayed Tx: bc2530f7705fc011ac28e234e548c4d01cd47b58aaac557604bd26fe4b763b2e

neo> show tx bc2530f7705fc011ac28e234e548c4d01cd47b58aaac557604bd26fe4b763b2e
Could not find transaction for hash bc2530f7705fc011ac28e234e548c4d01cd47b58aaac557604bd26fe4b763b2e

neo> wallet
[I 190105 13:41:33 UserWallet:480] Script hash b'#\xba\'\x03\xc52c\xe8\xd6\xe5"\xdc2 39\xdc\xd8\xee\xe9' <class 'bytes'>
[I 190105 13:41:33 UserWallet:480] Script hash b'\xd93\xc6@\xa2L\xf3JL\xc9V\xfa\xd4\xd0\xc9\xe1\x95@\x84\xe0' <class 'bytes'>
[I 190105 13:41:33 UserWallet:480] Script hash b'\xa6yRNsR(;\x81:p\x86#Q\x1b\xa0\x13\xc2?D' <class 'bytes'>
Wallet {
    "path": "neo-privnet.wallet",
    "addresses": [
        {
            "version": 0,
            "address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "script_hash": "e9eed8dc39332032dc22e5d6e86332c50327ba23",
            "frozen": false,
            "votes": [],
            "balances": [
                {
                    "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
                    "value": "100000000.0"
                },
                {
                    "asset": "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7",
                    "value": "16024.0"
                }
            ],
            "is_watch_only": false
        },
        {
            "address": "AbaLJUY2FRfSkuudHAveSKL2htoGp1ugbV",
            "script_hash": "d933c640a24cf34a4cc956fad4d0c9e1954084e0",
            "tokens": null
        },
        {
            "address": "AWx79ueFWEd9Nc5jP99yeLRtQgNDaAPuRm",
            "script_hash": "a679524e7352283b813a708623511ba013c23f44",
            "tokens": null
        }
    ],
    "height": 2025,
    "percent_synced": 100,
    "synced_balances": [
        "[NEO]: 0.0 ",
        "[NEOGas]: 0.0 "
    ],
    "public_keys": [
        {
            "Address": "AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y",
            "Public Key": "031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a"
        },
        {
            "Address": "AbaLJUY2FRfSkuudHAveSKL2htoGp1ugbV",
            "Public Key": "02c5f2741862553388dbaf40720cc11aff39b17a8abe5751f6e2e0fae221c5f320"
        },
        {
            "Address": "AWx79ueFWEd9Nc5jP99yeLRtQgNDaAPuRm",
            "Public Key": "03bc11c2769c736ade264845273567a695d82dee040588d70c77bb4c7e46359b8b"
        }
    ],
    "tokens": [],
    "claims": {
        "available": "0.0",
        "unavailable": "0.0"
    }
}

@jseagrave21
Copy link
Contributor Author

jseagrave21 commented Jan 10, 2019

@ixje on a fresh pull of the refactor-prompt branch, I was unable to reproduce the previously existing behavior. I really appreciated the changes in #796, which I could use to verify my expectations after the confirmation was confirmed. Also, I can verify that #801 was resolved by #803. I consider this issue resolved 🎉

@ixje
Copy link
Member

ixje commented Jan 10, 2019

Thanks for checking all that and reporting on it 💪

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

No branches or pull requests

2 participants