Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nesitor
Copy link
Member

@nesitor nesitor commented May 29, 2025

This PR solves the issue when a user tries to pin a big file on IPFS without having a balance.

Self proofreading checklist

  • Is my code clear enough and well documented
  • Are my files well typed
  • New translations have been added or updated if new strings have been introduced in the frontend
  • Database migrations file are included
  • Are there enough tests
  • Documentation has been included (for new feature)

Changes

Added a pre-check balance checking the IPFS file without having to download it. It will work only on unifs type pins, but will save us a lot of useless disk usage.

How to test

Try to pin a big file on the network with an empty wallet and check that file is not saved either on the database and the message is rejected so faster.

@nesitor nesitor requested review from 1yam, aliel and amalcaraz May 29, 2025 10:12
@nesitor nesitor self-assigned this May 29, 2025
@nesitor nesitor force-pushed the andres-feaure_add_store_balance_pre_check branch from 0f142b9 to 8cfe2b1 Compare May 29, 2025 10:13
Copy link
Collaborator

@amalcaraz amalcaraz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there could be a problem calculating real costs for ProgramContent DATA volume

@nesitor nesitor requested a review from amalcaraz June 2, 2025 09:25
Copy link
Collaborator

@amalcaraz amalcaraz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nesitor nesitor merged commit fdbb730 into main Jun 2, 2025
5 of 6 checks passed
@nesitor nesitor deleted the andres-feaure_add_store_balance_pre_check branch June 2, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants