Skip to content
Snippets Groups Projects
  • thiolliere's avatar
    [Tx ext stage 2: 1/4] Add `TransactionSource` as argument in... · 8e3d9296
    thiolliere authored
    [Tx ext stage 2: 1/4] Add `TransactionSource` as argument in `TransactionExtension::validate` (#6323)
    
    ## Meta 
    
    This PR is part of 4 PR:
    * https://github.com/paritytech/polkadot-sdk/pull/6323
    * https://github.com/paritytech/polkadot-sdk/pull/6324
    * https://github.com/paritytech/polkadot-sdk/pull/6325
    * https://github.com/paritytech/polkadot-sdk/pull/6326
    
    ## Description
    
    One goal of transaction extension is to get rid or unsigned
    transactions.
    But unsigned transaction validation has access to the
    `TransactionSource`.
    
    The source is used for unsigned transactions that the node trust and
    don't want to pay upfront.
    Instead of using transaction source we could do: the transaction is
    valid if it is signed by the block author, conceptually it should work,
    but it doesn't look so easy.
    
    This PR add `TransactionSource` to the validate function for transaction
    extensions
    Unverified
    8e3d9296
Code owners
Assign users and groups as approvers for specific file changes. Learn more.