fibercrypto / fibercrypto/skycoin

Possible resource exhaustion in CreateTransaction from wallet

Open
#2,163 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

For a request to `POST /api/v1/wallet/transaction`, there has been two isolated, reported problems:

* Extremely slow (minutes) [replicable]
* OOM error, crash [not replicable, unknown if attempted proper replication]

WIthout the user's wallet's addresses and request parameters used, it is harder to debug.

Memory and cpuprofiling the request could reveal some hot point, but there could also be some bad edge case that causes problems; a thorough inspection of the code may reveal the problem.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the POST /api/v1/wallet/transaction entry point and inspect CreateTransaction from the wallet. Reproduce the reported slow request with the wallet addresses and request parameters, then collect memory and CPU profiles. Done means the resource-intensive path is identified and the slow or OOM behavior is resolved or clearly narrowed to a specific edge case.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.