-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I was trying to use infura-like setup with `ws` (Web sockets). Since `ws` sends plain-text, it does not work in prouduction. We cannot use `wss` since it is not supported natively by geth - ethereum/go-ethereum#16423 Even K8s only supports https. To avoid this issue, I shifted to https. Subscriptions don't work with https, so, a crude polling mechanism to check for transaction confirmations. Also, in this commit, change the nonce count to include "pending" transactions, so that, multiple transactions can be sent without waiting for completion.
- Loading branch information
Showing
2 changed files
with
100 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters