Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ witness_node_data_dir

Testing/*
build.tar.gz
build/*
# build/*
build-debug/*

etc/eosio/node_*
Expand Down
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ubuntu:18.04
COPY . /DreamchainCore
# COPY ./build/1.8/ /eosio/1.8
# COPY ./scripts/cdt/ /eosio/cdt
RUN apt update
RUN apt install git curl -y
RUN /DreamchainCore/scripts/eosio_build.sh -y
RUN /DreamchainCore/scripts/eosio_install.sh

# ENV PATH="/eosio/1.8/bin:${PATH}"
# ENV PATH="/eosio/cdt/build:${PATH}"


ENV PATH="~eosio/1.8/bin:${PATH}"
ENV PATH="/DreamchainCore/scripts/cdt/build:${PATH}"
178 changes: 99 additions & 79 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,112 +1,132 @@
# Dreamchain

# EOSIO - The Most Powerful Infrastructure for Decentralized Applications
Welcome to the Dreamchain source code repository! This project enables you to take part in Dreamchain blockchain network. It is a fork of eosio software.

[![Build status](https://badge.buildkite.com/370fe5c79410f7d695e4e34c500b4e86e3ac021c6b1f739e20.svg?branch=master)](https://buildkite.com/EOSIO/eosio)
## Instructions

Welcome to the EOSIO source code repository! This software enables businesses to rapidly build and deploy high-performance and high-security blockchain-based applications.
### Running natively

Some of the groundbreaking features of EOSIO include:
1. Clone this repo

1. Free Rate Limited Transactions
1. Low Latency Block confirmation (0.5 seconds)
1. Low-overhead Byzantine Fault Tolerant Finality
1. Designed for optional high-overhead, low-latency BFT finality
1. Smart contract platform powered by WebAssembly
1. Designed for Sparse Header Light Client Validation
1. Scheduled Recurring Transactions
1. Time Delay Security
1. Hierarchical Role Based Permissions
1. Support for Biometric Hardware Secured Keys (e.g. Apple Secure Enclave)
1. Designed for Parallel Execution of Context Free Validation Logic
1. Designed for Inter Blockchain Communication
```
git clone git@github.com:Dreamchain-org/DreamChainCore.git
```

EOSIO is released under the open source MIT license and is offered “AS IS” without warranty of any kind, express or implied. Any security provided by the EOSIO software depends in part on how it is used, configured, and deployed. EOSIO is built upon many third-party libraries such as WABT (Apache License) and WAVM (BSD 3-clause) which are also provided “AS IS” without warranty of any kind. Without limiting the generality of the foregoing, Block.one makes no representation or guarantee that EOSIO or any third-party libraries will perform as intended or will be free of errors, bugs or faulty code. Both may fail in large or small ways that could completely or partially limit functionality or compromise computer systems. If you use or implement EOSIO, you do so at your own risk. In no event will Block.one be liable to any party for any damages whatsoever, even if it had been advised of the possibility of damage.
2. enter the folder

Block.one is neither launching nor operating any initial public blockchains based upon the EOSIO software. This release refers only to version 1.0 of our open source software. We caution those who wish to use blockchains built on EOSIO to carefully vet the companies and organizations launching blockchains based on EOSIO before disclosing any private keys to their derivative software.
```
cd DreamChainCore
```

There is no public testnet running currently.
3. Build the core using a prebuilt script file located in scrips folder

---
```
./scripts/eosio_build.sh
```

**If you used our build scripts to install eosio, [please be sure to uninstall](#build-script-uninstall) before using our packages.**
4. Install the core using a prebuilt script file located in scrips folder

---
```
./scripts/eosio_install.sh
```

#### Mac OS X Brew Install
```sh
$ brew tap eosio/eosio
$ brew install eosio
5. For uninstalling

```
./scripts/eosio_uninstall.sh
```
#### Mac OS X Brew Uninstall
```sh
$ brew remove eosio

6. To run the node

```
./scripts/node/automated_start.sh arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8

arg1 - public key of the node (must be created prior to this step)
arg2 - private key of the node(must be created prior to this step)
arg3 - account name (must be created prior to this step)
arg4 - nodeos running port (default:8888)
arg5 - p2p listening port (default:9010)
arg6 - ip address of another working node with its p2p port
arg7 - ip address of another working node with its p2p port
arg8 - ip address of another working node with its p2p port

```

#### Ubuntu 18.04 Package Install
```sh
$ wget https://github.com/eosio/eos/releases/download/v1.8.6/eosio_1.8.6-1-ubuntu-18.04_amd64.deb
$ sudo apt install ./eosio_1.8.6-1-ubuntu-18.04_amd64.deb
All the arguments are mandatory.

7. If the node stoped working with a log - "hard restart required", please run the following command to restart the node

```
#### Ubuntu 16.04 Package Install
```sh
$ wget https://github.com/eosio/eos/releases/download/v1.8.6/eosio_1.8.6-1-ubuntu-16.04_amd64.deb
$ sudo apt install ./eosio_1.8.6-1-ubuntu-16.04_amd64.deb
./scripts/node/hard_start.sh arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8

arg1 - public key of the node (must be of the stopped node)
arg2 - private key of the node(must be of the stopped node)
arg3 - account name (must be of the stopped node)
arg4 - nodeos running port (default:8888)
arg5 - p2p listening port (default:9010)
arg6 - ip address of another working node with its p2p port
arg7 - ip address of another working node with its p2p port
arg8 - ip address of another working node with its p2p port
```
#### Ubuntu Package Uninstall
```sh
$ sudo apt remove eosio

All the arguments are mandatory.

### Running on Docker

1. Clone this repo

```
#### Centos RPM Package Install
```sh
$ wget https://github.com/eosio/eos/releases/download/v1.8.6/eosio-1.8.6-1.el7.x86_64.rpm
$ sudo yum install ./eosio-1.8.6-1.el7.x86_64.rpm
git clone git@github.com:Dreamchain-org/DreamChainCore.git
```
#### Centos RPM Package Uninstall
```sh
$ sudo yum remove eosio

2. enter the folder

```
cd DreamChainCore
```

#### Build Script Uninstall
3. build the docker file by running the following command

If you have previously installed EOSIO using build scripts, you can execute `eosio_uninstall.sh` to uninstall.
- Passing `-y` will answer yes to all prompts (does not remove data directories)
- Passing `-f` will remove data directories (be very careful with this)
- Passing in `-i` allows you to specify where your eosio installation is located
```
docker build dreamchain/node:latest .
```

## Supported Operating Systems
EOSIO currently supports the following operating systems:
1. Amazon Linux 2
2. CentOS 7
3. Ubuntu 16.04
4. Ubuntu 18.04
5. MacOS 10.14 (Mojave)
4. run the docker image by running the following command (make sure you are in `DreamChainCore/scripts/node` directory)

## Resources
1. [Website](https://eos.io)
1. [Blog](https://medium.com/eosio)
1. [Developer Portal](https://developers.eos.io)
1. [StackExchange for Q&A](https://eosio.stackexchange.com/)
1. [Community Telegram Group](https://t.me/EOSProject)
1. [Developer Telegram Group](https://t.me/joinchat/EaEnSUPktgfoI-XPfMYtcQ)
1. [White Paper](https://github.com/EOSIO/Documentation/blob/master/TechnicalWhitePaper.md)
1. [Roadmap](https://github.com/EOSIO/Documentation/blob/master/Roadmap.md)
```
docker run -d -v `pwd`:/node/ -p 8888:8888 -p 9010:9010 dreamchain/node:latest /node/automated_start.sh arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8

<a name="gettingstarted"></a>
## Getting Started
Instructions detailing the process of getting the software, building it, running a simple test network that produces blocks, account creation and uploading a sample contract to the blockchain can be found in [Getting Started](https://developers.eos.io/eosio-home/docs) on the [EOSIO Developer Portal](https://developers.eos.io).
arg1 - public key of the node (must be created prior to this step)
arg2 - private key of the node(must be created prior to this step)
arg3 - account name (must be created prior to this step)
arg4 - nodeos running port (default:8888)
arg5 - p2p listening port (default:9010)
arg6 - ip address of another working node with its p2p port
arg7 - ip address of another working node with its p2p port
arg8 - ip address of another working node with its p2p port

## Contributing

[Contributing Guide](./CONTRIBUTING.md)
```

[Code of Conduct](./CONTRIBUTING.md#conduct)
All the arguments are mandatory.

## License
4. If the node stoped working with a log - "hard restart required", please run the following command to restart the node (make sure you are in `DreamChainCore/scripts/node` directory)

[MIT](./LICENSE)
```
docker run -d -v `pwd`:/node/ -p 8888:8888 -p 9010:9010 dreamchain/node:latest /node/hard_start.sh arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8

arg1 - public key of the node (must be of the stopped node)
arg2 - private key of the node(must be of the stopped node)
arg3 - account name (must be of the stopped node)
arg4 - nodeos running port (default:8888)
arg5 - p2p listening port (default:9010)
arg6 - ip address of another working node with its p2p port
arg7 - ip address of another working node with its p2p port
arg8 - ip address of another working node with its p2p port
```

## Important
All the arguments are mandatory.

See [LICENSE](./LICENSE) for copyright and license terms.
## Branches

All repositories and other materials are provided subject to the terms of this [IMPORTANT](./IMPORTANT.md) notice and you must familiarize yourself with its terms. The notice contains important information, limitations and restrictions relating to our software, publications, trademarks, third-party resources, and forward-looking statements. By accessing any of our repositories and other materials, you accept and agree to the terms of the notice.
To create a new feature or bugfix (or chore) please create a new branch and use a prefix (e.g `feature/my-awesome-new-feature` or `bugfix/something-not-working`). The prefixes we use are `bug`, `feat`, `chore` and `hotfix`. Please don't use anything else.
Loading