Code Monkey home page Code Monkey logo

pwrcoinclassic's Introduction

PWR Coin (Phoenix)

Important Links

PWR Coin Specifications

Name: PWR Coin
Ticker: PWR
Maturity: 40 Blocks
Block Size: 2MB
Block time: 30 seconds
POW Algo: Nist5
POS: single POS payout is 100 coins
Port: 22504
Rpcport: 22502  
Max Supply: 12,427,419,639 PWR

POW Block Reward:
- block  262850  -> 180 COINS - 3 months
- block  525650  -> 150 COINS - 3 months
- block 1051250  -> 120 COINS - 6 months
- block 2102450  -> 100 COINS - 1 year
- block 3153650  ->  90 COINS - 1 year
- block 4204850  ->  80 COINS - 1 year
- block 5256050  ->  70 COINS - 1 year
- block 6307250 and up  ->  65 COINS 


Wallet Instructions

PWR Coin Linux QT Compiled With Ubuntu 16.04.4 x86_64

Install dependencies

When running the commands in the build instructions below, copy and paste one line and let it complete before running the next line. Watch for prompts in case you need to respond to a requested input and also to watch for any errors if they occur.

sudo add-apt-repository universe
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install build-essential make g++
sudo apt-get install libssl-dev libboost-all-dev libqrencode-dev libminiupnpc-dev software-properties-common libdb4.8-dev libdb4.8++-dev
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qtbase5-dev-tools qt5-qmake qt5-default qttools5-dev-tools libprotobuf-dev protobuf-compiler

Get the source and compile

git clone https://github.com/PWRcoin/PWRcoin.git pwrcoin
cd pwrcoin
qmake
make

Note: It's possible the compile may fail and give an error message that you have run out of memory. If this happens please follow the steps below to create a swap file:

fallocate -l 2G /swapfile
chown root:root /swapfile
chmod 0600 /swapfile
sudo bash -c "echo 'vm.swappiness = 10' >> /etc/sysctl.conf"
mkswap /swapfile
swapon /swapfile

After creating the swap file above run the folowing commands again:

qmake
make

Setup And Launch The QT

From the command line:

./pwrcoin-qt

From the desktop GUI:

Double click the PWRcoin-QT icon wherever you have it located in your system

Note: The above will launch the QT and create some necessary files however it will fail and close and will have to be restarted a second time. From then on it will launch with no failures:

Navigate to the location on your computer where the pwrcoin.conf file will need to be setup at - you will know you are in the right folder because the wallet.dat file will be in there:

Create a new file called pwrcoin.conf and add the following lines:

addnode=SomeIPAddressHere
addnode=SomeIPAddressHere
addnode=SomeIPAddressHere
addnode=SomeIPAddressHere
addnode=SomeIPAddressHere

You will need to replace SomeIPAddressHere with IP addresses that you can find here https://blockexplorer.pwr-coin.com/network

After you add the IP addresses save the pwrcoin.conf file and then you will need to restart the QT wallet for the changes to take effect. You will now note that your wallet is sychronizing the blockchain. If your wallet will not begin to synchronize you should try adding some more/different IP addresses in the pwrcoin.conf file. If your wallet partially synchronizes but then stops at some point and won't progress you should shut it down and restart it. Once your QT wallet is fully synchronized you should check and make sure that the wallet block number matches the block height on the official block eplorer at https://blockexplorer.pwr-coin.com/



PWR Coin Linux Daemon Compiled With Ubuntu 16.04.4 x86_64 (Tested 3-19-2018)

Install dependencies

When running the commands in the build instructions below, copy and paste one line and let it complete before running the next line. Watch for prompts in case you need to respond to a requested input and also to watch for any errors if they occur.

sudo add-apt-repository universe
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install build-essential make g++
sudo apt-get install libssl-dev libboost-all-dev libqrencode-dev libminiupnpc-dev software-properties-common libdb4.8-dev libdb4.8++-dev
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qtbase5-dev-tools qt5-qmake qt5-default qttools5-dev-tools libprotobuf-dev protobuf-compiler

Get The Source Code And Compile

git clone https://github.com/PWRcoin/PWRcoin.git pwrcoin
cd pwrcoin/src
make clean -f makefile.unix
make -f makefile.unix

Note: It's possible the compile may fail and give an error message that you have run out of memory. If this happens please follow the steps below to create a swap file:

fallocate -l 2G /swapfile
chown root:root /swapfile
chmod 0600 /swapfile
sudo bash -c "echo 'vm.swappiness = 10' >> /etc/sysctl.conf"
mkswap /swapfile
swapon /swapfile

After creating the swap file above run the folowing commands again:

make clean -f makefile.unix
make -f makefile.unix

Setup And Launch The Daemon

./pwrcoind -daemon 

Note: The above command will launch the daemon and create some necessary files however it will fail with a complaint that your pwrcoin.conf file is not setup properly:

Navigate to the default location where the pwrcoin.conf file will need to be setup at: /root/.pwrcoin/

Once you are inside the .pwrcoin/ directory you will need to create and setup the pwrcoin.conf file:

sudo nano pwrcoin.conf

The bare minimum pwrcoin.conf configuration required to get the daemon running is:

rpcuser=PutRpcUserHere
rpcpassword=PutPasswordHere

Note: The rpcuser and rpcpassword can't be the same they must be different from one another!

While each pwrcoin.conf file may need different setup depending on what you are doing a typical configuration might look like this:

rpcuser=PutRpcUserHere
rpcpassword=PutPasswordHere
rpcallowip=127.0.0.1   
daemon=1
listen=1
server=1
addnode=SomeIPAddressHere
addnode=SomeIPAddressHere
addnode=SomeIPAddressHere
addnode=SomeIPAddressHere
addnode=SomeIPAddressHere

Now that you have created, setup and saved the pwrcoin.conf file you should set it to read only:

sudo chmod 400 pwrcoin.conf

Now you will need to navigate back to the directory where the PWR coin daemon is.

Once you are in the proper directory where the daemon is located you are ready to launch again:

./pwrcoind 

You should get a message that says, "pwrcoin server starting."

Give it a few seconds and check that it is running:

./pwrcoind getinfo

You should get a full response with all of the getinfo output. If you take a look at "blocks": make a note of the block number.

Let the daemon run for several more minutes and once again check it with:

./pwrcoind getinfo

You should compare the block number now to the last one you saw and you should see it climbing higher because it is synchronizing the blockchain. If the number stays at 0 you need to revisit your pwrcoin.conf file and try some different addnodes. A good place to get those is here https://blockexplorer.pwr-coin.com/network

Let your daemon run and check it periodically. Once the block number in getinfo matches the block number on the block explorer you are fully synchronized. If you notice that your daemon reaches a certain block height but then stops synchronizing for any reason it's always a good idea to try stopping and restarting it using the commands listed below:

If for any reason you want to stop the daemon from running use this command:

./pwrcoind stop

If for any reason you need to start the daemon use this command:

./pwrcoind -daemon

pwrcoinclassic's People

Contributors

disasterfaster avatar ghobson2013 avatar pwrcoin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pwrcoinclassic's Issues

failed transactions are left behind in wallet.dat

Issue found by ethano

06/04/18 17:48:43 ERROR: CTransaction::CheckTransaction() : txout.nValue too high
06/04/18 17:48:43 ERROR: CTxMemPool::accept() : CheckTransaction failed
06/04/18 17:48:43 CommitTransaction() : Error: Transaction not valid
06/04/18 17:48:43 updateWallet 39e6a062115237753f3636c1a85308a50f5deab492891c66108cf0257dddf52e 1
06/04/18 17:48:43 inWallet=1 inModel=1 Index=169-170 showTransaction=1 derivedStatus=1

After that a restart shows an error that all keys can be read but that there is a bad transaction in wallet.dat

PWR Wallet issue

Hi,

My PWR Wallet went out of Sync many months ago and it synced again. I have tried opening it today and get "Assertion failed error" and below is the screenshot for your reference.

image

This is the wallet version i am using: pwrcoin-qt-x32-v3.0.0

Can you please advise how to resolve this issue and sync my wallet afterwards?

I have an old backup of pwrencrypted.dat file so should be able to restore everything from scratch if needed but not sure on the process to follow.

Regards,
Sourmack

Mercatox withdrawal

My Mercatox withdrawal is not showing up in PWR explorer, and Mercatox swears it was sent. Could you please let me know if the explorer is updated? Tx is attached.
PWR

PWR Wallet issue

Hello,

I just installed PWR Wallet 3.1.0 x64 (I just run exe, no installation was provided from exe file).
Wallet showed me my wallet but out of sync from beginning, how to connect and sync my wallet?
I bought pwr from Mercatox and send to this wallet account but wallet is from start out of sync.
Please help.

Update fork release notes

Please remove freakcoder from the list of people on the release notes. I had nothing to do with any updates and should not have been credit.

windows 64bit wallet crashes when receiving 1M coins

The crash produces unsaved records that break startup.
renaming the wallet.dat makes it start again, but i am not sure its the wallet.dat that is corrupt, it might be the last txdb files.

zapwallettxes=2 / salvagewallet / checklevel=3 does not fix the problem

This might be a problem with the library versions that were statically compiled into the binary or the chosen gcc flags when building with mingw

Staking: Time to get reward not visible

Hi,
I'm staking PWRcoin but can't see how long it takes to receive a reward. The box in which the text is shown is too small and doesn't contain all text so that I can't see how long it'll take.

кошелек офлайн

почему кошелек pos показывает что нет активных соединений???

end of data iostream error causes wallet crash

Reported by Mel

Only happened once, looks like a network error. Error handling code needs a review.

******* exception encountered *******
05/16/18 22:27:28


EXCEPTION: NSt8ios_base7failureB5cxx11E
CDataStream::ignore() : end of data: iostream error
C:\XXXX\pwrcoin-qt-x64-v2.0.1.0.exe in ThreadMessageHandler()

Wallet Stuck on 75%

Hi, I'm now having a different issue with my Mac wallet. I shut my wallet down for a fe weeks and now it stays stuck at 75.77% and I'm unable to see my balance. I also have a red "Out of Sync" message. Please see my screenshot. I'm also attaching the peers.dat and wallet.dat files. Any suggestions?
Thanks!
Screen Shot 2019-08-12 at 7 47 04 PM
Archive.zip

Wallet crash on Mac while starting up

Hi there, my wallet started displaying a message that read Unable to Sync and it suddenly crashed. Now, every time I try to open the Wallet, it never opens. It automatically crashes during start-up while the "Loading Block Index..." message is displayed on the splash screen. I'm running version 3.1.0. of the waller and version 10.14.5 on my Mac Mini.
Any suggestions for me? Thanks!

staking can create transaction that exceed the money range causing a wallet crash

There is a limit of 100M coins per transaction send..
Here is an example of a proof-of-stake block found causing a wallet crash.
We need to find a way to select another coin entry or at least skip the stake proof without crashing the wallet.

04/16/2018 05:36:56 CheckStakeKernelHash() : using modifier 0x21330beff65b27a1 at height=780767 timestamp=2018-04-10 17:52:36 UTC for block from height=780441 timestamp=2018-04-10 11:59:53 UTC
04/16/2018 05:36:56 CheckStakeKernelHash() : pass modifier=0x21330beff65b27a1 nTimeBlockFrom=1523361593 nTxPrevOffset=149 nTimeTxPrev=1523361593 nPrevout=1 nTimeTx=1523857014 hashProof=000029f74c02cd55079
1297a7ab7903851638d3e7b349baf9deffd7b4a97ab91
04/16/2018 05:36:56 CreateCoinStake : kernel found
04/16/2018 05:36:56 CreateCoinStake : parsed kernel type=1
04/16/2018 05:36:56 CreateCoinStake : added kernel type=1
04/16/2018 05:36:56 coin age nValueIn=9788776814959804 nTimeDiff=495421 bnCentSecond=4849565598444201
04/16/2018 05:36:56 coin age bnCoinDay=56129231463474548
04/16/2018 05:36:56 CheckStakeKernelHash() : using modifier 0x21330beff65b27a1 at height=780767 timestamp=2018-04-10 17:52:36 UTC for block from height=780441 timestamp=2018-04-10 11:59:53 UTC
04/16/2018 05:36:56 CheckStakeKernelHash() : check modifier=0x21330beff65b27a1 nTimeBlockFrom=1523361593 nTxPrevOffset=149 nTimeTxPrev=1523361593 nPrevout=1 nTimeTx=1523857014 hashProof=000029f74c02cd5507
91297a7ab7903851638d3e7b349baf9deffd7b4a97ab91
04/16/2018 05:36:56 CheckStake() : new proof-of-stake block found
hash: 23b3041086b47a9b0f8685ef1e40c0ae0e1fdd5fff50834495a7b0b6d6bfcc81
proofhash: 000029f74c02cd550791297a7ab7903851638d3e7b349baf9deffd7b4a97ab91
target: 00007b2d4c8f0ade000000000000000000000000000000000000000000000000
04/16/2018 05:36:56 CBlock(hash=23b3041086b47a9b0f8685ef1e40c0ae0e1fdd5fff50834495a7b0b6d6bfcc81, ver=6, hashPrevBlock=2ce2d09ae3fe9d8cc14a6c34e72750085f979248b45b6c7c9c3fbd3155d31af4, hashMerkleRoot=caeb
ae34a600d162f2100ceb49eeaf07981c5bcf1807c5705d884efe4eaf602a, nTime=1523857014, nBits=1b03e8b7, nNonce=0, vtx=2, vchBlockSig=304402207b84cce4a38482ed5c33f7a9a5354694e96d300af0a6a4d42314980ea90598fe02204db
1821f481e1c47510c2197c767824770b86aa0428709d1fb33ff9803372973)
04/16/2018 05:36:56 Coinbase(hash=b71980f397, nTime=1523857014, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000, 4294967295), coinbase 034f060c)
CTxOut(empty)
Coinstake(hash=f88c8b4801, nTime=1523857014, ver=1, vin.size=1, vout.size=2, nLockTime=0)
CTxIn(COutPoint(2b7ba1a36b, 1), scriptSig=3045022100e62f51093db04e)
CTxOut(empty)
CTxOut(nValue=103033423.92331771, scriptPubKey=0237ad38e821f50d704823d6fd4f051d8755164ca83b0c996a5fef54d3795f078a OP_CHECKSIG)
vMerkleTree: b71980f397 f88c8b4801 caebae34a6
04/16/2018 05:36:56


EXCEPTION: St13runtime_error
CTransaction::GetValueOut() : value out of range
powercoin in ThreadStakeMiner()

Back up pwrcoin-qt-x64-v3.0.0

I have backup file "PWR 3_0.DAt" created by my wallet address. Because I lost that wallet. Now how can I back up my wallet from the "PWR 3_0.DAt" file. Help me please!

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.