Bitcoin Forum
June 27, 2024, 02:01:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: pow/pos code  (Read 883 times)
tan625747 (OP)
Full Member
***
Offline Offline

Activity: 183
Merit: 100



View Profile
October 29, 2014, 08:18:57 AM
 #1

Quote
auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, true, &nFees));
        bool b = pblock->IsProofOfStake();

why  b = false?
bee7
Hero Member
*****
Offline Offline

Activity: 574
Merit: 523


View Profile
October 29, 2014, 09:15:55 AM
 #2

Quote
auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, true, &nFees));
        bool b = pblock->IsProofOfStake();

why  b = false?


I was told that C++ developers are able to read the code Wink
tan625747 (OP)
Full Member
***
Offline Offline

Activity: 183
Merit: 100



View Profile
October 29, 2014, 09:24:59 AM
 #3

Quote
auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, true, &nFees));
        bool b = pblock->IsProofOfStake();

why  b = false?


I was told that C++ developers are able to read the code Wink

see u   :)https://bitcointalk.org/index.php?topic=734477.msg9366387#msg9366387.
I am  sorry  that  delete  all

it  is  should b= true.
bee7
Hero Member
*****
Offline Offline

Activity: 574
Merit: 523


View Profile
October 29, 2014, 09:27:50 AM
 #4

Quote
auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, true, &nFees));
        bool b = pblock->IsProofOfStake();

why  b = false?


I was told that C++ developers are able to read the code Wink

see u   :)https://bitcointalk.org/index.php?topic=734477.msg9366387#msg9366387.
I am  sorry  that  delete  all

it  is  should b= true.

If you read through CreateNewBlock implementation you should get why it is false.
tan625747 (OP)
Full Member
***
Offline Offline

Activity: 183
Merit: 100



View Profile
October 29, 2014, 09:59:25 AM
 #5

Quote
auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, true, &nFees));
        bool b = pblock->IsProofOfStake();

why  b = false?


I was told that C++ developers are able to read the code Wink

see u   :)https://bitcointalk.org/index.php?topic=734477.msg9366387#msg9366387.
I am  sorry  that  delete  all

it  is  should b= true.

If you read through CreateNewBlock implementation you should get why it is false.

yes.I  had  get  why.

but pos  coin ,in pos  phase ,it    should  is  true. if  not,in   pos  phase  how   generate  a  new  block.?

bee7
Hero Member
*****
Offline Offline

Activity: 574
Merit: 523


View Profile
October 29, 2014, 10:02:46 AM
 #6

Quote
auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, true, &nFees));
        bool b = pblock->IsProofOfStake();

why  b = false?


I was told that C++ developers are able to read the code Wink

see u   :)https://bitcointalk.org/index.php?topic=734477.msg9366387#msg9366387.
I am  sorry  that  delete  all

it  is  should b= true.

If you read through CreateNewBlock implementation you should get why it is false.

yes.I  had  get  why.

but pos  coin ,in pos  phase ,it    should  is  true. if  not,in   pos  phase  how   generate  a  new  block.?



Read the code. This way you achieve two things:

  • you study how other people are using the language (so, you are studying the language);
  • you get understanding how the program works.

Exactly the same way as you study the natural language: you are reading books in a first place.
tan625747 (OP)
Full Member
***
Offline Offline

Activity: 183
Merit: 100



View Profile
October 29, 2014, 10:21:57 AM
 #7

Quote
auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, true, &nFees));
        bool b = pblock->IsProofOfStake();

why  b = false?


I was told that C++ developers are able to read the code Wink

see u   :)https://bitcointalk.org/index.php?topic=734477.msg9366387#msg9366387.
I am  sorry  that  delete  all

it  is  should b= true.

If you read through CreateNewBlock implementation you should get why it is false.

yes.I  had  get  why.

but pos  coin ,in pos  phase ,it    should  is  true. if  not,in   pos  phase  how   generate  a  new  block.?



Read the code. This way you achieve two things:

  • you study how other people are using the language (so, you are studying the language);
  • you get understanding how the program works.

Exactly the same way as you study the natural language: you are reading books in a first place.


yes  i  am  understanding  the  pos  coin  program  how  to works.
it  is  very  important  thar come  true por by  the  way learn  pos

pow->pos->por Smiley


the  sdc  program  can  works.  it is very  surprise
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!