From b8796223878e0a73d34e74287e455717c324df0f Mon Sep 17 00:00:00 2001 From: Michael Rodriguez Date: Tue, 16 Apr 2019 19:22:52 -0400 Subject: [PATCH] Fix bech32 prefix for Litecoin mainnet and testnet --- .gitignore | 1 + lib/protocol/networks.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 20d2d6e0..f9125d15 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ test.js docker_data/ docs/ browser/bcoin* +.idea diff --git a/lib/protocol/networks.js b/lib/protocol/networks.js index 19f34154..538c9d44 100644 --- a/lib/protocol/networks.js +++ b/lib/protocol/networks.js @@ -383,7 +383,7 @@ main.addressPrefix = { scripthash: 0x32, witnesspubkeyhash: 0x06, witnessscripthash: 0x0a, - bech32: 'lc' + bech32: 'ltc' }; /** @@ -570,7 +570,7 @@ testnet.addressPrefix = { scripthash: 0xc4, witnesspubkeyhash: 0x03, witnessscripthash: 0x28, - bech32: 'tb' + bech32: 'tltc' }; testnet.requireStandard = false;