Skip to content

Commit

Permalink
feat(poll-interval): reduce poll interval to be a more sensible default
Browse files Browse the repository at this point in the history
  • Loading branch information
thepiwo committed Nov 3, 2021
1 parent adffd8a commit 9e55b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chain/node.js
Expand Up @@ -140,7 +140,7 @@ async function topBlock () {
return this.api.getTopHeader()
}

async function poll (th, { blocks = 10, interval = 5000, allowUnsynced = false } = {}) {
async function poll (th, { blocks = 10, interval = 500, allowUnsynced = false } = {}) {
const max = await this.height() + blocks
do {
const tx = await this.tx(th).catch(_ => null)
Expand Down

0 comments on commit 9e55b2b

Please sign in to comment.