fix: use stable endpoints for getBlocks (#20310)

This commit is contained in:
Justin Starry
2021-09-29 11:27:11 -04:00
committed by GitHub
parent 32ece63338
commit c02ef395ed
2 changed files with 3 additions and 3 deletions

View File

@ -2080,7 +2080,7 @@ describe('Connection', () => {
it('get blocks between two slots', async () => {
await mockRpcResponse({
method: 'getBlocks',
method: 'getConfirmedBlocks',
params: [0, 10],
value: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
});
@ -2100,7 +2100,7 @@ describe('Connection', () => {
it('get blocks from starting slot', async () => {
await mockRpcResponse({
method: 'getBlocks',
method: 'getConfirmedBlocks',
params: [0],
value: [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,