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

Fix bech32 prefix for Litecoin mainnet and testnet #16

Open
wants to merge 1 commit into
base: litecoin
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ test.js
docker_data/
docs/
browser/bcoin*
.idea
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this for?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed. It's to keep my IDE (Webstorm) state files from being tracked by git.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally went ahead and added .idea to my global ignore

4 changes: 2 additions & 2 deletions lib/protocol/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ main.addressPrefix = {
scripthash: 0x32,
witnesspubkeyhash: 0x06,
witnessscripthash: 0x0a,
bech32: 'lc'
bech32: 'ltc'
};

/**
Expand Down Expand Up @@ -570,7 +570,7 @@ testnet.addressPrefix = {
scripthash: 0xc4,
witnesspubkeyhash: 0x03,
witnessscripthash: 0x28,
bech32: 'tb'
bech32: 'tltc'
};

testnet.requireStandard = false;
Expand Down