Skip to content
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

Chore: Substrate based node with ocw pallets #2

Merged
merged 1 commit into from
May 24, 2022

Conversation

SHA888
Copy link
Member

@SHA888 SHA888 commented May 24, 2022

  • node
  • pallet ocw
  • runtime

@shukob shukob merged commit 66ac077 into Polkadot-DevCamp-2022:main May 24, 2022
@syoumoku
Copy link
Contributor

Clone From https://github.com/jimmychu0807/substrate-offchain-worker-demo
Which is a demo to fetch cryptocurrency prices using off-chain workers.

Substrate Off-chain Worker Demo

This repository is built based on Substrate Node Template v3.0.0+monthly-2021-10.

The purpose is to demonstrate what off-chain worker could do, and how one would go about using it.

Run

  1. First, complete the basic Rust setup instructions.

  2. To run it, use Rust's native cargo command to build and launch the template node:

cargo run --release -- --dev --tmp
  1. To build it, the cargo run command will perform an initial build. Use the following command to
    build the node without launching it:
cargo build --release

Since this repository is based on Substrate Node Template,
it's README
applies to this repository as well.

About Off-chain Worker

@syoumoku
Copy link
Contributor

Same issue met when compiling the ocw-demo from substrate recipes
JoshOrndorff/substrate-recipes#480

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