Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

instantseal password empty & chainname ignored #58

Closed
drandreaskrueger opened this issue Sep 4, 2018 · 4 comments
Closed

instantseal password empty & chainname ignored #58

drandreaskrueger opened this issue Sep 4, 2018 · 4 comments
Assignees

Comments

@drandreaskrueger
Copy link

thorough cleaning:

docker-compose down -v
docker rm $(docker ps -a -q); docker rmi $(docker images -q)
sudo rm -rf data/ deployment/ docker-compose.yml
sudo ./clean.sh 

there is a password created:

./parity-deploy.sh --config dev --name instantseal
cat  deployment/is_authority/password 

results in

s4LKh0oCw4jH1g1n

but then something's wrong:

docker-compose up

./deploy.py 
...
Traceback (most recent call last):
  File "./deploy.py", line 136, in <module>
    deployTheContract(contract_source_file=CONTRACT_SOURCE)
  File "./deploy.py", line 105, in deployTheContract
    print ("unlock: ", unlockAccount())
  File "/home/akrueger/Documents/Code/gitlab/electronDLT/chainhammer/clienttools.py", line 94, in unlockAccount
    duration=duration)
  File "/home/akrueger/Documents/Code/envs/py3eth/lib/python3.5/site-packages/web3/personal.py", line 43, in unlockAccount
    [account, passphrase, duration],
  File "/home/akrueger/Documents/Code/envs/py3eth/lib/python3.5/site-packages/web3/manager.py", line 110, in request_blocking
    raise ValueError(response["error"])

ValueError: {'code': -32023, 'data': 'InvalidPassword', 'message': 'Unable to unlock the account.'}

found it out like this

geth attach http://localhost:8545
Welcome to the Geth JavaScript console!

instance: Parity//v1.11.10-stable-31720e6-20180830/x86_64-linux-gnu/rustc1.28.0
coinbase: 0x00a329c0648769a73afac7f9381e08fb43dbea72
at block: 0 (Thu, 01 Jan 1970 01:00:00 BST)
 modules: eth:1.0 net:1.0 parity:1.0 parity_accounts:1.0 parity_set:1.0 personal:1.0 rpc:1.0 signer:1.0 traces:1.0 web3:1.0

> personal.unlockAccount(eth.accounts[0])
Unlock account 0x00a329c0648769a73afac7f9381e08fb43dbea72
Passphrase: 
true

instead of "s4LKh0oCw4jH1g1n", the password is ""

@drandreaskrueger drandreaskrueger changed the title instantseal password empty instantseal password empty & chainname ignored Sep 4, 2018
@drandreaskrueger
Copy link
Author

also

./parity-deploy.sh --config dev --name instantseal

but then the chain is instead called developmentchain:

nodeName: Parity, nodeType: Parity, consensus: ???, network: 17, chainName: developmentchain, chainId: 17

see https://gitlab.com/electronDLT/chainhammer/blob/master/parity.md#run-8-instantseal

@ddorgan ddorgan self-assigned this Sep 11, 2018
@ddorgan
Copy link
Collaborator

ddorgan commented Sep 17, 2018

@drandreaskrueger Yes with the --dev chain the account password will be blank ... this is expected.

@drandreaskrueger
Copy link
Author

then better don't generate an invalid password, no?

@ddorgan
Copy link
Collaborator

ddorgan commented Sep 19, 2018

davidd@ThinkPad-S3-S440:/tmp$ git clone git@github.com:paritytech/parity-deploy.git
Cloning into 'parity-deploy'...
remote: Counting objects: 704, done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 704 (delta 24), reused 38 (delta 11), pack-reused 640
Receiving objects: 100% (704/704), 10.70 MiB | 5.40 MiB/s, done.
Resolving deltas: 100% (350/350), done.
cd pdavidd@ThinkPad-S3-S440:/tmp$ cd parity-deploy/
davidd@ThinkPad-S3-S440:/tmp/parity-deploy$ ./parity-deploy.sh --config dev 
using instantseal
davidd@ThinkPad-S3-S440:/tmp/parity-deploy$ cat deployment/is_authority/password 

davidd@ThinkPad-S3-S440:/tmp/parity-deploy$ 

@ddorgan ddorgan closed this as completed Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants