Skip to content

[BUG] PepeCoinP2PKHVersion byte = 0x37 // 55 decimal - addresses start with 'P' #14

Description

@Pencreus

This is incorrect for pepecoinppc mainnet. The reference client's chainparams uses PUBKEY_ADDRESS = 56 (0x38):
https://github.com/pepecoinppc/pepecoin/blob/master/src/chainparams.cpp (base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,56);)

0x37 (55) is Peercoin's prefix, not Pepecoin's — both produce addresses starting with "P", which hides the mismatch. Impact: valid Pepecoin Core addresses fail pool-side validation and any coinbase built with 0x37 pays a Base58 string that no Pepecoin wallet controls — for a SOLO pool this means unrecoverable block rewards. Verified on v2.6.2; patching the constant to 0x38 and rebuilding fixes address validation against pepecoind immediately.

Side note: I'm not super-smart, Claude helped me write this after days and days of struggling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions