-
Notifications
You must be signed in to change notification settings - Fork 19
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
DLC flow updated to use blockstream API, added regtest #120
base: develop
Are you sure you want to change the base?
Conversation
…her functions with the BlockCypher Testnet apiUrls
v10.0 + Build Changes
@@ -45,7 +45,11 @@ export default class BitcoinEsploraApiProvider extends ApiInstance implements Bi | |||
constructor(options: EsploraApiProviderOptions) { | |||
const { url, network } = options; | |||
super({ | |||
baseURL: url || network == 'Mainnet' ? BTC_BASE_URI_MAINNET : BTC_BASE_URI_TESTNET, | |||
baseURL: url || network === 'Mainnet' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here a sequence of ternaries seems a bit too confusing to read and understand. I would recommend just doing a switch, which will be more clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you did that in wallet/index.ts too, so it's probably more consistent too.
bech32: 'bcrt', | ||
pubKeyHash: 0x6f, | ||
scriptHash: 0xc4, | ||
wif: 0xef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these are used twice, consider defining them in a const object
ENG-4564: Add PayPal to FeatureId type
No description provided.