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

Add a testnet boot script by python #31

Merged

Conversation

aquarius-kuchain
Copy link
Contributor

@aquarius-kuchain aquarius-kuchain commented Aug 13, 2020

Summary

Add a testnet boot script by python, this can help to test.

Introduction

In boot script bash script, it can only boot a chain in one node, and it has not much way to extend.
So we add a script by python to boot a testnet, it can be use to test for user, and also as the base of some unittest script.

Usage

./boot-testnet.py -h
usage: boot-testnet.py [-h] [--build-path] [--home] [--trace] [--log-level]
                       [--node-num] [--wallet-only]

optional arguments:
  -h, --help     show this help message and exit
  --build-path   Kuchain build path
  --home         testnet data home path
  --trace        if --trace to kucd
  --log-level    log level for kucd
  --node-num     val node number

node-num can select the num of node it boot.

all of the files for chain will put into --home path.

TODO

In Next version, we will add some more params to script used by some other script for test.

Now the script not support stop and restart testnet, next step we will add it.

Modifys

  • add boot-testnet.py

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch
  • Linked to Github issue with discussion.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@aquarius-kuchain aquarius-kuchain self-assigned this Aug 13, 2020
@aquarius-kuchain aquarius-kuchain merged commit d218adb into KuChainNetwork:develop Aug 13, 2020
@aquarius-kuchain aquarius-kuchain deleted the scripts/boot branch September 15, 2020 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant