Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

dashmnb error

Discussion in 'Electrum Wallet Guides' started by camosoul, Mar 14, 2017.

  1. camosoul

    camosoul Well-known Member

    Joined:
    Sep 19, 2014
    Messages:
    1,956
    Likes Received:
    1,088
    Trophy Points:
    183
    Code:
    Network : MAINNET
    --> get dash explorer block count
    --> get remotesvc status
    
    --> checking syncing status
    
    -> protocolv : 70206
    -> blockcnt  : 636224
    -> blockhash : 00000000000004c1c6699d0545ed13e8fb092ad2cb8de7a0670cc660ce82405c
    
    
    ===> trezor HW Wallet found
    ---> get address from hw wallet : NN
    ---> processing ████████████████████████████████ 100%
    
    ---> checking masternode config using masternode.conf ....
        masternode : [ALIAS]
    
    
        version  : 0.4.rc1
        caller   : parse_masternode_conf
        function : check_collateral_in_chain_pubkey
        ===> collateral_address XnoybNOYBnoybNOYBnoybNOYBnoybNOYB1
        not in bip32 path(ex: Passphrase err) : [ALIAS]
    1) never asked for a passphrase.
    2) there isn't one.

    Same thing happens no matter which account I set, which makes me think this might be failing to handle no-password situations.

    Unit works perfectly in electrum-dash and wallet.trezor.io

    Maybe I'm just not understanding the directions.

    [​IMG]
     
    #1 camosoul, Mar 14, 2017
    Last edited: Mar 14, 2017
  2. chaeplin

    chaeplin Official Dash Dev
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    355
    Trophy Points:
    133
    Dash Address:
    XiDWe5fkVcrXBQApmCFQUxpue5iuWcbmcK
    go git pull and do python bin/tool-for-config.py 0 1 2
    Code:
    cd dashmnb
    git pull
    . venv3/bin/activate
    python bin/tool-for-config.py 0 1 2
    
    Code:
    bin/tool-for-config.py
    tool to check multiple account, when not sure account_no ?
    1) first edit config.py
    edit TYPE_HW_WALLET
    
    2) close config.py
    
    3) run bin/tool-for-config.py (0 1 2 —> check account 0/1/2)
    cd dashmnb
    . venv3/bin/activate
    python bin/tool-for-config.py 0 1 2
    
    —> will show 15 address / balance per account
    
    
    XnoybNOYBnoybNOYBnoybNOYBnoybNOYB1 is configured on masternode.conf, but has tx.

    https://chainz.cryptoid.info/dash/search.dws?q=XnoybNOYBnoybNOYBnoybNOYBnoybNOYB1

    check masternode.conf also.
     
  3. camosoul

    camosoul Well-known Member

    Joined:
    Sep 19, 2014
    Messages:
    1,956
    Likes Received:
    1,088
    Trophy Points:
    183
    They're definitely on account 1.
    Code:
    (venv3) [email protected]:~/dashmnb/bin$ python tool-for-config.py 1
    
                by : chaeplin
    
    Network : MAINNET
    ===> trezor HW Wallet found
    **** ====> account_no : 1
    Dash address: 44'/5'/1'/0/0        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/1        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/2        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/3        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/4        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/5        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/6        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/7        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/8        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/9        X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/10       X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/11       X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/12       X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/13       X[redacted]    0.00000000
    Dash address: 44'/5'/1'/0/14       X[redacted] 1000.00000000 <--THIS ADDRESS MATCHES
    Dash address: 44'/5'/1'/0/15       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/16       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/17       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/18       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/19       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/20       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/21       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/22       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/23       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/24       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/25       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/26       X[redacted] 1000.00000000
    Dash address: 44'/5'/1'/0/27       X[redacted] 1000.00000000
    etc...
    
    It starts at 14 for some reason... This was a freshly wiped Trezor. Odd.

    I had to edit the max_gab to see them all.

    I checked masternode.conf for alias/mnprivkey/address/txid/index. All are accurate.
    Code:
    Dash address: 44'/5'/1'/0/14 XnoybNOYBnoybNOYBnoybNOYBnoybNOYB1 1000.00000000 <--THIS ADDRESS MATCHES
    then
    Code:
       version  : 0.4.rc1
       caller   : parse_masternode_conf
       function : check_collateral_in_chain_pubkey
       ===> collateral_address XnoybNOYBnoybNOYBnoybNOYBnoybNOYB1 <--THIS ADDRESS MATCHES
       not in bip32 path(ex: Passphrase err) : [ALIAS]
    It enumerates the address and finds the balance in the first command.

    Then, in the next command, it finds the address via TXID lookup, but then claims it can't find it in the BIP32 enumeration... Even though it just did it in the previous command.

    Maybe the second command is giving up without looking far enough? How do I change that value?
     
    #3 camosoul, Mar 14, 2017
    Last edited: Mar 14, 2017
  4. chaeplin

    chaeplin Official Dash Dev
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    355
    Trophy Points:
    133
    Dash Address:
    XiDWe5fkVcrXBQApmCFQUxpue5iuWcbmcK
    change max_gab to last number of x : 44'/5'/1'/0/x , holding 1K.

    now time to check txid and vout of masternode.conf.

    if error like this
    Code:
        function : check_collateral_in_chain_pubkey
        ===> collateral_address XnoybNOYBnoybNOYBnoybNOYBnoybNOYB1
        not in bip32 path(ex: Passphrase err) : [ALIAS]
    this means collateral_address in masternode.conf don't match any address found in hw wallet path(extracted from txid and vout).


    possible senario

    1) if you use passphrase --> check again
    2) check dashd whether correctly configured and indexed
    3) use
    python tool-for-config.py 1 | grep XnoybNOYBnoybNOYBnoybNOYBnoybNOYB1
    to check XnoybNOYBnoybNOYBnoybNOYBnoybNOYB1 is in hw wallet path..
     
  5. camosoul

    camosoul Well-known Member

    Joined:
    Sep 19, 2014
    Messages:
    1,956
    Likes Received:
    1,088
    Trophy Points:
    183
    That's the problem. It is there. It does match. But, then it says it's not there...

    dashmnb.py does not contain a max_gab variable. I can't make it "look further." I can do that with the other scripts, but dashmnb.py doesn't have that option.

    When I search for the error string, it's not there, either... It's coming from something else called by the script. I don't know how to figure that out.
     
    #5 camosoul, Mar 14, 2017
    Last edited: Mar 14, 2017
  6. chaeplin

    chaeplin Official Dash Dev
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    355
    Trophy Points:
    133
    Dash Address:
    XiDWe5fkVcrXBQApmCFQUxpue5iuWcbmcK
    config.py has max_gab also, change this to like 100.

    dashmnb extract addresses from hw wallet as many configured in max_gab.
     
    #6 chaeplin, Mar 14, 2017
    Last edited: Mar 14, 2017
  7. camosoul

    camosoul Well-known Member

    Joined:
    Sep 19, 2014
    Messages:
    1,956
    Likes Received:
    1,088
    Trophy Points:
    183
    Out of frustration I just hit [up-arrow] [enter] a lot, running it over and over.

    After approx 40 tries, it decided to work. Changed nothing...

    [shrugs] Whatever. It works now. Welcome to my world...

    dashmnb.py -mx to send payouts according to the values in config.py?
     
    • Agree Agree x 1
  8. chaeplin

    chaeplin Official Dash Dev
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    355
    Trophy Points:
    133
    Dash Address:
    XiDWe5fkVcrXBQApmCFQUxpue5iuWcbmcK
    -m : just making tx
    -x : making tx and send
    -w whalemode added. -x -w will do yes on transaction. -a -w will anonunce all missing mns without asking. can do -a mnalias1 -w also :

    use -x mnalias1 -w or -x -w
     
    #8 chaeplin, Mar 15, 2017
    Last edited: Mar 19, 2017
    • Like Like x 2
  9. daviddeeluk

    daviddeeluk New Member

    Joined:
    May 10, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Had the same problem! Thanks for help
     
  10. knowbi

    knowbi New Member

    Joined:
    May 31, 2018
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Thank you guys
     

Share This Page