Author

Topic: 2 Questions about 2 row of code . 0.01 BTC as reward to the first who explain. (Read 1002 times)

legendary
Activity: 2212
Merit: 1199
BTC are received. I don't use skype, feel free to send PM.

task done Smiley nice!
Congrats to a winner!
full member
Activity: 329
Merit: 197
Two-way squared
BTC are received. I don't use skype, feel free to send PM.
member
Activity: 107
Merit: 10
Bitcoins sent , please check.
Add me on skype if you want , I'll probably need more tips in the future.
Skype id : terminaattore

Thank you again.
full member
Activity: 329
Merit: 197
Two-way squared
Quote
What about the first row?Do you have any clue of what is it used about or what should I change it with?

"txNew.vin[0].scriptSig = " can be anything; it isn't used. See https://en.bitcoin.it/wiki/Transactions#Generation

Quote
With the "timestamp of launch" you mean when I will update my thread containing the currency source code on github?

I mean start of mining.

My BTC address: 14T4i9rQmG7zufSgxLbcKhwwRG5VykyoYy
Thanks
member
Activity: 107
Merit: 10
Please provide me your BTC address so I can send you part of the reward.
What about the first row?Do you have any clue of what is it used about or what should I change it with?
With the "timestamp of launch" you mean when I will update my thread containing the currency source code on github?

Thank you.
full member
Activity: 329
Merit: 197
Two-way squared
unsigned char pchMessageStart[4] = { 0x01, 0x97, 0xd8, 0x77 };

It's magic identification number. You can leave this as is or choose new random one. Does not really matter.

I'm also not sure what time should be used in this row :
block.nTime  = 1390586275;

I know that I should use the "epochtime" but when should I copy it? I mean from when?As soon as I start to launch my coin?

It's timestamp of genesis (first) block. Put there timestamp of launch. (timestamp = epochtime)
member
Activity: 107
Merit: 10
So , let's say I want to edit this crypto-currency and make my own. Should I put random numbers instead of these? Or should I leave this unchanged?
sr. member
Activity: 350
Merit: 254
lemme try

Code:
unsigned char pchMessageStart[4] = { 0x01, 0x97, 0xd8, 0x77 }; 


0x01    The next opcode bytes is data to be pushed onto the stack
0x97    a b    out    Returns the remainder after dividing a by b. disabled.
0xd8    ??
0x77    Removes the second-to-top stack item.
member
Activity: 107
Merit: 10
With "salt value" you mean the magic numbers?
newbie
Activity: 9
Merit: 0
A salt value is a random value.
member
Activity: 107
Merit: 10
I don't know about the first one, but the second one is the magic bytes of the protocol for identification.

Yeah , I know that but what should I write instead of them?What bytes should I use?
Ix
full member
Activity: 218
Merit: 128
I don't know about the first one, but the second one is the magic bytes of the protocol for identification.
member
Activity: 107
Merit: 10
Small bounty...

Those are ... refs to memory sectors? :-)

I just raised up the buonties Wink
member
Activity: 107
Merit: 10
I don't think so. Because for different source codes of different currencies there are different "numbers".
legendary
Activity: 2212
Merit: 1199
Small bounty...

Those are ... refs to memory sectors? :-)
member
Activity: 107
Merit: 10
[0.01 BTC as reward to the first who answer me with the explanation]
Hi,
What are the parts marked in red used for?

txNew.vin[0].scriptSig = CScript() << 0x0197d877 << CBigNum(4) << vector((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));

unsigned char pchMessageStart[4] = { 0x01, 0x97, 0xd8, 0x77 };

[Extra 0.005 BTC as reward if you answer to this too]
I'm also not sure what time should be used in this row :
block.nTime  = 1390586275;

I know that I should use the "epochtime" but when should I copy it? I mean from when?As soon as I start to launch my coin?
Thank you in advance
Best regards

Edit : Rewards increased.
Jump to: