Bitcoin Forum
May 06, 2024, 10:46:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 »
161  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 06, 2015, 07:58:06 AM
git clone
Code:
 git clone  https://github.com/porkcoin/porkcoin.git

install boost
Code:
[root@iZ25vmpcmckZ xpc]# wget http://nchc.dl.sourceforge.net/project/boost/boost/1.48.0/boost_1_48_0.tar.gz
tar -xzvf boost_1_48_0.tar.gz
./bootstrap.sh
./b2


install openssl and  build
Code:
[root@iZ25vmpcmckZ xpc]#  wget https://www.openssl.org/source/openssl-1.0.0i.tar.gz
tar tar -xzvf openssl-1.0.0i.tar.gz

install db  and  build
Code:
[root@iZ25vmpcmckZ xpc]#   wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar tar -xzvf openssl-1.0.0i.tar.gz

Code:
export BDB_INCLUDE_PATH=/usr/local/BerkeleyDB.4.8/include/
export BDB_LIB_PATH=/usr/local/BerkeleyDB.4.8/lib
export BOOST_INCLUDE_PATH=/usr/include
export BOOST_LIB_PATH=/root/xpc/boost_1_48_0/stage/lib
export OPENSSL_LIB_PATH=/root/xpc/openssl-1.0.0i

build
Code:
cd porkcoin/src
make -f makefile.unix USE_UPNP=-
./porkcoind
162  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 06, 2015, 07:44:06 AM
i  had  fix  it.Please clone it again
163  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 06, 2015, 02:26:13 AM
it  go to  1428.  it  working Cool

we  need a  pool

I am working on that.  The source code has problems building in Linux/Unix.

I  will  try  build  it   int  linux after I get up,then  fix  it.  Thank you for your
164  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 06, 2015, 02:16:18 AM
it  go to  1428.  it  working Cool

we  need a  pool
165  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 06, 2015, 02:04:47 AM
Any block explorer ?, it seems that i am missing coins on address: PTKaNNepuW1PDjMeWgRiu9qWVQCfuib89k

do't mising . i will  fix  it.it could work ,
166  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 08:37:55 PM
I will change him, pow pos hybrids.
So at any time, also can work.
The current pattern of pow, he can't, the automation of the work, very sorry.
167  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 02:50:01 PM
Yes, i know, PorkCoin needs to be mined by solo or by pool, that's how chain will be moved. No other way.
By solo mining chain is moving forward. tested.

oh,that  is  ok.  i will  sleep.   All of this to you
168  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 01:11:33 PM
And finally wallet synced! with rpc port: 9442





but in my all vps . it  is still  1267  at now .
ip  121.40.35.171,61.147.91.25,61.132.13.28  host:


I don't know how to solve  it ,Anyone who Know the reason and  how to solve it?
169  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 11:03:41 AM


yes, when
    srand((unsigned)time(NULL));
    int xxx=rand()%160;


Code:
REORGANIZE: Disconnect 0 blocks; 00000005adc217e7fe13..00000005adc217e7fe13
REORGANIZE: Connect 1 blocks; 00000005adc217e7fe13..00000003f98fd5ec5db9
ERROR: Reorganize() : ConnectBlock 00000003f98fd5ec5db9 failed
InvalidChainFound: invalid block=00000000d5038f442aab  height=162  trust=17437  date=01/01/15 09:07:00
InvalidChainFound:  current best=00000005adc217e7fe13  height=159  trust=15104  date=01/01/15 09:06:44
ERROR: SetBestChain() : Reorganize failed
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
received block 00000002af30632c88b9

so ,It's incorrect to seed the random number generator with the current time.  i  agree.
so  The seed is based on the previous block hash  is correct.


I will  fix  it.


thanks you tuaris


I'll try to build from the latest github and see if I can setup a pool.

@tuaris

thanks  All have been submitted

Code:
static const int CUTOFF_HEIGHT = POW_CUTOFF_HEIGHT;
// miner's coin base reward based on nBits
int64 GetProofOfWorkReward(int nHeight, int64 nFees, uint256 prevHash)
{
    if(nHeight<1267)
    {
        int64 nSubsidy = 1 * COIN;
           if(nHeight % 160 ==0) nSubsidy = 1024 * COIN;
              else       nSubsidy = 1 * COIN;

           double num  = nHeight /  10000 + 2 ;
           if(nHeight % 160 ==0)nSubsidy = (1024 / num ) * COIN;
           else       nSubsidy = 1* COIN;

           if(nHeight > 100000 ==0)
           {
               if(nHeight % 160 ==0) nSubsidy = 8 * COIN;
                   else
               nSubsidy = 1 * COIN;
           }
           if(nHeight == 1)
               nSubsidy = 100000 * COIN;

           return nSubsidy + nFees;
    }

    int64 nSubsidy = 1 * COIN;

    std::string cseed_str = prevHash.ToString().substr(7,7);
    const char* cseed = cseed_str.c_str();
    long seed = hex2long(cseed);
    int xxx = generateMTRandom(seed, 99999);

    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;
    }

    return nSubsidy + nFees;
}



windows wallets:https://mega.co.nz/#!7Bl1FAzK!QmUB5Eu3-Jva10Euy0qATeCiW5-ss4iDFx670uxyHgo
github:  https://github.com/porkcoin/porkcoin/blob/master/src/main.cpp#L938
170  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 09:42:38 AM


yes, when
    srand((unsigned)time(NULL));
    int xxx=rand()%160;


Code:
REORGANIZE: Disconnect 0 blocks; 00000005adc217e7fe13..00000005adc217e7fe13
REORGANIZE: Connect 1 blocks; 00000005adc217e7fe13..00000003f98fd5ec5db9
ERROR: Reorganize() : ConnectBlock 00000003f98fd5ec5db9 failed
InvalidChainFound: invalid block=00000000d5038f442aab  height=162  trust=17437  date=01/01/15 09:07:00
InvalidChainFound:  current best=00000005adc217e7fe13  height=159  trust=15104  date=01/01/15 09:06:44
ERROR: SetBestChain() : Reorganize failed
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
received block 00000002af30632c88b9

so ,It's incorrect to seed the random number generator with the current time.  i  agree.
so  The seed is based on the previous block hash  is correct.


I will  fix  it.


thanks you tuaris
171  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 08:51:58 AM
https://mega.co.nz/#!SUdTRQjJ!lGsyCQXUvAtj_n_loYwOzmKeKye1IrfNzrgQ5guh2j8
github:https://github.com/porkcoin/porkcoin


The seed is based on the previous block hash
https://github.com/porkcoin/porkcoin/blob/master/src/main.cpp#L936
Code:
int64 GetProofOfWorkReward(int nHeight, int64 nFees, uint256 prevHash)
{
    int64 nSubsidy = 1 * COIN;

    srand((unsigned)time(NULL));
    int xxx=rand()%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;
    }

    return nSubsidy + nFees;
}
this  is  correct, The last is this
172  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 08:06:05 AM
@tuaris

Do you understand, I found that I need to be modified to come over.   this  is correct  that  result is  different each time.
by this way
Code:
   srand((unsigned)time(NULL));
    int xxx=rand()%160;
173  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 07:58:04 AM

github:https://github.com/porkcoin/porkcoin


The seed is based on the previous block hash
https://github.com/porkcoin/porkcoin/blob/master/src/main.cpp#L936
Code:
int64 GetProofOfWorkReward(int nHeight, int64 nFees, uint256 prevHash)
{
    int64 nSubsidy = 1 * COIN;

    srand((unsigned)time(NULL));
    int xxx=rand()%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;
    }

    return nSubsidy + nFees;
}
174  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 07:46:42 AM
Code:
#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


  it  is   correct,He was able to meet the need, purpose is to don't know in which position the position of between 160 and 320.
The purpose of this code  adjustment is in selective miners mining


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

Won't go to  re-luanch this coin., because it is very important to a one-time luanch, in order to protect have been mined  the coin.
175  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 07:11:54 AM
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;
176  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 05, 2015, 06:59:42 AM
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
177  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 04, 2015, 01:55:28 PM


fixed   the   bug

https://mega.co.nz/#!3MNx0LQZ!FjeMpGcuSwzdH5Fn9HS8VcunuWXRQ8dYuB2FyG9OPEc
178  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 04, 2015, 01:04:48 PM
And finally wallet synced! with rpc port: 9442





but in my all vps . it  is still  1267.

I don't know how to solve

179  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 04, 2015, 11:29:48 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

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;
}
180  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [XPC]PorkCoin X11PoW/PoS PORKMARKETS Every 160 blocks on: January 04, 2015, 10:31:34 AM
Can not get it sync, can you help with syncing ? or at least with a clear full config file ?

now ,the height is  1267,it  is difficult  to generate a block  in    my vps.
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!