Skip to content

Commit

Permalink
Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
linuskendall committed Aug 21, 2023
1 parent aaabe14 commit 27dacd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/web3/test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const web3 = require("@solana/web3.js");

test('get legacy blocks', async () => {
const connection = new web3.Connection('https://rpc.old-faithful.net/', 'finalized', 20000);
const connection = new web3.Connection('https://rpc.old-faithful.net/', 'finalized');
const block = await connection.getBlock(209520022, {
commitment: 'finalized',
maxSupportedTransactionVersion: 0,
});

console.log('block 1 blockhash is ' + block?.blockhash);
})
}, 20000)

0 comments on commit 27dacd0

Please sign in to comment.