Author Topic: Problem setting up faucet TAPIN  (Read 274 times)

0 Members and 1 Guest are viewing this topic.

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
Problem setting up faucet TAPIN
« on: March 18, 2018, 10:51:00 pm »
Hi, i am using Tapin faucet to set up a testnet  but i get this error when i am trying to create a account

Message: 'Traceback (most recent call last):\n  File "/home/luks/bitshares/tapin/app/views.py", line 92, in tapbasic\n    additional_active_keys=config.get("additional_active_keys", []),\n  File "/home/luks/bitshares/tapin/src/bitshares/bitshares/bitshares.py", line 561, in create_account\n    active_key, prefix=self.prefix)\n  File "/home/luks/bitshares/tapin/src/bitshares/bitsharesbase/account.py", line 84, in __init__\n    super(PublicKey, self).__init__(*args, **kwargs)\n  File "/usr/local/lib/python3.5/dist-packages/graphenebase/account.py", line 216, in __init__\n    self._pk = Base58(pk, prefix=prefix)\n  File "/usr/local/lib/python3.5/dist-packages/graphenebase/base58.py", line 61, in __init__\n    raise ValueError("Error loading Base58 object")\nValueError: Error loading Base58 object\n'
Arguments: ()
2018-03-18 18:44:56,214 - app - ERROR - Traceback (most recent call last):
  File "/home/luks/bitshares/tapin/app/views.py", line 92, in tapbasic
    additional_active_keys=config.get("additional_active_keys", []),
  File "/home/luks/bitshares/tapin/src/bitshares/bitshares/bitshares.py", line 561, in create_account
    active_key, prefix=self.prefix)
  File "/home/luks/bitshares/tapin/src/bitshares/bitsharesbase/account.py", line 84, in __init__
    super(PublicKey, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/graphenebase/account.py", line 216, in __init__
    self._pk = Base58(pk, prefix=prefix)
  File "/usr/local/lib/python3.5/dist-packages/graphenebase/base58.py", line 61, in __init__
    raise ValueError("Error loading Base58 object")
ValueError: Error loading Base58 object

127.0.0.1 - - [18/Mar/2018 18:44:56] "POST /api/v1/accounts HTTP/1.1" 200 -



Any help please

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Problem setting up faucet TAPIN
« Reply #1 on: March 21, 2018, 10:44:58 pm »
Any help, please!!!

Thanks

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12523
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Problem setting up faucet TAPIN
« Reply #2 on: March 22, 2018, 07:01:00 am »
That error tells me you'r public keys have a wrong format.
Are you running on BitShares? What's your config looking like?
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Problem setting up faucet TAPIN
« Reply #3 on: March 22, 2018, 04:28:55 pm »
That error tells me you'r public keys have a wrong format.
Are you running on BitShares? What's your config looking like?

Hi xeroc, i am running a testnet.
This is my config.yml file

Code: [Select]
secret_key: "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"  # Random keys
nobroadcast: True            # Safety mode

mail_host: "SERVER:589"
mail_user: "user"
mail_pass: "password"
mail_from: "[email protected]"

admins:
 - [email protected]
 - [email protected]

minIPAge: 300  # How long in secs does an IP need to wait to register a new account?
witness_url: "ws://127.0.0.1:8090"

registrar: "luks"
default_referrer: "luks"
referrer_percent: 50  # in percent
wif: "xxxxxxxxxxxxxxxxxxxxxxxxxxx"

balance_mailthreshold: 500  # if balances goes below this, you will be notified

prefix: "NPY"
chain:
 chain_id: "2e70810ddbefcb2bd523d9ce93f7ef100db99168b84023e0181b28fc1489e8d6"
 core_symbol: "NPY"
 prefix: "NPY"

core_asset: "NPY"
donation_amount: 10000
donation_asset: "NPY"

Thanks for your answer, is a big help!!!

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12523
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Problem setting up faucet TAPIN
« Reply #4 on: March 23, 2018, 09:25:48 am »
the faucet has been written specifically for bitshares and the testnet (or more precisely, using pybitshares)
It cannot simply hook into a different blockchain because it needs to know the chain id and prefix of the blockchain it connects to.
see:
https://github.com/xeroc/python-bitshares/blob/develop/bitsharesbase/chains.py
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Problem setting up faucet TAPIN
« Reply #5 on: March 23, 2018, 05:46:54 pm »
the faucet has been written specifically for bitshares and the testnet (or more precisely, using pybitshares)
It cannot simply hook into a different blockchain because it needs to know the chain id and prefix of the blockchain it connects to.
see:
https://github.com/xeroc/python-bitshares/blob/develop/bitsharesbase/chains.py

hi xeroc, i realize about that file about two weeks ago and made that change, but the error persists

this is my chains.py file

Code: [Select]
known_chains = {
    "NPY": {
        "chain_id": "2e70810ddbefcb2bd523d9ce93f7ef100db99168b84023e0181b28fc1489e8d6",
        "core_symbol": "NPY",
        "prefix": "NPY"},
}


Any thing else i could try?

thanks in advance
« Last Edit: March 23, 2018, 11:36:25 pm by luks33 »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12523
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Problem setting up faucet TAPIN
« Reply #6 on: March 24, 2018, 12:44:15 pm »
I believe to make this work, the wallet-ui needs modifications too in order to format the pubkeys with the proper prefix. Else, the ui would try to crrate accoubt and provide illpresented pubkeys
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Problem setting up faucet TAPIN
« Reply #7 on: March 30, 2018, 08:38:43 pm »
I believe to make this work, the wallet-ui needs modifications too in order to format the pubkeys with the proper prefix. Else, the ui would try to crrate accoubt and provide illpresented pubkeys

Thank you very much xeroc, you point me in the right direction, i got it working now