linera-io / linera-protocol

Main repository for the Linera protocol
Apache License 2.0
1.44k stars 168 forks source link

Limit oracle calls, and charge fees for them. #2127

Open afck opened 5 months ago

afck commented 5 months ago

query_service calls the application's service code inside the validator workers. We need to make sure these calls time out if they take too long, and add a fee category for them.

Similarly http_post should limit the length of the response it accepts.

In general, all oracles must limit their cost, and cost fees.

ma2bd commented 2 months ago

@afck Should we close this now or move to Testnet-2?

afck commented 2 months ago

I moved it to Testnet-2.