-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: amount calculation in the rgbpp address balance endpoint #206
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
59a0f7a
to
455eda5
Compare
455eda5
to
95fac7e
Compare
Good catch! |
issues
Is this caused by a limitation of Vercel? |
get ... address/tb1q9mktcwlf0zs7ayajv7rsx4j6k959d8us7rg858/balance
|
Because the corresponding |
@Flouse @ahonn Another issue that affects the balance calculation is that, currently, if a job in the queue has been retried a certain number of times, it will be marked as This means that if we're transferring some RGBPP assets and the BTC_TX gets stuck for a while, the job in the queue will be marked as
If this is unexpected behavior, a possible resolution is to add a |
#207 is created including the proposed resolutions. Let's discuss and handle it later. |
The reason why Unit Tests failed may be that redis flushall has not been executed yet, but the test has begun to be executed. Please try: beforeAll(async () => {
await container.cradle.redis.flushall();
}); |
2c2a87f
to
776ec6d
Compare
Changes
Fix details
The calculation in the
/rgbpp/address/{btc_address}/balance
endpoint has been refactored to:Confirmed UTXOs:
total_amount
andavailable_amount
fieldsUnconfirmed UTXOs:
pending_amount
fieldUnconfirmed Spent Outputs:
total_amount
field