Bitcoin Forum
June 08, 2024, 01:46:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Proof of Stake and Headers First  (Read 381 times)
Blockchain Mechanic (OP)
Full Member
***
Offline Offline

Activity: 380
Merit: 103

Developer and Consultant


View Profile WWW
January 06, 2017, 03:37:35 PM
Last edit: January 06, 2017, 03:49:18 PM by Blockchain Mechanic
 #1

I have come up with two possible solutions to this problem and i'm hoping some coders can point out why it would or would not work. Maybe i am missing some key points.

1) Why not move the blocksig into the header ?
 We can then use this to identify blocks (i know the signing process)

2) Have a system that accepts two block versions (ie blocks  structures are unchanged but v1 blocks are PoW and v2 Blocks are PoS)

 Again this would take minimal modification of the code and would act as a way of distinguishing between block types and how to handle their headers.

I'd appreciate input from other developers and anyone else who has an understanding of this problem and any others i have overlooked.

-edit-

I have strong hopes for using versions as separation logic as it requires just a few changes. I am recompiling to test.

Equality vs Equity...
Discord :- BlockMechanic#8560
Blockchain Mechanic (OP)
Full Member
***
Offline Offline

Activity: 380
Merit: 103

Developer and Consultant


View Profile WWW
January 07, 2017, 11:46:26 AM
 #2

Block versions are now successfully separating PoW from PoS blocks.  Grin

New problem : Verifying of signatures is failing  Angry

Equality vs Equity...
Discord :- BlockMechanic#8560
Blockchain Mechanic (OP)
Full Member
***
Offline Offline

Activity: 380
Merit: 103

Developer and Consultant


View Profile WWW
January 08, 2017, 06:04:58 PM
 #3



Bitcoin 0.12.x with working PoS. Two known remaining bugs.

Equality vs Equity...
Discord :- BlockMechanic#8560
spiralus
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 08, 2017, 06:38:55 PM
 #4

I'm interested in this issue too. Did you find a working solution? Can you provide details? Thanks
Blockchain Mechanic (OP)
Full Member
***
Offline Offline

Activity: 380
Merit: 103

Developer and Consultant


View Profile WWW
January 08, 2017, 07:03:22 PM
 #5

I'm interested in this issue too. Did you find a working solution? Can you provide details? Thanks

Hello

I am confident my solution is reliable. I am debugging it during my spare time.

Mining - works
Staking - Works
Different difficulty adj - works
Differentiation of blocks between pow and pos - works

Known issues:- occasional failure to sign coinstake transactions , Qt wallet balance updates.

I think i will get those last two tonight.

Was depressed by the continual cloning of old 2012 code so i made a fresh version for my own project. :-  Oracle AI

Equality vs Equity...
Discord :- BlockMechanic#8560
spiralus
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 08, 2017, 09:57:33 PM
 #6

OK, sounds like you won't be doing open source. Would still love to see the details of this approach though in code
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!