mirror of https://github.com/nucypher/nucypher.git
use random worker private key in manual worker fixture; remove stale script.
parent
69770979ca
commit
57df8069a4
|
@ -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
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue