Skip to content

Rebase weiwang pr#490

Open
jingweicb wants to merge 6 commits intomasterfrom
rebase-weiwang-pr
Open

Rebase weiwang pr#490
jingweicb wants to merge 6 commits intomasterfrom
rebase-weiwang-pr

Conversation

@jingweicb
Copy link
Contributor

Fixes # .

Motivation

Solution

Open questions

wei-wang-cb and others added 6 commits July 22, 2023 00:25
This commit guarantees the order of transactions in the block endpoint. It does so by creating a map of fetched transactions and using that map to return the transactions in the original order they had in the block.

- Added a new struct `FetchedTransaction` to represent fetched transactions
- Updated `fetchChannelTransactions` to use the new `FetchedTransaction` struct
- Updated `UnsafeTransactions` to use the new `FetchedTransaction` struct and create a map of fetched transactions
- Modified the return statement in `UnsafeTransactions` to use the fetched transactions from the map
This commit adds a timeout to the mock server to prevent it from hanging indefinitely. This is mainly to make salus security scans happy.
This commit fixes a memory leak in the client. The client was not reading the response body of the http request when closing the body, which could lead to a memory leak. This commit fixes this by reading the response body and discarding it.

This commit makes salus check pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants