GSC (Global Social Chain) is the new generation of social networking chain. This social chain is determined to use block chain technology to subvert centralized social networks such as Facebook, WeChat, etc., which plays a dual role as "manager" and "arbiter" simultaneously for the former social networking platforms.
- JDK 1.8 (JDK 1.9+ are not supported yet)
- With Linux , ensure that the machine has Oracle JDK 8 .
-
Build in IntelliJ IDEA (community version is enough):
- Start IntelliJ. Select
File
->Open
, then locate to the gsc-core folder which you have git cloned to your local drive. Then clickOpen
button on the right bottom.Branch of master is recommended. - Check on
Use auto-import
on theImport Project from Gradle
dialog. Select JDK 1.8 in theGradle JVM
option. Then clickOK
. - IntelliJ will open the project and start gradle syncing, which will take several minutes, depending on your network connection and your IntelliJ configuration
- After the syncing finished, select
Gradle
->Tasks
->build
, and then double clickbuild
option.
- Start IntelliJ. Select
-
You should modify the config.conf
- Replace existing entry in genesis.block.witnesses with your address.
- Replace existing entry in seed.node ip.list with your ip list.
-
In IntelliJ IDEA
- After the building finishes, locate
FullNode
in the project structure view panel, which is on the pathgsc-core/src/main/java/org/gsc/program/Start
. - Select
Start
, right click on it, and selectRun 'Start.main()'
, thenStart
starts running.
- After the building finishes, locate
-
In the Terminal Un the config.conf localwitness add your private key.
./gradlew run -Pwitness
Read the Wiki for detail
If you have a reasonable understanding of blockchain technology and at least some notions of Java you can of course contribute by using GitHub issues and Pull Requests. We also appreciate other types of contributions such as documentation improvements or even correcting typos in the code if you spot any.
The standard procedure is well documented on GitHub, for detailed explanation, especially if it’s the first time you’re doing this, you can follow the procedure on the following links: Working with forks and Pull Requests. Basically, you fork the GSC repository, create a branch that clearly indicates the problem you’re solving. Later, when you are happy with your work, you create a Pull Request so we can review and discuss your implementation.
If the problem needs debating or you have questions on how to implement a feature, we would prefer you open a GitHub issue. If you spotted a typo or a code formatting issue, just directly opening a Pull Request is fine.
License GSC-Core is under the GNU General Public License v3. See LICENSE.