Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sapphire-dev: deposit test mnemonic, core-22.2.11, optionally use single compute note #413

Merged
merged 3 commits into from
Aug 16, 2023

Conversation

CedarMist
Copy link
Member

@CedarMist CedarMist commented Aug 14, 2023

This makes 4 changes:

  • Increase number of tokens to 100,000 in oasis-deposit
  • Add -test-mnemonic flag to oasis-deposit which uses the test test test ... junk mnemonic
    • This addresses a problem I was having with CI in sapphire-paratime, couldn't get the -to flag working with a mnemonic via GitHub workflow (no combination of quoting or escaping would let me pass a quoted parameter with spaces in it!)
  • Upgrade to Oasis Core 22.2.11
  • Use a single compute node by default when running sapphire-dev (reduces CPU usage)

Additionally there was some weirdness with PostgreSQL I had when building the sapphire-dev container that I didn't have early last week and was unable to find the root cause. After installing the postgresql package some of the permissions were wrong which prevented it from starting. Running chown wouldn't persist across RUN statements, meaning I had to prefix the /etc/init.d/postgresql start command with chown, and then run it again in start.sh upon startup. I'm using Docker 20.10.25-0ubuntu1~22.04.1.

Re #411: using 1 compute node instead of 2 doesn't significantly affect startup time, but it does help battery life. Am still (slowly) investigating idle CPU usage and startup time (wait-node)

The startup process now looks like:

docker run --rm -it -p8545:8545 -p8546:8546 ghcr.io/oasisprotocol/sapphire-dev:local -test-mnemonic
sapphire-dev local (oasis-core: 22.2.11, sapphire-paratime: 0.5.2, oasis-web3-gateway: 3.3.0-git0d09728+dirty)

 * Starting oasis-net-runner with sapphire
 * Starting PostgreSQL 14 database server                                                                             [ OK ] 
 * Starting oasis-web3-gateway
 * Bootstrapping network (this might take a minute)...
 * Populating accounts

Available Accounts
==================
(0) 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 (100000 TEST)
(1) 0x70997970C51812dc3A010C7d01b50e0d17dc79C8 (100000 TEST)
(2) 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC (100000 TEST)
(3) 0x90F79bf6EB2c4f870365E785982E1f101E93b906 (100000 TEST)
(4) 0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65 (100000 TEST)

Private Keys
==================
(0) 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
(1) 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
(2) 0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a
(3) 0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6
(4) 0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a

HD Wallet
==================
Mnemonic:	test test test test test test test test test test test junk
Base HD Path:	m/44'/60'/0'/0/%d

WARNING: The chain is running in ephemeral mode. State will be lost after restart!

Listening on http://localhost:8545 and ws://localhost:8546

@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #413 (60cdea7) into main (8e2d308) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #413   +/-   ##
=======================================
  Coverage   60.02%   60.02%           
=======================================
  Files          37       37           
  Lines        4040     4040           
=======================================
  Hits         2425     2425           
  Misses       1406     1406           
  Partials      209      209           

@CedarMist CedarMist force-pushed the CedarMist/oasis-deposit-mnemonic branch from 0d09728 to cc1a6a9 Compare August 14, 2023 12:21
@CedarMist CedarMist force-pushed the CedarMist/oasis-deposit-mnemonic branch from cc1a6a9 to a9d00bb Compare August 14, 2023 12:26
tests/tools/spinup-oasis-stack.sh Outdated Show resolved Hide resolved
@CedarMist CedarMist force-pushed the CedarMist/oasis-deposit-mnemonic branch from 9cc1d6c to 60cdea7 Compare August 16, 2023 14:09
@CedarMist CedarMist merged commit f234143 into main Aug 16, 2023
6 checks passed
@CedarMist CedarMist deleted the CedarMist/oasis-deposit-mnemonic branch August 16, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants