Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print Electrum URL in the logs (#3596)
Unless specified in the config, mainnet client binary selects the Electrum server from one of the preconfigured nodes. It is nice to know which server was selected, even for debugging purposes. Additionally, we should log both Bitcoin and Ethereum networks used by the client. Electrum server URL is printed to the logs only if it has been auto-selected. This approach is consistent with not logging Ethereum server URL at all given we expect it is passed in the configuration. I snaked one more change in this PR: fixed the number of accounts requirement in `scripts/install.sh`. Given the recent changes in tbtc-v2 project, at least 11 accounts are required in the local Ethereum client keystore to deploy and initialize contracts. The `v1Redeemer` [set in tbtc-v2 `hardhat.config.ts`](https://github.com/keep-network/tbtc-v2/blob/7f48d6362f8bfc9a2931c4087e5eba28efee5370/solidity/hardhat.config.ts#L227) uses index 10 and indexes start from 0. Example: ``` 2023-06-05T08:54:24.185+0200 INFO keep-config config/config.go:95 using [mainnet] Ethereum network and [mainnet] Bitcoin network 2023-06-05T08:54:24.187+0200 INFO keep-config config/electrum.go:68 Auto-selecting Electrum server: [ssl://electrum.blockstream.info:50002] ```
- Loading branch information