Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Blockchain Mechanic on January 06, 2017, 03:37:35 PM



Title: Proof of Stake and Headers First
Post by: Blockchain Mechanic on January 06, 2017, 03:37:35 PM
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.


Title: Re: Proof of Stake and Headers First
Post by: Blockchain Mechanic on January 07, 2017, 11:46:26 AM
Block versions are now successfully separating PoW from PoS blocks.  ;D

New problem : Verifying of signatures is failing  >:(


Title: Re: Proof of Stake and Headers First
Post by: Blockchain Mechanic on January 08, 2017, 06:04:58 PM
https://s29.postimg.org/r584r4tzb/Screenshot_from_2017_01_08_19_59_53.png

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


Title: Re: Proof of Stake and Headers First
Post by: spiralus on January 08, 2017, 06:38:55 PM
I'm interested in this issue too. Did you find a working solution? Can you provide details? Thanks


Title: Re: Proof of Stake and Headers First
Post by: Blockchain Mechanic on January 08, 2017, 07:03:22 PM
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 (https://bitcointalk.org/index.php?topic=1727125.0)


Title: Re: Proof of Stake and Headers First
Post by: spiralus on January 08, 2017, 09:57:33 PM
OK, sounds like you won't be doing open source. Would still love to see the details of this approach though in code