Skip to content

Commit

Permalink
Merge pull request #78 from eco-stake/reduce-block-storage-time
Browse files Browse the repository at this point in the history
Reduce block storage time
  • Loading branch information
tombeynon committed Feb 13, 2024
2 parents 6f177b0 + 2c94fec commit e2ad5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chains/blockMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function BlockMonitor() {
const processed = processBlock(block)
debugLog(chain.path, 'Caching height', processed.height)
await client.json.set(`blocks:${chain.path}#${processed.height}`, '$', processed)
await client.expire(`blocks:${chain.path}#${processed.height}`, 60 * 60 * 6)
await client.expire(`blocks:${chain.path}#${processed.height}`, 60 * 60 * 4)
return processed
}

Expand Down

0 comments on commit e2ad5fd

Please sign in to comment.