cess icon indicating copy to clipboard operation
cess copied to clipboard

SBP: Off-chain worker configuration

Open NachoPal opened this issue 3 years ago • 2 comments

The use of off-chain worker for fetching the storage price should improved taking into consideration how they work and when they are executed.

Some context about things to pay attention to when using off-chain workers:

  • https://stackoverflow.com/questions/64772897/offchain-workers-signed-transactions/64772985#64772985
  • https://stackoverflow.com/questions/59401972/role-of-off-chain-workers
  • https://substrate.stackexchange.com/questions/2093/when-does-an-off-chain-worker-get-executed

NachoPal avatar May 23 '22 04:05 NachoPal

Wow, thank you. I just learned the use of the offline working machine according to ocw-example. I will improve the working mode of the offline working machine according to the documents you provide.

ytqaljn avatar May 26 '22 11:05 ytqaljn

Thank you. Now we have changed to accept only the first price from offchain worker. (#59)

ytqaljn avatar Jun 16 '22 03:06 ytqaljn

At present, we have carried out several version iterations, and the content provided above is no longer in use. The link of current implementation is as follow: https://github.com/CESSProject/cess/blob/v0.5.1/c-pallets/segment-book/src/lib.rs#L755-L924

ytqaljn avatar Sep 16 '22 02:09 ytqaljn