Giter Club home page Giter Club logo

popchain's Introduction

POPCHAIN

POPCHAIN is a bottom-driven, open, public blockchain for content creators and consumers. Through a blockchain-based ecosystem, POPCHAIN provides a decentralized solution for the entertainment market by ensuring that creators are directly and fairly compensated for their work.

POPCHAIN can be widely used for live broadcasts, content promotion, code sharing, online games and more, revolutionizing the field of entertainment. By allowing users to access content directly from creators, POPCHAIN cuts out intermediaries that currently dominate the industry as well as the fees that they charge, instead of giving that profit back to the creators.

Basic usage resources:

Coin Specs

AlgoQuark
Block Time60 Seconds
Difficulty RetargetingEvery Block
Max Coin Supply (PoW Phase)2,000,000,000 PCH
PoW (w/ Masternode)800,000,000 PCH
Premine1,200,000,000 PCH*

Reward Distribution

Genesis Block
Block HeightReward AmountNotes
11,200,000,000 PCHInitial Pre-mine and distributed and swaped amount

PoW Rewards Breakdown

Block HeightMasternodesMinerBudget
2-5% (6.xx PCH)95% (120 PCH)N/A

Contact us:

Building POPCHAIN

Build on Ubuntu(16.04 LTS)

git clone https://github.com/PopchainFoundation/PopChain.git

Install dependency

sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libzmq3-dev

# QT 5, for GUI
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler    
# optional
sudo apt-get install libqrencode-dev

Configure and build

./autogen.sh
./configure
make -j(number of threads)

Run

cd src && ./popd -daemon # use ./pop-cli to make rpc call

Development Process

The master branch is constantly updated and developed, while stable and versionized executables will be published once mainnet is published.

Issues and commit changes are welcome.

popchain's People

Contributors

laanwj avatar gavinandresen avatar sipa avatar fuzzbawls avatar mrs-x avatar udjinm6 avatar presstab avatar non-github-bitcoin avatar theuni avatar vertoe avatar luke-jr avatar gmaxwell avatar jonspock avatar crowning- avatar stakebox avatar furszy avatar random-zebra avatar warrows avatar thebluematt avatar fanquake avatar cozz avatar petertodd avatar snogcel avatar jonasschnelli avatar schinzelh avatar jtimon avatar bit-bucks avatar darkcoinproject avatar muggenhor avatar rebroad avatar

Watchers

James Cloos avatar  avatar  avatar

popchain's Issues

CID 242479 - Pointer to local outside scope (use-after-free)

In \texttt{src/miner.cpp:CreateNewBlock}, reference to 'publicSpoend' and 'spendObj'
member variable is used after 'publicSpend' and 'spendObj' is freed from the
stack. It can be lead to data corruption.

\lstinputlisting [style=customc, firstline=101, lastline=392]{Popchain/src/miner.cpp}

CID 242476 - Resource leak

In \texttt{src/wallet/rpcwallet.cpp:serchdzpch}, dzpchThreads is dynamically allocated
but not freed before control leaves the function. It will cause a memory leak
which can disrupt stability.

\lstinputlisting [style=customc, firstline=3632, lastline=3680]{Popchain/src/wallet/rpcwallet.cpp}

CID 242447 - Uninitialized local variable

In \texttt{src/spork.cpp:SetPrivKey} uses an uninitialized local variable to test spork
signer. It may lead to an undesirable result. It is strongly advised to use a
properly initialized object.

\lstinputlisting [style=customc, firstline=255, lastline=270]{Popchain/src/spork.cpp}

CID 242474 - Resource leak

In \texttt{src/torcontrol.cpp:ReadBinaryFile}, the file is not properly closed if file
descriptor encountered an error. It can cause file descriptor leak which can
lead to system instability.

\lstinputlisting [style=customc, firstline=370, lastline=389]{Popchain/src/torcontrol.cpp}

실수 하나 발생

nTargetTimespan = 1 * 60; // POPCHAIN: 1 day

이거 1 Day 여야하는데 1분 단위로 찍어내고 있음 (이 부분의 경우 난이도 조절을 1일 단위로 안하고 즉각즉각 반영하게 됨. 나쁜 건 아닌데, 역시 문제는... 문제...)

CID 242511 - Resource leak

In \texttt{src/wallet/wallet.cpp:CWallet::AutoCombineDust}, 'coinControl' is dynamically
allocated but not freed when coinControl->HasSelected() is false. It may lead to
a memory leak which can disrupt stability.

\lstinputlisting [style=customc, firstline=3388, lastline=3437]{Popchain/src/wallet/wallet.cpp}

CID 242525 - Pointer to local outside scope (use-after-free)

In src/main.cpp:AddInvalidSpendsToMap, reference to ’publicSpend’ local variable is used
after ’publicSpend’ is freed from the stack. It can be lead to data corruption.

\lstinputlisting [style=customc, firstline=2473, lastline=2501]{Popchain/src/main.cpp}

CID 186065 - Out-of-bounds access

In \texttt{src/pubkey.cpp:CPubKey::Derive} incorrectly indexes pubkey array which leads to access
invalid position(ptr+33 > ptr+32). It may lead into severe data corruption.

\lstinputlisting [style=customc, firstline=231, lastline=251]{Popchain/src/pubkey.cpp}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.