Skip to content

Commit

Permalink
Add workaround for websocket subscription issues
Browse files Browse the repository at this point in the history
Mine a block every 4 minutes, to keep hardhat from
forgetting about websocket subscriptions after 5
minutes.
  • Loading branch information
markspanbroek committed Nov 8, 2024
1 parent 11ccefd commit 61ff18e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ module.exports = {
networks: {
hardhat: {
tags: ["local"],
mining: {
auto: true,
// Workaround for https://github.com/NomicFoundation/hardhat/issues/2053
interval: 4000
}
},
codexdisttestnetwork: {
url: `${process.env.DISTTEST_NETWORK_URL}`,
Expand Down

0 comments on commit 61ff18e

Please sign in to comment.