use random worker private key in manual worker fixture; remove stale script.

pull/1493/head
Kieran R. Prasch 2019-12-03 21:04:59 -08:00
parent 69770979ca
commit 57df8069a4
2 changed files with 1 additions and 25 deletions

View File

@ -1,24 +0,0 @@
#!/usr/bin/env bash
rm -rf ~/.local/share/nucypher
# Set Upgrade Secrets
export NUCYPHER_STAKING_ESCROW_SECRET='debuggerdebugger'
export NUCYPHER_POLICY_MANAGER_SECRET='debuggerdebugger'
export NUCYPHER_USER_ESCROW_PROXY_SECRET='debuggerdebugger'
export NUCYPHER_ADJUDICATOR_SECRET='debuggerdebugger'
# Deploy Main Contracts
nucypher-deploy contracts --provider ipc:///tmp/geth.ipc --poa
# Set Ursula Password
export NUCYPHER_KEYRING_PASSWORD='debuggerdebuggerdebugger'
# Initialize New Ursula
nucypher ursula init --provider ipc:///tmp/geth.ipc --poa --network TEMPORARY_DOMAIN --rest-host 0.0.0.0
# Inline Staking
nucypher ursula stake --value 15000 --lock_periods 30 --force
# View Active Stakes
nucypher ursula stake --list

View File

@ -765,7 +765,7 @@ def manual_staker(testerchain, agency):
@pytest.fixture(scope='module')
def manual_worker(testerchain):
worker_private_key = '4115115f4159db59a06327aa29544c417c52ddb80a4a26517367ff4514e0f694'
worker_private_key = os.urandom(32).hex()
address = testerchain.provider.ethereum_tester.add_account(worker_private_key,
password=INSECURE_DEVELOPMENT_PASSWORD)