-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rinkeby invoices when mainnet invoices are expected #2272
Comments
In https://github.com/golemfactory/yagna/blob/2f6efcd5e1e5959a05effa6192c9ae31f11d5f42/core/payment/src/models/agreement.rs line 42, yagna uses default platform if |
Does this explain why I can accept a rinkeby invoice using a mainnet allocation? |
@nieznanysprawiciel decide please :) |
This bug seems important.
|
might be related: #1753 |
the way I see it, there is a separate issue golemfactory/golem-core-python#18 that golem-core is not setting the property -> this is to be fixed by golem-core care takers. but in yagna there is a bug that it sends rinkeby when the property is not set. |
Summary: When using Golem Core Python (https://github.com/golemfactory/golem-core-python) Rinkeby is used as a payment network even tough mainnet was explicitly chosen. This is due to lack of golem.com.payment.chosen-platform property in Golem Core Python and will be fixed in: golemfactory/golem-core-python#18 However, current behaviour of Yagna is prone to errors as we accept lack of golem.com.payment.chosen-platform parameter and then choose default -> Rinkeby. This results in hard to debug problems when testnets are not stable or getting deprecated (like Rinkeby). Those impact projects like Ray on Golem & Jupyter on Golem. New approach should require this parameter and throw error when it is missing. No default path. Acceptance Criteria:
|
WHAT HAPPENS
mainnet
andrinkeby
payments inyagna
erc20-mainnet-glm
allocationpublic-beta
subnetmainnet
paymentserc20-rinkeby-tglm
payments (!)erc20-mainnet-glm
allocation (!)mainnet
GLMs stays the same. The amount of myrinkeby
GLMs decreases.HOW TO REPLICATE
YAGNA_PAYMENT_NETWORK=mainnet YAGNA_SUBNET=public-beta python3 blender.py
(wait for a successful finish, ctrl+c might break invoice acceptance).yagna payment status
andyagna payment status --network=mainnet
changeOR
Probably the same will happen in
yapapi
if we remove the line that setsdemand_builder.properties["golem.com.payment.chosen-platform"]
- although I didn't check this.PROBLEMS
There are (at least) two separate problems here that probably should be separate issues, but I think there might be some general problem I'm missing here so they are together:
rinkeby
invoices when demand specifies amainnet
allocation and also they only acceptmainnet
payments?rinkeby
invoice using amainnet
allocation?The text was updated successfully, but these errors were encountered: