logocreator
Legendary
Offline
Activity: 1134
Merit: 1000
www.cryptodesign.cc
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 10:58:57 AM |
|
Anyone who wants solo mining, try this PorkCoin.conf
port=9441 rpcport=9442 gen=1 listen=1 daemon=1 server=1 rpcallowip=127.0.0.1 addnode=113.11.214.81 addnode=61.147.91.25
|
|
|
|
|
logocreator
Legendary
Offline
Activity: 1134
Merit: 1000
www.cryptodesign.cc
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 12:21:15 PM |
|
|
|
|
|
logocreator
Legendary
Offline
Activity: 1134
Merit: 1000
www.cryptodesign.cc
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 12:46:42 PM |
|
And finally wallet synced! with rpc port: 9442 ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2Fc0E718m.jpg&t=665&c=LSMoTnn1KMoOLA) ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FZbqaTYg.jpg&t=665&c=F2K9yqg9kLVMDQ)
|
|
|
|
porkcoin (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 01:04:48 PM |
|
And finally wallet synced! with rpc port: 9442 ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2Fc0E718m.jpg&t=665&c=LSMoTnn1KMoOLA) ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FZbqaTYg.jpg&t=665&c=F2K9yqg9kLVMDQ) but in my all vps . it is still 1267. I don't know how to solve
|
|
|
|
tuaris
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 01:08:05 PM |
|
Looks interesting but... it has many parallels to Nanite.
|
|
|
|
porkcoin (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 01:55:28 PM Last edit: January 05, 2015, 05:16:50 AM by porkcoin |
|
fixed the bug https://mega.co.nz/#!3MNx0LQZ!FjeMpGcuSwzdH5Fn9HS8VcunuWXRQ8dYuB2FyG9OPEc ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FvQOfRGR.png&t=665&c=SYMmLmnYeL7-XA)
|
|
|
|
rastimonac
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 02:31:49 PM |
|
excange soon??
|
|
|
|
logocreator
Legendary
Offline
Activity: 1134
Merit: 1000
www.cryptodesign.cc
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 03:34:50 PM |
|
We need a pool now!
|
|
|
|
tuaris
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 04:33:25 PM |
|
We need a pool now!
I can set one up, but I'm still suspicious.
|
|
|
|
logocreator
Legendary
Offline
Activity: 1134
Merit: 1000
www.cryptodesign.cc
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 06:00:19 PM |
|
We need a pool now!
I can set one up, but I'm still suspicious. Why ? As far as i can see, it is not perfect but still normal X11 coin, like others .
|
|
|
|
tuaris
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 06:48:05 PM |
|
We need a pool now!
I can set one up, but I'm still suspicious. Why ? As far as i can see, it is not perfect but still normal X11 coin, like others . I agree, it looks normal. So did Nanite.
|
|
|
|
tuaris
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 06:48:53 PM |
|
The source code on Github is incomplete c++: warning: cannot open ../share/genbuild.sh: No such file or directory
Missing the 'share' folder. I can't build the wallet or setup a mining pool until that is fixed.
|
|
|
|
tuaris
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 07:26:06 PM |
|
Setting up a pool is not possible with this coin due to the requirement of a Qt library in the PoW section of the code: https://github.com/porkcoin/porkcoin/blob/master/src/main.cpp#L938#include <QTime> static const int CUTOFF_HEIGHT = POW_CUTOFF_HEIGHT; // miner's coin base reward based on nBits int64 GetProofOfWorkReward(int nHeight, int64 nFees, uint256 prevHash) { int64 nSubsidy = 1 * COIN; QTime time= QTime::currentTime(); qsrand(time.msec()+time.second()*1000); int xxx=qrand()%160;
if(nHeight == 1) { nSubsidy = 100000 * COIN; }else if(nHeight < 10000) { if(nHeight % (160 + xxx) ==0) nSubsidy = 1024 * COIN; else nSubsidy = 1 * COIN; }else if(nHeight > 10000 && nHeight < 20000 ) { if(nHeight % (160 + xxx) ==0) nSubsidy = 512 * COIN; else nSubsidy = 1 * COIN; }else if(nHeight > 20000 && nHeight < 40000 ) { if(nHeight % (160 + xxx) ==0) nSubsidy = 256 * COIN; else nSubsidy = 1 * COIN; }else if(nHeight > 40000 && nHeight < 80000 ) { if(nHeight % (160 + xxx) ==0) nSubsidy = 128 * COIN; else nSubsidy = 1 * COIN; } else if(nHeight > 80000 && nHeight < 160000 ) { if(nHeight % (160 + xxx) ==0) nSubsidy = 64 * COIN; else nSubsidy = 1 * COIN; } else if(nHeight > 160000 && nHeight < 320000 ) { if(nHeight % (160 + xxx) ==0) nSubsidy = 32 * COIN; else nSubsidy = 1 * COIN; } else if(nHeight > 320000 && nHeight < 640000 ) { if(nHeight % (160 + xxx) ==0) nSubsidy = 16 * COIN; else nSubsidy = 1 * COIN; }else if(nHeight > 640000 ) { if(nHeight % (160 + xxx) ==0) nSubsidy = 8 * COIN; else nSubsidy = 1 * COIN; }
This is poorly programmed in my opinion. The developer needs to review/fix this code.
|
|
|
|
|
najzenmajsen
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 04, 2015, 11:13:58 PM |
|
We need a pool now!
erh , not for this coin mate that would be a waste of time and money and electricity ^_^
|
|
|
|
porkcoin (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 05, 2015, 06:59:42 AM |
|
The source code on Github is incomplete c++: warning: cannot open ../share/genbuild.sh: No such file or directory
Missing the 'share' folder. I can't build the wallet or setup a mining pool until that is fixed. had commit 'share' folder https://github.com/porkcoin/porkcoin/tree/master/share
|
|
|
|
tuaris
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 05, 2015, 07:02:28 AM |
|
The source code on Github is incomplete c++: warning: cannot open ../share/genbuild.sh: No such file or directory
Missing the 'share' folder. I can't build the wallet or setup a mining pool until that is fixed. had commit 'share' folder https://github.com/porkcoin/porkcoin/tree/master/shareThanks, how about the issue with the random number generator based on time mentioned above? That is wrong.
|
|
|
|
|
tuaris
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 05, 2015, 07:23:41 AM Last edit: January 05, 2015, 07:39:22 AM by tuaris |
|
It's incorrect to seed the random number generator with the current time. The result will be different each time. Example: #include <iostream>
using namespace std;
int main() { srand((unsigned)time(NULL)); int xxx=rand()%160; cout << xxx << endl; return 0; }
$ ./a.out 155 $ ./a.out 2 $ ./a.out 9 $ ./a.out 16
#include <iostream>
using namespace std;
int main() { srand((unsigned)100); int xxx=rand()%160; cout << xxx << endl; return 0; }
$ ./a.out 66 $ ./a.out 66 $ ./a.out 66 $ ./a.out 66
@elbandi, that's a good catch. I can't believe I missed that. ![Roll Eyes](https://bitcointalk.org/Smileys/default/rolleyes.gif) Look at this correct example: https://github.com/kittehcoin/kittehcoin/blob/master/src/main.cpp#L1072The seed is based on the previous block hash https://github.com/kittehcoin/kittehcoin/blob/master/src/main.cpp#L1090You should find someone more experienced to review and fix the code, then re-luanch this coin.
|
|
|
|
|