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

0 Members and 1 Guest are viewing this topic.

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
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: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
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: "noreply@faucet.org"

admins:
 - adminA@example.com
 - adminB@example.com

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: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
That error tells me you'r public keys have a wrong format.
Are you running on BitShares? What's your config looking like?

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
Any help, please!!!

Thanks

Offline luks33

  • Newbie
  • *
  • Posts: 5
    • View Profile
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