Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported ppcoin support #9

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Imported ppcoin support #9

wants to merge 11 commits into from

Conversation

sigmike
Copy link

@sigmike sigmike commented May 4, 2014

Imported code from Julian Langschaedel on commit cc107af to make it work on the current master.

All the tests passes, but I don't know how extensive they are.

@sigmike
Copy link
Author

sigmike commented May 4, 2014

Peercoin is in the process to rename itself from "ppcoin" to "peercoin". Maybe we should do that here too before the code is merged.

@mhanne
Copy link
Owner

mhanne commented May 4, 2014

Cool, seems to be working. Have you tried syncing the whole chain?
I agree we should probably follow the renaming.

There aren't many specs for ppcoin (only one in block_spec.rb); if you know about the differences to bitcoin it would be great if you could add some.

@sigmike
Copy link
Author

sigmike commented May 5, 2014

Have you tried syncing the whole chain?

I just tried and it fails.
It complains about block 1 not matching a checkpoint.

On testnet it download the blocks (there's no checkpoint) but it warns about validation failures.

There aren't many specs for ppcoin (only one in block_spec.rb); if you know about the differences to bitcoin it would be great if you could add some.

The main difference is on block validation to handle Proof of Stake. What level of validation is in the scope of this library? Should it validate everything the official client validates?

@mhanne
Copy link
Owner

mhanne commented May 9, 2014

Ah yes, the checkpoints are expected to be a hash. And it also needs a :max_money value configured or validation will fail. See 4d9185d.

No idea if these are the correct values (probably not) but this way it's syncing up to block 6324 at least.

@mhanne
Copy link
Owner

mhanne commented May 10, 2014

For bitcoin, it is supposed to do all the necessary validations. But it could be useful for peercoin even if there are some rules still missing. You could start by disabling the PoW check so it continues downloading the blockchain, and implement the PoS rules later.

@mhanne mhanne force-pushed the master branch 3 times, most recently from 85097d6 to 169e590 Compare September 21, 2014 19:56
@mhanne mhanne force-pushed the master branch 3 times, most recently from 11e0d12 to e3c308c Compare October 7, 2014 20:36
@mhanne mhanne force-pushed the master branch 2 times, most recently from 0e7846f to e422600 Compare November 22, 2014 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants