Bitcoin Forum
November 08, 2024, 01:46:14 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: « 1 2 3 [4] 5 6 7 8 9 10 11 12 13 14 15 16 17 »  All
  Print  
Author Topic: [ANN] [xpc]porkcoin X11PoW/PoS | market|Picture Match|Bittrex  (Read 34469 times)
logocreator
Legendary
*
Offline Offline

Activity: 1134
Merit: 1000


www.cryptodesign.cc


View Profile WWW
January 04, 2015, 10:58:57 AM
 #61

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

porkcoin (OP)
Full Member
***
Offline Offline

Activity: 207
Merit: 100



View Profile
January 04, 2015, 11:29:48 AM
 #62

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

rpcport

https://github.com/porkcoin/porkcoin/blob/master/src/bitcoinrpc.cpp
static inline unsigned short GetDefaultRPCPort()
{
    return GetBoolArg("-testnet", false) ? 8152 : 8153;
}


https://github.com/porkcoin/porkcoin/blob/master/src/protocol.h
static inline unsigned short GetDefaultPort(const bool testnet = fTestNet)
{
    return testnet ? 8150 : 8151;
}
logocreator
Legendary
*
Offline Offline

Activity: 1134
Merit: 1000


www.cryptodesign.cc


View Profile WWW
January 04, 2015, 12:21:15 PM
 #63


logocreator
Legendary
*
Offline Offline

Activity: 1134
Merit: 1000


www.cryptodesign.cc


View Profile WWW
January 04, 2015, 12:46:42 PM
 #64

And finally wallet synced! with rpc port: 9442




porkcoin (OP)
Full Member
***
Offline Offline

Activity: 207
Merit: 100



View Profile
January 04, 2015, 01:04:48 PM
 #65

And finally wallet synced! with rpc port: 9442





but in my all vps . it  is still  1267.

I don't know how to solve

tuaris
Hero Member
*****
Offline Offline

Activity: 780
Merit: 501



View Profile WWW
January 04, 2015, 01:08:05 PM
 #66

Looks interesting but... it has many parallels to Nanite.

porkcoin (OP)
Full Member
***
Offline Offline

Activity: 207
Merit: 100



View Profile
January 04, 2015, 01:55:28 PM
Last edit: January 05, 2015, 05:16:50 AM by porkcoin
 #67



fixed   the   bug

https://mega.co.nz/#!3MNx0LQZ!FjeMpGcuSwzdH5Fn9HS8VcunuWXRQ8dYuB2FyG9OPEc
rastimonac
Sr. Member
****
Offline Offline

Activity: 426
Merit: 250



View Profile
January 04, 2015, 02:31:49 PM
 #68

excange soon??
logocreator
Legendary
*
Offline Offline

Activity: 1134
Merit: 1000


www.cryptodesign.cc


View Profile WWW
January 04, 2015, 03:34:50 PM
 #69

We need a pool now!

tuaris
Hero Member
*****
Offline Offline

Activity: 780
Merit: 501



View Profile WWW
January 04, 2015, 04:33:25 PM
 #70

We need a pool now!

I can set one up, but I'm still suspicious.

logocreator
Legendary
*
Offline Offline

Activity: 1134
Merit: 1000


www.cryptodesign.cc


View Profile WWW
January 04, 2015, 06:00:19 PM
 #71

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
Hero Member
*****
Offline Offline

Activity: 780
Merit: 501



View Profile WWW
January 04, 2015, 06:48:05 PM
 #72

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
Hero Member
*****
Offline Offline

Activity: 780
Merit: 501



View Profile WWW
January 04, 2015, 06:48:53 PM
 #73

The source code on Github is incomplete

Code:
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
Hero Member
*****
Offline Offline

Activity: 780
Merit: 501



View Profile WWW
January 04, 2015, 07:26:06 PM
 #74

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
Code:
#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.

elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 531


View Profile
January 04, 2015, 09:05:28 PM
 #75

this commit is wrong, do not upgrade!!!!

https://github.com/porkcoin/porkcoin/commit/b880899e172ba3e77e4cca453bd1ea78e74d6b73

Code:
    QTime time= QTime::currentTime();
    qsrand(time.msec()+time.second()*1000);
    int xxx=qrand()%160;
if someone has different clock, this xxx will be different!!!

anyway, after the coin is launched, do not change anything, except code tweaks.
najzenmajsen
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500



View Profile
January 04, 2015, 11:13:58 PM
 #76

We need a pool now!
erh , not for this coin mate that would be a waste of time and money and electricity ^_^
porkcoin (OP)
Full Member
***
Offline Offline

Activity: 207
Merit: 100



View Profile
January 05, 2015, 06:59:42 AM
 #77

The source code on Github is incomplete

Code:
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
Hero Member
*****
Offline Offline

Activity: 780
Merit: 501



View Profile WWW
January 05, 2015, 07:02:28 AM
 #78

The source code on Github is incomplete

Code:
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

Thanks, how about the issue with the random number generator based on time mentioned above?  That is wrong.

porkcoin (OP)
Full Member
***
Offline Offline

Activity: 207
Merit: 100



View Profile
January 05, 2015, 07:11:54 AM
 #79

The source code on Github is incomplete

Code:
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

Thanks, how about the issue with the random number generator based on time mentioned above?  That is wrong.


fix  it

https://github.com/porkcoin/porkcoin/blob/master/src/main.cpp#L938
Code:
    srand((unsigned)time(NULL));
    int xxx=rand()%160;
tuaris
Hero Member
*****
Offline Offline

Activity: 780
Merit: 501



View Profile WWW
January 05, 2015, 07:23:41 AM
Last edit: January 05, 2015, 07:39:22 AM by tuaris
 #80

The source code on Github is incomplete

Code:
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

Thanks, how about the issue with the random number generator based on time mentioned above?  That is wrong.


fix  it

https://github.com/porkcoin/porkcoin/blob/master/src/main.cpp#L938
Code:
    srand((unsigned)time(NULL));
    int xxx=rand()%160;

It's incorrect to seed the random number generator with the current time.  The result will be different each time.

Example:

Code:
#include <iostream>

using namespace std;

int main() {
        srand((unsigned)time(NULL));
        int xxx=rand()%160;
        cout << xxx << endl;
        return 0;
}

Code:
$ ./a.out
155
$ ./a.out
2
$ ./a.out
9
$ ./a.out
16

Code:
#include <iostream>

using namespace std;

int main() {
        srand((unsigned)100);
        int xxx=rand()%160;
        cout << xxx << endl;
        return 0;
}

Code:
$ ./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

Look at this correct example:
https://github.com/kittehcoin/kittehcoin/blob/master/src/main.cpp#L1072

The seed is based on the previous block hash
https://github.com/kittehcoin/kittehcoin/blob/master/src/main.cpp#L1090

You should find someone more experienced to review and fix the code, then re-luanch this coin.

Pages: « 1 2 3 [4] 5 6 7 8 9 10 11 12 13 14 15 16 17 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!