Bitcoin Forum
June 14, 2024, 11:36:06 AM *
News: Latest Bitcoin Core release: 27.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]
  Print  
Author Topic: difficulty = 0  (Read 549 times)
Apocalipsis (OP)
Full Member
***
Offline Offline

Activity: 147
Merit: 100


View Profile
January 11, 2014, 12:15:03 PM
Last edit: January 21, 2014, 01:13:26 PM by Apocalipsis
 #1

.
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
January 11, 2014, 04:55:36 PM
 #2

i think diff == 0 is bad idea: a big rig can made lost of blocks, and double spend money.

premine.
create the genesisblock with 0 value:
Quote
txNew.vout[0].nValue = 0 * COIN;

and after:
Quote
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 0;

    if (nHeight == 1) {
        nSubsidy = MAX_MONEY;
    }

    return nSubsidy + nFees;
}

if you mine, the first block gets all cons. other blocks only has the transactions fee.
Apocalipsis (OP)
Full Member
***
Offline Offline

Activity: 147
Merit: 100


View Profile
January 11, 2014, 10:13:31 PM
 #3

i think diff == 0 is bad idea: a big rig can made lost of blocks, and double spend money.

premine.
create the genesisblock with 0 value:
Quote
txNew.vout[0].nValue = 0 * COIN;

and after:
Quote
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 0;

    if (nHeight == 1) {
        nSubsidy = MAX_MONEY;
    }

    return nSubsidy + nFees;
}

if you mine, the first block gets all cons. other blocks only has the transactions fee.

thanx a lot)
iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
January 11, 2014, 10:15:51 PM
 #4

OR just make it so difficulty never readjusts from the initial block

Apocalipsis (OP)
Full Member
***
Offline Offline

Activity: 147
Merit: 100


View Profile
January 11, 2014, 11:06:29 PM
 #5

OR just make it so difficulty never readjusts from the initial block

can you say,where exactly can i change it?
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
January 11, 2014, 11:15:00 PM
 #6

OR just make it so difficulty never readjusts from the initial block
And what good is that Huh

if no block, no transaction record.

Elbandi
Pages: [1]
  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!