mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 16:17:59 +00:00
0a56d071c7
This PR updates the `validate_unsigned` hook for `frame_system` to allow valid tasks to be submitted as unsigned transactions. It also updates the task example to be able to submit such transactions via an off-chain worker. --------- Co-authored-by: Bastian Köcher <git@kchr.de>
20 lines
675 B
Plaintext
20 lines
675 B
Plaintext
title: Adds ability to trigger tasks via unsigned transactions
|
|
|
|
doc:
|
|
- audience: Runtime Dev
|
|
description: |
|
|
This PR updates the `validate_unsigned` hook for `frame_system` to allow valid tasks
|
|
to be submitted as unsigned transactions. It also updates the task example to be able to
|
|
submit such transactions via an off-chain worker.
|
|
|
|
Note that `is_valid` call on a task MUST be cheap with minimal to no storage reads.
|
|
Else, it can make the blockchain vulnerable to DoS attacks.
|
|
|
|
Further, these tasks will be executed in a random order.
|
|
|
|
crates:
|
|
- name: frame-system
|
|
bump: patch
|
|
- name: pallet-example-tasks
|
|
bump: minor
|