From 1835deb2c9ce8dc4ce13bb5195a4ab30c0f7d592 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 8 Jan 2020 20:45:10 -0500 Subject: [PATCH] fix mainnet bech32 prefix --- lbrycrd/client.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lbrycrd/client.go b/lbrycrd/client.go index 953c14f..84945b9 100644 --- a/lbrycrd/client.go +++ b/lbrycrd/client.go @@ -33,9 +33,16 @@ var MainNetParams = chaincfg.Params{ PubKeyHashAddrID: 0x55, ScriptHashAddrID: 0x7a, PrivateKeyID: 0x1c, - Bech32HRPSegwit: "not-used", // we don't have this (yet) - GenesisHash: &GenesisHash, - Name: "mainnet", + Bech32HRPSegwit: "lbc", + //WitnessPubKeyHashAddrID: , // i cant find these in bitcoin codebase either + //WitnessScriptHashAddrID:, + GenesisHash: &GenesisHash, + Name: "mainnet", + Net: wire.BitcoinNet(0xfae4aaf1), + DefaultPort: "9246", + BIP0034Height: 1, + BIP0065Height: 200000, + BIP0066Height: 200000, } const (