feat: disable loader rate limiter for non solana endpoints (#13018)

This commit is contained in:
Justin Starry
2020-10-21 16:19:51 +08:00
committed by GitHub
parent e4231d1028
commit 8863b773c1
4 changed files with 14 additions and 18 deletions

View File

@ -27,7 +27,7 @@ test('load BPF C program', async () => {
const data = await fs.readFile('test/fixtures/noop-c/noop.so');
const connection = new Connection(url, 'recent');
const connection = new Connection(url, 'singleGossip');
const {feeCalculator} = await connection.getRecentBlockhash();
const fees =
feeCalculator.lamportsPerSignature *
@ -53,7 +53,7 @@ test('load BPF C program', async () => {
programId: program.publicKey,
});
await sendAndConfirmTransaction(connection, transaction, [from], {
commitment: 'single',
commitment: 'singleGossip',
skipPreflight: true,
});
});
@ -64,7 +64,7 @@ describe('load BPF Rust program', () => {
return;
}
const connection = new Connection(url, 'recent');
const connection = new Connection(url, 'singleGossip');
let program: Account;
let signature: string;