Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
🔀 Merge branch 'release/2.0.0' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Sep 25, 2023
2 parents 852c6e8 + beffc7c commit 39e27a0
Show file tree
Hide file tree
Showing 31 changed files with 897 additions and 919 deletions.
24 changes: 3 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The following system requirements are recommended to run Lisk Migrator v2.0.0:

#### Memory

- Machines with a minimum of 16 GB RAM.
- Machines with a minimum of 4 GB RAM.

#### Storage

Expand All @@ -39,27 +39,9 @@ The following system requirements are recommended to run Lisk Migrator v2.0.0:

Follow our Lisk Documentation guide for [setting up the Lisk migrator](https://lisk.com/documentation/lisk-core/management/migration.html#setting-up-the-lisk-migrator).

### From NPM

<!-- usage -->

```sh-session
$ npm install -g lisk-migrator
$ lisk-migrator COMMAND
running command...
$ lisk-migrator (-v|--version|version)
lisk-migrator/2.0.0-rc.0 darwin-arm64 node-v18.16.1
$ lisk-migrator --help [COMMAND]
USAGE
$ lisk-migrator COMMAND
...
```

<!-- usagestop -->

### Build Distributions (Linux, Darwin) from source

Clone the Lisk Core repository using Git and initialize the modules.
Clone the Lisk Migrator repository using Git and initialize the modules.

<!-- build -->

Expand Down Expand Up @@ -107,7 +89,7 @@ The [migration guide](./docs/migration.md) explains the transition process from

## License

Copyright 2016-2023 Lisk Foundation
Copyright 2016-2024 Lisk Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
28 changes: 12 additions & 16 deletions config/mainnet/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
"modes": ["ipc", "ws"],
"port": 7887,
"host": "127.0.0.1",
"allowedMethods": []
"allowedMethods": ["generator", "system", "random"]
},
"genesis": {
"block": {
"fromFile": "./config/genesis_block.blob"
},
"blockTime": 10,
"bftBatchSize": 103,
"chainID": "00000000",
"maxTransactionsSize": 15360,
"minimumCertifyHeight": 1
Expand All @@ -25,46 +24,46 @@
"seedPeers": [
{
"ip": "mainnet-seed-01.lisk.com",
"port": 8001
"port": 7667
},
{
"ip": "mainnet-seed-02.lisk-nodes.net",
"port": 8001
"port": 7667
},
{
"ip": "mainnet-seed-03.lisk.com",
"port": 8001
"port": 7667
},
{
"ip": "mainnet-seed-04.lisk-nodes.net",
"port": 8001
"port": 7667
},
{
"ip": "mainnet-seed-05.lisk.com",
"port": 8001
"port": 7667
},
{
"ip": "mainnet-seed-06.lisk-nodes.net",
"port": 8001
"port": 7667
},
{
"ip": "mainnet-seed-07.lisk.com",
"port": 8001
"port": 7667
},
{
"ip": "mainnet-seed-08.lisk-nodes.net",
"port": 8001
"port": 7667
},
{
"ip": "mainnet-seed-09.lisk.com",
"port": 8001
"port": 7667
},
{
"ip": "mainnet-seed-10.lisk-nodes.net",
"port": 8001
"port": 7667
}
],
"port": 8001
"port": 7667
},
"transactionPool": {
"maxTransactions": 4096,
Expand All @@ -86,9 +85,6 @@
"pos": {
"maxBFTWeightCap": 1000,
"useInvalidBLSKey": true
},
"token": {
"feeTokenID": "0000000000000000"
}
},
"plugins": {}
Expand Down
20 changes: 8 additions & 12 deletions config/testnet/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,42 @@
"modes": ["ipc", "ws"],
"port": 7887,
"host": "127.0.0.1",
"allowedMethods": []
"allowedMethods": ["generator", "system", "random"]
},
"genesis": {
"block": {
"fromFile": "./config/genesis_block.blob"
},
"blockTime": 10,
"bftBatchSize": 103,
"chainID": "01000000",
"maxTransactionsSize": 15360,
"minimumCertifyHeight": 1
"minimumCertifyHeight": 26689155
},
"network": {
"version": "4.0",
"seedPeers": [
{
"ip": "testnet-seed-01.lisk.com",
"port": 7001
"port": 7667
},
{
"ip": "testnet-seed-02.lisk-nodes.net",
"port": 7001
"port": 7667
},
{
"ip": "testnet-seed-03.lisk.com",
"port": 7001
"port": 7667
},
{
"ip": "testnet-seed-04.lisk-nodes.net",
"port": 7001
"port": 7667
},
{
"ip": "testnet-seed-05.lisk.com",
"port": 7001
"port": 7667
}
],
"port": 7001
"port": 7667
},
"transactionPool": {
"maxTransactions": 4096,
Expand All @@ -66,9 +65,6 @@
"pos": {
"maxBFTWeightCap": 1000,
"useInvalidBLSKey": true
},
"token": {
"feeTokenID": "0100000000000000"
}
},
"plugins": {}
Expand Down
4 changes: 3 additions & 1 deletion docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This section explains how to migrate a Lisk Core v3.0.4 (or later) node to Lisk
The Lisk Migrator CLI tool will generate a new genesis (snapshot) block for Lisk Core v4.x.
The new genesis block is created based on a snapshot of the existing blockchain (running on Lisk Core v3.0.4+) at a pre-determined height.

Lisk Migrator automatically exports the node's Forging Status information to the file named `forgingStatus.json` under the output directory. In case, Lisk Migrator is unable to save to the disk, as a fallback, the Forging Status information is logged to the standard output.

<!--
> Note: Please ensure that the file name and the checksum filename are the same, whereby the checksum file has an additional extension (lisk-migrator-v2.0.0.tar.gz, and will have a checksum file by the name of lisk-migrator-v2.0.0.tar.gz.SHA256), and are present in the same directory.
Expand Down Expand Up @@ -80,11 +82,11 @@ FLAGS
-d, --lisk-core-v3-data-path=lisk-core-v3-data-path Path where the lisk-core v3.x instance is running. Current home directory will be considered the default if not provided.
-h, --help Shows CLI help.
-o, --output=output File path to write the genesis block json. If not provided, it will default to cwd/genesis_block.json.
-p, --page-size Maximum number of blocks to be iterated at once for computation. Default to 100000.
-s, --snapshot-height=snapshot-height (Required) The height at which the re-genesis block will be generated. Can be specified with the SNAPSHOT_HEIGHT as well.
-v, --version Shows the CLI version.
--auto-migrate-config Migrate user configuration automatically. Default to false.
--auto-start-lisk-core-v4 Start lisk-core v4 automatically. Default to false.
--snapshot-time-gap=snapshot-time-gap The number of seconds elapsed between the block at height HEIGHT_SNAPSHOT and the snapshot block.
EXAMPLES
lisk-migrator --snapshot-height 20931763 --lisk-core-path /path/to/data-dir
Expand Down
112 changes: 0 additions & 112 deletions package.json

This file was deleted.

Loading

0 comments on commit 39e27a0

Please sign in to comment.